netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH net-next 0/1 v2] skbuff: Extend gso_type to unsigned int.
@ 2017-04-09 16:07 Alexey Dobriyan
  0 siblings, 0 replies; 5+ messages in thread
From: Alexey Dobriyan @ 2017-04-09 16:07 UTC (permalink / raw)
  To: steffen.klassert; +Cc: edumazet, davem, netdev

>  struct skb_shared_info {
> +	unsigned short	_unused;
>  	unsigned char	nr_frags;

This makes _all_ fields to be accessed with offset, but if you move
padding down, at least ->nr_frags will enjoy clean and simple [R64]
addressing.

On allyesconfig-ish kernel:

	before:	+542 = 720-178
	 after:	-158 =  53-211 (negative, because 16-bit field became 32-bit)

You may want to add configurable redzone there instead of padding
if that what you want. 2 bytes is nothing.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH net-next 0/1 v2] skbuff: Extend gso_type to unsigned int
@ 2017-04-08 18:36 Steffen Klassert
  2017-04-08 18:36 ` Steffen Klassert
  0 siblings, 1 reply; 5+ messages in thread
From: Steffen Klassert @ 2017-04-08 18:36 UTC (permalink / raw)
  To: David Miller; +Cc: Steffen Klassert, netdev, Eric Dumazet, Alexander Duyck

We need a GSO type for IPsec ESP to be able to integrate the IPsec
hardware offloading infrastructure. Unfortunately, all gso_type flags
are currently in use. This change extends gso_type from 'unsigned short'
to 'unsigned int'.

Changes from v1:

- Place the remaining two byte hole in front, suggested by
  Eric Dumazet.

- Skipping the memset of the two byte hole is unnecessary
  as it does not matter if we memset two or four bytes more,
  suggested by Alexander Duyck.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-04-09 16:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-09 16:07 [PATCH net-next 0/1 v2] skbuff: Extend gso_type to unsigned int Alexey Dobriyan
  -- strict thread matches above, loose matches on Subject: below --
2017-04-08 18:36 Steffen Klassert
2017-04-08 18:36 ` Steffen Klassert
2017-04-08 18:55   ` Eric Dumazet
2017-04-08 19:32     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).