Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch '10GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue

Jeff Kirsher says:

====================
10GbE Intel Wired LAN Driver Updates 2016-05-16

This series contains 2 fixes to ixgbe only.

Emil fixes transmit hangs when enabling SRIOV by swapping the parameters
in GENMASK in order to generate the correct mask.

Alex fixes his previous patch b83e30104bd9 ("ixgbe/ixgbevf: Add support
for GSO partial") where he somehow transposed the location of setting
the VLAN features in netdev->features and the configuration of the
vlan_features.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

+6 -6
+6 -6
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
··· 3767 3767 reg_offset = (VMDQ_P(0) >= 32) ? 1 : 0; 3768 3768 3769 3769 /* Enable only the PF's pool for Tx/Rx */ 3770 - IXGBE_WRITE_REG(hw, IXGBE_VFRE(reg_offset), GENMASK(vf_shift, 31)); 3770 + IXGBE_WRITE_REG(hw, IXGBE_VFRE(reg_offset), GENMASK(31, vf_shift)); 3771 3771 IXGBE_WRITE_REG(hw, IXGBE_VFRE(reg_offset ^ 1), reg_offset - 1); 3772 - IXGBE_WRITE_REG(hw, IXGBE_VFTE(reg_offset), GENMASK(vf_shift, 31)); 3772 + IXGBE_WRITE_REG(hw, IXGBE_VFTE(reg_offset), GENMASK(31, vf_shift)); 3773 3773 IXGBE_WRITE_REG(hw, IXGBE_VFTE(reg_offset ^ 1), reg_offset - 1); 3774 3774 if (adapter->bridge_mode == BRIDGE_MODE_VEB) 3775 3775 IXGBE_WRITE_REG(hw, IXGBE_PFDTXGSWC, IXGBE_PFDTXGSWC_VT_LBEN); ··· 9508 9508 if (pci_using_dac) 9509 9509 netdev->features |= NETIF_F_HIGHDMA; 9510 9510 9511 + netdev->vlan_features |= netdev->features | NETIF_F_TSO_MANGLEID; 9512 + netdev->hw_enc_features |= netdev->vlan_features; 9513 + netdev->mpls_features |= NETIF_F_HW_CSUM; 9514 + 9511 9515 /* set this bit last since it cannot be part of vlan_features */ 9512 9516 netdev->features |= NETIF_F_HW_VLAN_CTAG_FILTER | 9513 9517 NETIF_F_HW_VLAN_CTAG_RX | 9514 9518 NETIF_F_HW_VLAN_CTAG_TX; 9515 - 9516 - netdev->vlan_features |= netdev->features | NETIF_F_TSO_MANGLEID; 9517 - netdev->hw_enc_features |= netdev->vlan_features; 9518 - netdev->mpls_features |= NETIF_F_HW_CSUM; 9519 9519 9520 9520 netdev->priv_flags |= IFF_UNICAST_FLT; 9521 9521 netdev->priv_flags |= IFF_SUPP_NOFCS;