summaryrefslogtreecommitdiffstats
path: root/drivers/net/ixgbe/ixgbe.h
diff options
context:
space:
mode:
authorAlexander Duyck2011-05-11 09:18:47 +0200
committerJeff Kirsher2011-06-24 07:45:05 +0200
commit3e05334f8be83e8529f1cbf4f4dea06a4d51d676 (patch)
treea4af9ae8a83b4d7a6d714430e5a8e597d3dab4ce /drivers/net/ixgbe/ixgbe.h
parentixgbe: add basic support for setting and getting nfc controls (diff)
downloadkernel-qcow2-linux-3e05334f8be83e8529f1cbf4f4dea06a4d51d676.tar.gz
kernel-qcow2-linux-3e05334f8be83e8529f1cbf4f4dea06a4d51d676.tar.xz
kernel-qcow2-linux-3e05334f8be83e8529f1cbf4f4dea06a4d51d676.zip
ixgbe: add support for displaying ntuple filters via the nfc interface
This code adds support for displaying the filters that were added via the nfc interface. This is primarily to test the interface for now, but I am also looking into the feasibility of moving all of the ntuple filter code in ixgbe over to the nfc interface since it seems to be better implemented. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Ross Brattain <ross.b.brattain@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ixgbe/ixgbe.h')
-rw-r--r--drivers/net/ixgbe/ixgbe.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe.h b/drivers/net/ixgbe/ixgbe.h
index 5ea5b4c08fe0..d6bfb2f6ba86 100644
--- a/drivers/net/ixgbe/ixgbe.h
+++ b/drivers/net/ixgbe/ixgbe.h
@@ -482,6 +482,17 @@ struct ixgbe_adapter {
struct vf_macvlans vf_mvs;
struct vf_macvlans *mv_list;
bool antispoofing_enabled;
+
+ struct hlist_head fdir_filter_list;
+ union ixgbe_atr_input fdir_mask;
+ int fdir_filter_count;
+};
+
+struct ixgbe_fdir_filter {
+ struct hlist_node fdir_node;
+ union ixgbe_atr_input filter;
+ u16 sw_idx;
+ u16 action;
};
enum ixbge_state_t {