tipc: Optimize handling excess content on incoming messages
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Wed, 8 Sep 2010 13:31:24 +0000 (13:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Sep 2010 04:34:14 +0000 (21:34 -0700)
commitb2abd4c033c3965ce670841dfb401f5f166222d5
tree4dc7d0ac0f24001a95a9842a9c58468a343b4e08
parentfb621bac21fc315af9f66a754b7abe26ded3f260
tipc: Optimize handling excess content on incoming messages

Remove code that trimmed excess trailing info from incoming messages
arriving over an Ethernet interface.  TIPC now ignores the extra info
while the message is being processed by the node, and only trims it off
if the message is retransmitted to another node.  (This latter step is
done to ensure the extra info doesn't cause the sk_buff to exceed the
outgoing interface's MTU limit.) The outgoing buffer is guaranteed to
be linear.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/eth_media.c
net/tipc/net.c