aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic.h
diff options
context:
space:
mode:
authorAmit Kumar Salecha <amit.salecha@qlogic.com>2010-08-31 13:17:52 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-01 13:41:57 -0400
commit03c5d770c24cd673d105fbf1a9706ae838272091 (patch)
tree420344c7cd203c648c4747293f1a41ae3b3d8ee1 /drivers/net/qlcnic/qlcnic.h
parentb5e5492c0d49e2fd6f51961d03b8533435e5e7f5 (diff)
qlcnic: mac vlan learning support
Hypervisor allows, two VM's interfaces to have same mac address. These VM's interfaces get differentiate with Vlan tag. This patch add support to learn and configure mac+vlan filter on device. Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic.h')
-rw-r--r--drivers/net/qlcnic/qlcnic.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h
index 4727204a2450..9d211529fa16 100644
--- a/drivers/net/qlcnic/qlcnic.h
+++ b/drivers/net/qlcnic/qlcnic.h
@@ -722,6 +722,8 @@ struct qlcnic_cardrsp_tx_ctx {
722#define QLCNIC_MAC_NOOP 0 722#define QLCNIC_MAC_NOOP 0
723#define QLCNIC_MAC_ADD 1 723#define QLCNIC_MAC_ADD 1
724#define QLCNIC_MAC_DEL 2 724#define QLCNIC_MAC_DEL 2
725#define QLCNIC_MAC_VLAN_ADD 3
726#define QLCNIC_MAC_VLAN_DEL 4
725 727
726struct qlcnic_mac_list_s { 728struct qlcnic_mac_list_s {
727 struct list_head list; 729 struct list_head list;
@@ -932,6 +934,7 @@ struct qlcnic_mac_req {
932struct qlcnic_filter { 934struct qlcnic_filter {
933 struct hlist_node fnode; 935 struct hlist_node fnode;
934 u8 faddr[ETH_ALEN]; 936 u8 faddr[ETH_ALEN];
937 u16 vlan_id;
935 unsigned long ftime; 938 unsigned long ftime;
936}; 939};
937 940