ibmvnic: Let users change net device features
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Tue, 17 Oct 2017 17:36:56 +0000 (12:36 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Oct 2017 12:20:32 +0000 (13:20 +0100)
Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c

index aedb81c..b991703 100644 (file)
@@ -3019,6 +3019,8 @@ static void handle_query_ip_offload_rsp(struct ibmvnic_adapter *adapter)
        if (buf->large_tx_ipv6)
                adapter->netdev->features |= NETIF_F_TSO6;
 
+       adapter->netdev->hw_features |= adapter->netdev->features;
+
        memset(&crq, 0, sizeof(crq));
        crq.control_ip_offload.first = IBMVNIC_CRQ_CMD;
        crq.control_ip_offload.cmd = CONTROL_IP_OFFLOAD;