summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
diff options
context:
space:
mode:
authorRahul Lakkireddy2016-09-20 13:43:09 +0200
committerDavid S. Miller2016-09-22 07:40:01 +0200
commitd8931847488d250e27d8f18ca6b7373e9f981d7a (patch)
tree7e9a62753e2383b4ec81b0f5cdbf83fa35c15374 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
parentcxgb4: add parser to translate u32 filters to internal spec (diff)
downloadkernel-qcow2-linux-d8931847488d250e27d8f18ca6b7373e9f981d7a.tar.gz
kernel-qcow2-linux-d8931847488d250e27d8f18ca6b7373e9f981d7a.tar.xz
kernel-qcow2-linux-d8931847488d250e27d8f18ca6b7373e9f981d7a.zip
cxgb4: add support for offloading u32 filters
Add support for offloading u32 filter onto hardware. Links are stored in a jump table to perform necessary jumps to match TCP/UDP header. When inserting rules in the linked bucket, the TCP/UDP match fields in the corresponding entry of the jump table are appended to the filter rule before insertion. If a link is deleted, then all corresponding filters associated with the link are also deleted. Also enable hardware tc offload as a supported feature. Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4.h')
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
index 51edb126da65..ea0d1f188802 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
@@ -851,6 +851,9 @@ struct adapter {
spinlock_t stats_lock;
spinlock_t win0_lock ____cacheline_aligned_in_smp;
+
+ /* TC u32 offload */
+ struct cxgb4_tc_u32_table *tc_u32;
};
/* Support for "sched-class" command to allow a TX Scheduling Class to be