diff options
author | David S. Miller <davem@davemloft.net> | 2016-12-05 21:15:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-05 21:15:59 +0300 |
commit | 2279b752ac5c2d3592fe6fe5610c123c2ee8b37c (patch) | |
tree | ad093923aaace74a845880a5707e997a4aa64647 /drivers/net/ethernet | |
parent | c66ebf2db555c6ed705044eabd2b37dcd546f68b (diff) | |
parent | a52ca62c4a6771028da9c1de934cdbcd93d54bb4 (diff) | |
download | linux-2279b752ac5c2d3592fe6fe5610c123c2ee8b37c.tar.xz |
Merge branch 'fib-suffix-length-fixes'
Alexander Duyck says:
====================
IPv4 FIB suffix length fixes
In reviewing the patch from Robert Shearman and looking over the code I
realized there were a few different bugs we were still carrying in the IPv4
FIB lookup code.
These two patches are based off of Robert's original patch, but take things
one step further by splitting them up to address two additional issues I
found.
So first have Robert's original patch which was addressing the fact that
us calling update_suffix in resize is expensive when it is called per add.
To address that I incorporated the core bit of the patch which was us
dropping the update_suffix call from resize.
The first patch in the series does a rename and fix on the push_suffix and
pull_suffix code. Specifically we drop the need to pass a leaf and
secondly we fix things so we pull the suffix as long as the value of the
suffix in the node is dropping.
The second patch addresses the original issue reported as well as
optimizing the code for the fact that update_suffix is only really meant to
go through and clean things up when we are decreasing a suffix. I had
originally added code for it to somehow cause an increase, but if we push
the suffix when a new leaf is added we only ever have to handle pulling
down the suffix with update_suffix so I updated the code to reflect that.
As far as side effects the only ones I think that will be obvious should be
the fact that some routes may be able to be found earlier since before we
relied on resize to update the suffix lengths, and now we are updating them
before we add or remove the leaf.
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
0 files changed, 0 insertions, 0 deletions