diff options
author | Ajit Khaparde <ajit.khaparde@emulex.com> | 2011-02-20 11:41:53 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-22 10:26:46 -0800 |
commit | 3968fa1e58896187ee5629db0720d93b9313ad9f (patch) | |
tree | b2ec3d6fcc3342afad5a81e0c1a6380d493bffee /drivers/net/benet/be_cmds.h | |
parent | b2aebe6d8102ed55c161371a6ac4d945c95c334c (diff) | |
download | kernel_samsung_smdk4412-3968fa1e58896187ee5629db0720d93b9313ad9f.zip kernel_samsung_smdk4412-3968fa1e58896187ee5629db0720d93b9313ad9f.tar.gz kernel_samsung_smdk4412-3968fa1e58896187ee5629db0720d93b9313ad9f.tar.bz2 |
be2net: fix to ignore transparent vlan ids wrongly indicated by NIC
With transparent VLAN tagging, the ASIC wrongly indicates packets with VLAN ID.
Strip them off in the driver. The VLAN Tag to be stripped will be given to the host
as an async message.
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_cmds.h')
-rw-r--r-- | drivers/net/benet/be_cmds.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/net/benet/be_cmds.h b/drivers/net/benet/be_cmds.h index 331e954..a5af296 100644 --- a/drivers/net/benet/be_cmds.h +++ b/drivers/net/benet/be_cmds.h @@ -88,6 +88,7 @@ struct be_mcc_compl { #define ASYNC_EVENT_CODE_GRP_5 0x5 #define ASYNC_EVENT_QOS_SPEED 0x1 #define ASYNC_EVENT_COS_PRIORITY 0x2 +#define ASYNC_EVENT_PVID_STATE 0x3 struct be_async_event_trailer { u32 code; }; @@ -134,6 +135,18 @@ struct be_async_event_grp5_cos_priority { struct be_async_event_trailer trailer; } __packed; +/* When the event code of an async trailer is GRP5 and event type is + * PVID state, the mcc_compl must be interpreted as follows + */ +struct be_async_event_grp5_pvid_state { + u8 enabled; + u8 rsvd0; + u16 tag; + u32 event_tag; + u32 rsvd1; + struct be_async_event_trailer trailer; +} __packed; + struct be_mcc_mailbox { struct be_mcc_wrb wrb; struct be_mcc_compl compl; |