Commit 185c3e58 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

net: tso: shrink struct tso_t

size field can be an int, no need for size_t

Removes a 32bit hole on 64bit kernels.

And align fields for better readability.
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9c77b803
...@@ -7,12 +7,12 @@ ...@@ -7,12 +7,12 @@
#define TSO_HEADER_SIZE 256 #define TSO_HEADER_SIZE 256
struct tso_t { struct tso_t {
int next_frag_idx; int next_frag_idx;
void *data; int size;
size_t size; void *data;
u16 ip_id; u16 ip_id;
bool ipv6; bool ipv6;
u32 tcp_seq; u32 tcp_seq;
}; };
int tso_count_descs(struct sk_buff *skb); int tso_count_descs(struct sk_buff *skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment