netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* struct tpacket_auxdata userspace ABI breakage
@ 2008-07-22 16:08 Adrian Bunk
  2008-07-22 16:36 ` Patrick McHardy
  0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-07-22 16:08 UTC (permalink / raw)
  To: Patrick McHardy, David S. Miller; +Cc: netdev

Commit 393e52e33c6c26ec7db290dab803bac1bed962d4
(packet: deliver VLAN TCI to userspace) adds a
member tp_vlan_tci to struct tpacket_auxdata.

This changes the size of the struct, and unless I miss something
it is an ABI change that must be reverted.

cu
Adrian

-- 

       "Is there not promise of rain?" Ling Tan asked suddenly out
        of the darkness. There had been need of rain for many days.
       "Only a promise," Lao Er said.
                                       Pearl S. Buck - Dragon Seed


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

* Re: struct tpacket_auxdata userspace ABI breakage
  2008-07-22 16:08 struct tpacket_auxdata userspace ABI breakage Adrian Bunk
@ 2008-07-22 16:36 ` Patrick McHardy
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick McHardy @ 2008-07-22 16:36 UTC (permalink / raw)
  To: Adrian Bunk; +Cc: David S. Miller, netdev

Adrian Bunk wrote:
> Commit 393e52e33c6c26ec7db290dab803bac1bed962d4
> (packet: deliver VLAN TCI to userspace) adds a
> member tp_vlan_tci to struct tpacket_auxdata.
> 
> This changes the size of the struct, and unless I miss something
> it is an ABI change that must be reverted.

It increases the structure size under the assumption that userspace
should be able to handle this since its expected that more things
will be added over time. Existing binaries will continue to run just
fine in any case, the only potential problem is when compiling against
new headers and running on old kernels (structures will appear
undersized if userspace doesn't handle this correctly). An alternative
would a new cmsg for the VLAN TCI.

The only existing user of this (a set of patches I sent for libpcap)
handles this correctly though.



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

end of thread, other threads:[~2008-07-22 16:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-22 16:08 struct tpacket_auxdata userspace ABI breakage Adrian Bunk
2008-07-22 16:36 ` Patrick McHardy

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).