linux_dsm_epyc7002/drivers/net/ethernet/intel
Alexander Duyck 472148c320 ixgbe: Update ixgbe Tx flags to improve code efficiency
This change is meant to improve the efficiency of the Tx flags in ixgbe by
aligning them with the values that will later be written into either the
cmd_type or olinfo.  By doing this we are able to reduce most of these
functions to either just a simple shift followed by an or in the case of
cmd_type, or an and followed by an or in the case of olinfo.

To do this I also needed to change the logic and/or drop some flags.  I
dropped the IXGBE_TX_FLAGS_FSO and it was replaced by IXGBE_TX_FLAGS_TSO since
the only place it was ever checked was in conjunction with IXGBE_TX_FLAGS_TSO.
I replaced IXGBE_TX_FLAGS_TXSW with IXGBE_TX_FLAGS_CC, this way we have a
clear point for what the flag is meant to do.  Finally the
IXGBE_TX_FLAGS_NO_IFCS was dropped since were are already carrying the data
for that flag in the skb.  Instead we can just check the bitflag in the skb.

In order to avoid type conversion errors I also adjusted the locations
where we were switching between CPU and little endian.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2013-01-19 04:13:45 -08:00
..
e1000 remove init of dev->perm_addr in drivers 2013-01-08 18:00:48 -08:00
e1000e e1000e: add support for hardware timestamping on some devices 2013-01-18 04:55:07 -08:00
igb igb: Use in-kernel PTP_EV_PORT #define 2013-01-18 06:52:22 -08:00
igbvf remove init of dev->perm_addr in drivers 2013-01-08 18:00:48 -08:00
ixgb remove init of dev->perm_addr in drivers 2013-01-08 18:00:48 -08:00
ixgbe ixgbe: Update ixgbe Tx flags to improve code efficiency 2013-01-19 04:13:45 -08:00
ixgbevf remove init of dev->perm_addr in drivers 2013-01-08 18:00:48 -08:00
e100.c remove init of dev->perm_addr in drivers 2013-01-08 18:00:48 -08:00
Kconfig igb: Enable hwmon data output for thermal sensors via I2C. 2013-01-18 04:55:28 -08:00
Makefile intel: Move the Intel wired LAN drivers 2011-08-10 20:03:27 -07:00