linux/drivers/net/ethernet/intel/ixgbe
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
..
ixgbe_82598.c ixgbe: Update link flow control to correctly handle multiple packet buffer DCB 2012-05-04 03:25:24 -07:00
ixgbe_82599.c ixgbe: Use is_valid_ether_addr 2012-12-06 21:31:06 -08:00
ixgbe_common.c ixgbe: Use is_valid_ether_addr 2012-12-06 21:31:06 -08:00
ixgbe_common.h ixgbe: Use is_valid_ether_addr 2012-12-06 21:31:06 -08:00
ixgbe_dcb_82598.c ixgbe: Clean up priority based flow control 2012-05-09 22:15:40 -07:00
ixgbe_dcb_82598.h ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_dcb_82599.c ixgbe: Clean up priority based flow control 2012-05-09 22:15:40 -07:00
ixgbe_dcb_82599.h ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_dcb_nl.c ixgbe: SR-IOV: dynamic IEEE DCBx default priority changes 2013-01-19 03:35:15 -08:00
ixgbe_dcb.c ixgbe: Use num_tcs.pg_tcs as upper limit for TC when checking based on UP 2012-07-21 16:05:28 -07:00
ixgbe_dcb.h ixgbe: Populate the prio_tc_map in ixgbe_setup_tc 2012-07-14 14:29:19 -07:00
ixgbe_debugfs.c ixgbe: eliminate Smatch warnings in ixgbe_debugfs.c 2012-12-01 02:29:19 -08:00
ixgbe_ethtool.c ixgbe: ethtool correctly identify autoneg setting 2012-11-22 01:39:43 -08:00
ixgbe_fcoe.c ixgbe: Update ixgbe Tx flags to improve code efficiency 2013-01-19 04:13:45 -08:00
ixgbe_fcoe.h ixgbe: Make FCoE allocation and configuration closer to how rings work 2012-07-19 18:18:49 -07:00
ixgbe_lib.c ixgbe: fix default setting of TXDCTL.WTHRESH 2012-11-01 02:00:10 -07:00
ixgbe_main.c ixgbe: Update ixgbe Tx flags to improve code efficiency 2013-01-19 04:13:45 -08:00
ixgbe_mbx.c ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_mbx.h ixgbe: Add support for GET_QUEUES message to get DCB configuration 2012-10-22 21:14:54 -07:00
ixgbe_phy.c ixgbe: add support for 1G SX modules 2012-06-20 01:37:04 -07:00
ixgbe_phy.h ixgbe: update copyright to 2012 2012-02-03 03:05:30 -08:00
ixgbe_ptp.c ixgbe: remove needless queuing for L4 ptp packets 2012-11-22 01:39:37 -08:00
ixgbe_sriov.c ixgbe: SR-IOV: dynamic IEEE DCBx default priority changes 2013-01-19 03:35:15 -08:00
ixgbe_sriov.h ixgbe: SR-IOV: dynamic IEEE DCBx default priority changes 2013-01-19 03:35:15 -08:00
ixgbe_sysfs.c drivers/net/ethernet: Fix (nearly-)kernel-doc comments for various functions 2012-07-10 23:13:46 -07:00
ixgbe_type.h ixgbe: check whether thermal sensor is enabled. 2012-12-06 21:38:38 -08:00
ixgbe_x540.c ixgbe: Use is_valid_ether_addr 2012-12-06 21:31:06 -08:00
ixgbe.h ixgbe: Update ixgbe Tx flags to improve code efficiency 2013-01-19 04:13:45 -08:00
Makefile ptp: Enable clock drivers along with associated net/PHY drivers 2012-11-01 11:35:18 -04:00