]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ibmvnic: Enable GRO
authorThomas Falcon <tlfalcon@linux.ibm.com>
Wed, 10 Apr 2019 16:06:59 +0000 (11:06 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Apr 2019 19:29:37 +0000 (12:29 -0700)
Enable Generic Receive Offload in the ibmvnic driver.

Signed-off-by: Thomas Falcon <tlfalcon@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c

index 51cfe95f3e247d9fd025bc474964289337b4c4d0..cc22c5351513911c639857bc15bffeebe15bd887 100644 (file)
@@ -3837,7 +3837,7 @@ static void handle_query_ip_offload_rsp(struct ibmvnic_adapter *adapter)
        adapter->ip_offload_ctrl.large_rx_ipv4 = 0;
        adapter->ip_offload_ctrl.large_rx_ipv6 = 0;
 
-       adapter->netdev->features = NETIF_F_SG | NETIF_F_GSO;
+       adapter->netdev->hw_features = NETIF_F_SG | NETIF_F_GSO | NETIF_F_GRO;
 
        if (buf->tcp_ipv4_chksum || buf->udp_ipv4_chksum)
                adapter->netdev->features |= NETIF_F_IP_CSUM;