History

net/mlx5e: Rx, Fix checksum calculation for new hardware

CQE checksum full mode in new HW, provides a full checksum of rx frame. Covering bytes starting from eth protocol up to last byte in the received frame (frame_size - ETH_HLEN), as expected by the stack. Fixing up skb->csum by the driver is not required in such case. This fix is to avoid wrong checksum calculation in drivers which already support the new hardware with the new checksum mode.

Saeed Mahameed committed 7 years ago

Commit db849fa1 parent 914adbb4 files · +12 −2Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/mlx5/mlx5_ifc.h+2−1
@@ -749,7 +749,8 @@ struct mlx5_ifc_per_protocol_networking_offload_caps_bits { · 748 unmodified lines
749749 u8 swp[0x1];
750750 u8 swp_csum[0x1];
751751 u8 swp_lso[0x1];
752− u8 reserved_at_23[0xd];
752+ u8 cqe_checksum_full[0x1];
753+ u8 reserved_at_24[0xc];
753754 u8 max_vxlan_udp_ports[0x8];
754755 u8 reserved_at_38[0x6];
755756 u8 max_geneve_opt_len[0x1];

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t