diff options
author | Vasanthy Kolluri <vkolluri@cisco.com> | 2010-06-24 06:49:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-25 23:45:22 -0400 |
commit | f8cac14acff870203ea7f61f1a92c5486d1774fa (patch) | |
tree | 4caa5145dca79a98bb5a19b9fd2658fe8fe3933c /drivers/net/enic/vnic_dev.h | |
parent | 88132f55d74fdd97a7d459007b2bbb59e850f8c0 (diff) |
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>
Diffstat (limited to 'drivers/net/enic/vnic_dev.h')
-rw-r--r-- | drivers/net/enic/vnic_dev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/enic/vnic_dev.h b/drivers/net/enic/vnic_dev.h index caccce36957b..780c3cd73292 100644 --- a/drivers/net/enic/vnic_dev.h +++ b/drivers/net/enic/vnic_dev.h | |||
@@ -133,6 +133,8 @@ void vnic_dev_set_intr_mode(struct vnic_dev *vdev, | |||
133 | enum vnic_dev_intr_mode intr_mode); | 133 | enum vnic_dev_intr_mode intr_mode); |
134 | enum vnic_dev_intr_mode vnic_dev_get_intr_mode(struct vnic_dev *vdev); | 134 | enum vnic_dev_intr_mode vnic_dev_get_intr_mode(struct vnic_dev *vdev); |
135 | void vnic_dev_unregister(struct vnic_dev *vdev); | 135 | void vnic_dev_unregister(struct vnic_dev *vdev); |
136 | int vnic_dev_set_ig_vlan_rewrite_mode(struct vnic_dev *vdev, | ||
137 | u8 ig_vlan_rewrite_mode); | ||
136 | struct vnic_dev *vnic_dev_register(struct vnic_dev *vdev, | 138 | struct vnic_dev *vnic_dev_register(struct vnic_dev *vdev, |
137 | void *priv, struct pci_dev *pdev, struct vnic_dev_bar *bar, | 139 | void *priv, struct pci_dev *pdev, struct vnic_dev_bar *bar, |
138 | unsigned int num_bars); | 140 | unsigned int num_bars); |