Skip to content

Commit

Permalink
net: add xdp_data_len field in skb_shared_info
Browse files Browse the repository at this point in the history
Introduce xdp_data_len in skb_shared_info data structure.
xdp_data_len will be used to account non-linear area length
for xdp multibuffer
  • Loading branch information
LorenzoBianconi committed Oct 2, 2020
1 parent 94ff09e commit ff9b3a7
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions include/linux/skbuff.h
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,13 @@ int skb_zerocopy_iter_stream(struct sock *sk, struct sk_buff *skb,
* the end of the header data, ie. at skb->end.
*/
struct skb_shared_info {
__u8 __unused;
__u8 meta_len;
union {
struct {
__u8 __unused;
__u8 meta_len;
};
__u16 xdp_data_len;
};
__u8 nr_frags;
__u8 tx_flags;
unsigned short gso_size;
Expand Down

0 comments on commit ff9b3a7

Please sign in to comment.