Fix VF handling of VLANs.
This helps immensily with our ability to operate in the Amazon Cloud. Discussed on Intel Networking Community call this morning. Submitted by: Jarrod Petz(petz@nisshoko.net) MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D4788
This commit is contained in:
parent
97f9586e97
commit
9030be4bad
@ -1664,7 +1664,7 @@ ixv_initialize_receive_units(struct adapter *adapter)
|
||||
|
||||
/* Disable the queue */
|
||||
rxdctl = IXGBE_READ_REG(hw, IXGBE_VFRXDCTL(i));
|
||||
rxdctl &= ~(IXGBE_RXDCTL_ENABLE | IXGBE_RXDCTL_VME);
|
||||
rxdctl &= ~IXGBE_RXDCTL_ENABLE;
|
||||
IXGBE_WRITE_REG(hw, IXGBE_VFRXDCTL(i), rxdctl);
|
||||
for (int j = 0; j < 10; j++) {
|
||||
if (IXGBE_READ_REG(hw, IXGBE_VFRXDCTL(i)) &
|
||||
@ -1698,8 +1698,7 @@ ixv_initialize_receive_units(struct adapter *adapter)
|
||||
rxr->tail = IXGBE_VFRDT(rxr->me);
|
||||
|
||||
/* Do the queue enabling last */
|
||||
rxdctl = IXGBE_READ_REG(hw, IXGBE_VFRXDCTL(i));
|
||||
rxdctl |= IXGBE_RXDCTL_ENABLE;
|
||||
rxdctl |= IXGBE_RXDCTL_ENABLE | IXGBE_RXDCTL_VME;
|
||||
IXGBE_WRITE_REG(hw, IXGBE_VFRXDCTL(i), rxdctl);
|
||||
for (int k = 0; k < 10; k++) {
|
||||
if (IXGBE_READ_REG(hw, IXGBE_VFRXDCTL(i)) &
|
||||
|
Loading…
x
Reference in New Issue
Block a user