Introduce TP_STATUS_CSUM_VALID tp_status flag to tell the af_packet user that at least the transport header checksum has been already validated. For now, the flag may be set for incoming packets only.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -99,6 +99,7 @@ struct tpacket_auxdata { · 98 unmodified lines | ||
| 99 | 99 | #define TP_STATUS_VLAN_VALID (1 << 4) /* auxdata has valid tp_vlan_tci */ |
| 100 | 100 | #define TP_STATUS_BLK_TMO (1 << 5) |
| 101 | 101 | #define TP_STATUS_VLAN_TPID_VALID (1 << 6) /* auxdata has valid tp_vlan_tpid */ |
| 102 | +#define TP_STATUS_CSUM_VALID (1 << 7) | |
| 102 | 103 | |
| 103 | 104 | /* Tx ring - header status */ |
| 104 | 105 | #define TP_STATUS_AVAILABLE 0 |