mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-01 15:15:19 -04:00
enic: Bug Fix: Change hardware ingress vlan rewrite mode
The current ingress vlan rewrite mode setting lets the hardware strip off the tag control information of a packet received on native vlan. As a result, the priority bits are also lost. The fix is to change the ingress vlan rewrite mode setting such that the complete tag control information is retained for packets that belong to native vlan. Signed-off-by: Scott Feldman <scofeldm@cisco.com> Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com> Signed-off-by: Roopa Prabhu <roprabhu@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
88132f55d7
commit
f8cac14acf
@@ -211,6 +211,12 @@ enum vnic_devcmd_cmd {
|
||||
* in: (u16)a0=interrupt number to assert
|
||||
*/
|
||||
CMD_IAR = _CMDCNW(_CMD_DIR_WRITE, _CMD_VTYPE_ALL, 38),
|
||||
|
||||
/*
|
||||
* Set hw ingress packet vlan rewrite mode:
|
||||
* in: (u32)a0=new vlan rewrite mode
|
||||
* out: (u32)a0=old vlan rewrite mode */
|
||||
CMD_IG_VLAN_REWRITE_MODE = _CMDC(_CMD_DIR_RW, _CMD_VTYPE_ENET, 41),
|
||||
};
|
||||
|
||||
/* flags for CMD_OPEN */
|
||||
@@ -226,6 +232,12 @@ enum vnic_devcmd_cmd {
|
||||
#define CMD_PFILTER_PROMISCUOUS 0x08
|
||||
#define CMD_PFILTER_ALL_MULTICAST 0x10
|
||||
|
||||
/* rewrite modes for CMD_IG_VLAN_REWRITE_MODE */
|
||||
#define IG_VLAN_REWRITE_MODE_DEFAULT_TRUNK 0
|
||||
#define IG_VLAN_REWRITE_MODE_UNTAG_DEFAULT_VLAN 1
|
||||
#define IG_VLAN_REWRITE_MODE_PRIORITY_TAG_DEFAULT_VLAN 2
|
||||
#define IG_VLAN_REWRITE_MODE_PASS_THRU 3
|
||||
|
||||
enum vnic_devcmd_status {
|
||||
STAT_NONE = 0,
|
||||
STAT_BUSY = 1 << 0, /* cmd in progress */
|
||||
|
||||
Reference in New Issue
Block a user