1. 14 3月, 2016 3 次提交
    • D
      Merge branch 'net-minor-cleanups-and-optimizations' · f22f5f60
      David S. Miller 提交于
      Alexander Duyck says:
      
      ====================
      A couple of minor clean-ups and optimizations
      
      This patch series is basically just a v2 of a couple patches I recently
      submitted.
      
      The two patches aren't technically related but there are just items I found
      while cleaning up and prepping some further work to enable Tx checksums for
      tunnels.
      ====================
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f22f5f60
    • A
      csum: Update csum_block_add to use rotate instead of byteswap · 33803963
      Alexander Duyck 提交于
      The code for csum_block_add was doing a funky byteswap to swap the even and
      odd bytes of the checksum if the offset was odd.  Instead of doing this we
      can save ourselves some trouble and just shift by 8 as this should have the
      same effect in terms of the final checksum value and only requires one
      instruction.
      
      In addition we can update csum_block_sub to just use csum_block_add with a
      inverse value for csum2.  This way we follow the same code path as
      csum_block_add without having to duplicate it.
      Signed-off-by: NAlexander Duyck <aduyck@mirantis.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      33803963
    • A
      gro: Defer clearing of flush bit in tunnel paths · c194cf93
      Alexander Duyck 提交于
      This patch updates the GRO handlers for GRE, VXLAN, GENEVE, and FOU so that
      we do not clear the flush bit until after we have called the next level GRO
      handler.  Previously this was being cleared before parsing through the list
      of frames, however this resulted in several paths where either the bit
      needed to be reset but wasn't as in the case of FOU, or cases where it was
      being set as in GENEVE.  By just deferring the clearing of the bit until
      after the next level protocol has been parsed we can avoid any unnecessary
      bit twiddling and avoid bugs.
      Signed-off-by: NAlexander Duyck <aduyck@mirantis.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c194cf93
  2. 13 3月, 2016 1 次提交
  3. 12 3月, 2016 17 次提交
  4. 11 3月, 2016 19 次提交