Re: [nft PATCH 2/2] cache: Fix for doubled output after reset command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 14, 2020 at 05:46:30PM +0100, Phil Sutter wrote:
> Reset command causes a dump of the objects to reset and adds those to
> cache. Yet it ignored if the object in question was already there and up
> to now CMD_RESET was flagged as NFT_CACHE_FULL.
> 
> Tackle this from two angles: First, reduce cache requirements of reset
> command to the necessary bits which is table cache. This alone would
> suffice if there wasn't interactive mode (and other libnftables users):
> A cache containing the objects to reset might be in place already, so
> add dumped objects to cache only if they don't exist already.
> 
> Signed-off-by: Phil Sutter <phil@xxxxxx>

Acked-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>



[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux