]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ixgbevf: handle mbox_api_13 in ixgbevf_change_mtu
authorJoao Martins <joao.m.martins@oracle.com>
Tue, 16 Jan 2018 19:03:12 +0000 (19:03 +0000)
committerJoao Martins <joao.m.martins@oracle.com>
Wed, 17 Jan 2018 20:01:30 +0000 (20:01 +0000)
Commit 180603fe7 added a new API but failed to update one place
specifically in ixgbevf_change_mtu. The lack of it leads to
mtu set failures on 82599 VFs.

Orabug: 27397028
Fixes: 180603fe7 ("ixgbevf: Add support for VF promiscuous mode")
Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Tested-by: Chuan Liu <chuan.liu@oracle.com>
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

index a596842e528e6e6a229d5687d24ba24f788c4392..2e9f04d0b79745d7c66c505631e331017ddbb720 100644 (file)
@@ -3820,6 +3820,7 @@ static int ixgbevf_change_mtu(struct net_device *netdev, int new_mtu)
        switch (adapter->hw.api_version) {
        case ixgbe_mbox_api_11:
        case ixgbe_mbox_api_12:
+       case ixgbe_mbox_api_13:
                max_possible_frame = IXGBE_MAX_JUMBO_FRAME_SIZE;
                break;
        default: