Skip to content

Commit 9be02cd

Browse files
tlfalcondavem330
authored andcommitted
ibmvnic: enable RX checksum offload
Enable RX Checksum offload feature in the ibmvnic driver. Signed-off-by: Thomas Falcon <[email protected]> Cc: John Allen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ad7775d commit 9be02cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/net/ethernet/ibm/ibmvnic.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,6 +2105,10 @@ static void handle_query_ip_offload_rsp(struct ibmvnic_adapter *adapter)
21052105
if (buf->tcp_ipv6_chksum || buf->udp_ipv6_chksum)
21062106
adapter->netdev->features |= NETIF_F_IPV6_CSUM;
21072107

2108+
if ((adapter->netdev->features &
2109+
(NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM)))
2110+
adapter->netdev->features |= NETIF_F_RXCSUM;
2111+
21082112
memset(&crq, 0, sizeof(crq));
21092113
crq.control_ip_offload.first = IBMVNIC_CRQ_CMD;
21102114
crq.control_ip_offload.cmd = CONTROL_IP_OFFLOAD;

0 commit comments

Comments
 (0)