mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
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
1 changed files with 2 additions and 3 deletions
|
|
@ -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…
Reference in a new issue