LinuxKPI: skbuff: checksum offloading flags
Given the checksum offloading flags are mutually exclusive and are not a bit mask, we can compress them into 2 bit for the four possible values. Change the define but leave the type at uint8_t for now with a comment. We can possible combine them with another sub-octet field in the future. Sponsored by: The FreeBSD Foundation MFC after: 3 days
This commit is contained in:
@@ -120,7 +120,7 @@ enum sk_checksum_flags {
|
||||
CHECKSUM_NONE = 0x00,
|
||||
CHECKSUM_UNNECESSARY = 0x01,
|
||||
CHECKSUM_PARTIAL = 0x02,
|
||||
CHECKSUM_COMPLETE = 0x04,
|
||||
CHECKSUM_COMPLETE = 0x03,
|
||||
};
|
||||
|
||||
struct skb_frag {
|
||||
@@ -170,7 +170,7 @@ struct sk_buff {
|
||||
};
|
||||
};
|
||||
uint16_t protocol;
|
||||
uint8_t ip_summed;
|
||||
uint8_t ip_summed; /* 2 bit only. */
|
||||
/* uint8_t */
|
||||
|
||||
/* "Scratch" area for layers to store metadata. */
|
||||
|
||||
Reference in New Issue
Block a user