aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_base.h
diff options
context:
space:
mode:
authorSasha Neftin <[email protected]>2019-08-08 06:12:23 +0000
committerJeff Kirsher <[email protected]>2019-09-09 18:37:14 +0000
commitd3ae3cfbf5484f18b86b708b71c416c63d3bb922 (patch)
treede03c5c78210e8a6d04f75fa9c3d7e9f2869ab80 /drivers/net/ethernet/intel/igc/igc_base.h
parentixgbe: sync the first fragment unconditionally (diff)
downloadkernel-d3ae3cfbf5484f18b86b708b71c416c63d3bb922.tar.gz
kernel-d3ae3cfbf5484f18b86b708b71c416c63d3bb922.zip
igc: Add tx_csum offload functionality
Add IP generic TX checksum offload functionality. Signed-off-by: Sasha Neftin <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_base.h')
-rw-r--r--drivers/net/ethernet/intel/igc/igc_base.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc_base.h b/drivers/net/ethernet/intel/igc/igc_base.h
index 58d1109d7f3f..ea627ce52525 100644
--- a/drivers/net/ethernet/intel/igc/igc_base.h
+++ b/drivers/net/ethernet/intel/igc/igc_base.h
@@ -22,6 +22,14 @@ union igc_adv_tx_desc {
} wb;
};
+/* Context descriptors */
+struct igc_adv_tx_context_desc {
+ __le32 vlan_macip_lens;
+ __le32 launch_time;
+ __le32 type_tucmd_mlhl;
+ __le32 mss_l4len_idx;
+};
+
/* Adv Transmit Descriptor Config Masks */
#define IGC_ADVTXD_MAC_TSTAMP 0x00080000 /* IEEE1588 Timestamp packet */
#define IGC_ADVTXD_DTYP_CTXT 0x00200000 /* Advanced Context Descriptor */