!vlan_enabled but programs pvid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I'm a bridge newbie.

I found that vlan_enabled is 0 by default but the bridge still
programs PVID and it rejects adding interface if programming PVID
fails.

I got this symptom since CentOS/RHEL 7.4 and this change is making the
difference.

br_vlan.c:
> -           if (p && p->br->vlan_enabled)) {
> +          if (p) {
                      err = vlan_vid_add(dev, br->vlan_proto, vid);

more details about the environment is

AWS m4.xlarge with ixgbevf.
ixgbevf failed in this function when it tries to program PVID.

drivers/net/ethernet/intel/ixgbevf/vf.c:
 static s32 ixgbevf_set_vfta_vf(struct ixgbe_hw *hw, u32 vlan, u32 vind,
...
        err = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf,
                                         sizeof(msgbuf) / sizeof(u32));
...
        if (msgbuf[0] != (IXGBE_VF_SET_VLAN | IXGBE_VT_MSGTYPE_ACK))

the msbuf has NACK in it.

What would be a good fix for this?

Thanks
Soohoon



[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux