]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ixgbe: Modify setup of descriptor flags to avoid conditional jumps
authorAlexander Duyck <alexander.h.duyck@intel.com>
Wed, 8 Feb 2012 07:50:45 +0000 (07:50 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 15:12:17 +0000 (23:12 +0800)
commitc108d129d4577cee113d6244e2bfdbfcb69bc146
tree2bdbcdc41734baef3459976fbdf554030eaf47bb
parent01d5dd333bfaef31b5898db1058eee348d92e126
ixgbe: Modify setup of descriptor flags to avoid conditional jumps

This change makes it more likely that the descriptor flags setup will use
cmov instructions instead of conditional jumps when setting up the flags.
The advantage to this is that the code should just flow a bit more
smoothly.

To do this it is necessary to set the TX_FLAGS_CSUM bit in tx_flags when
doing TSO so that we also do the checksum in addition to the segmentation
offload.

(cherry picked from commit 93f5b3c1f148f2cca247a2c5afdd3ba7a123a6f1)
Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/ixgbe/ixgbe_main.c