]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix 'Re: PACKET_TX_RING: packet size is too long'
authorGabor Gombas <gombasg@sztaki.hu>
Thu, 29 Oct 2009 10:19:11 +0000 (03:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Oct 2009 10:19:11 +0000 (03:19 -0700)
commit179936dc2b5395bb6cee1132f38571d81a396832
tree224328f65e56b5d4b33078f09b397ec9e4b6ff46
parent0d5a29dfbc18d32c62a843833232cf6014cc6b24
net: Fix 'Re: PACKET_TX_RING: packet size is too long'

Currently PACKET_TX_RING forces certain amount of every frame to remain
unused. This probably originates from an early version of the
PACKET_TX_RING patch that in fact used the extra space when the (since
removed) CONFIG_PACKET_MMAP_ZERO_COPY option was enabled. The current
code does not make any use of this extra space.

This patch removes the extra space reservation and lets userspace make
use of the full frame size.

Signed-off-by: Gabor Gombas <gombasg@sztaki.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/packet/af_packet.c