mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* dropped packets with bonding and 8021q
@ 2009-08-19 10:29 Michael Walle
  2009-08-27 22:22 ` Jesse Brandeburg
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Walle @ 2009-08-19 10:29 UTC (permalink / raw)
  To: linux-kernel


Hi,

i have some strange bonding and vlan configuration. The bonding interface
is in active-standby mode and i want to send and receive raw ethernet
frames on _both_ enslaved interfaces. Additionally the frames are tagged
with a vlan id. So one config could be:

# modprobe bonding mode=1
# modprobe 8021q
# ifenslave bond0 eth1
# ifenslave bond0 eth2
# vconfig add eth1 10
# vconfig add eth2 20
# vconfig add bond0 1000

# [activate bonding active slave etc..]

I use raw/dgram sockets (AF_PACKET) with eth1.10 and eth2.20 (or dump the
frames with tcpdump).

As long as i don't use the bonding module everything works as expected.
But if the physical interfaces are enslaved, frames received on the
standby device will be dropped.

The network driver is e1000. So the hardware acceleration for tagged VLAN
frames gets used and the frame gets through __vlan_hwaccel_rx() in the
receiving path. And there it seems to get dropped by
skb_bond_should_drop().

On the "normal" receive path there was a patch by Joe Eykholt that allows
to receive frames on the physical interface even if it is enslaved and not
active (git commit 0d7a3681232f545).

Shouldn't __vlan_hwaccel_rx() (in net/8021q/vlan_core.c) be patched in the
same way to allow reception on inactive enslaved interfaces?

Thanks,
  Michael

PS. could you please cc me, as i'm not subscribed to the ml.


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

* Re: dropped packets with bonding and 8021q
  2009-08-19 10:29 dropped packets with bonding and 8021q Michael Walle
@ 2009-08-27 22:22 ` Jesse Brandeburg
  0 siblings, 0 replies; 2+ messages in thread
From: Jesse Brandeburg @ 2009-08-27 22:22 UTC (permalink / raw)
  To: Michael Walle, NetDEV list; +Cc: linux-kernel

Forwarding to the networking mailing list

On Wed, Aug 19, 2009 at 3:29 AM, Michael Walle<michael@walle.cc> wrote:
>
> Hi,
>
> i have some strange bonding and vlan configuration. The bonding interface
> is in active-standby mode and i want to send and receive raw ethernet
> frames on _both_ enslaved interfaces. Additionally the frames are tagged
> with a vlan id. So one config could be:
>
> # modprobe bonding mode=1
> # modprobe 8021q
> # ifenslave bond0 eth1
> # ifenslave bond0 eth2
> # vconfig add eth1 10
> # vconfig add eth2 20
> # vconfig add bond0 1000
>
> # [activate bonding active slave etc..]
>
> I use raw/dgram sockets (AF_PACKET) with eth1.10 and eth2.20 (or dump the
> frames with tcpdump).
>
> As long as i don't use the bonding module everything works as expected.
> But if the physical interfaces are enslaved, frames received on the
> standby device will be dropped.
>
> The network driver is e1000. So the hardware acceleration for tagged VLAN
> frames gets used and the frame gets through __vlan_hwaccel_rx() in the
> receiving path. And there it seems to get dropped by
> skb_bond_should_drop().
>
> On the "normal" receive path there was a patch by Joe Eykholt that allows
> to receive frames on the physical interface even if it is enslaved and not
> active (git commit 0d7a3681232f545).
>
> Shouldn't __vlan_hwaccel_rx() (in net/8021q/vlan_core.c) be patched in the
> same way to allow reception on inactive enslaved interfaces?
>
> Thanks,
>  Michael
>
> PS. could you please cc me, as i'm not subscribed to the ml.
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>

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

end of thread, other threads:[~2009-08-27 22:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-19 10:29 dropped packets with bonding and 8021q Michael Walle
2009-08-27 22:22 ` Jesse Brandeburg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome