Re: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
- From: Stephen Hemminger <shemminger@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 12:33:59 -0700
On Wed, 31 Oct 2007 14:43:51 -0400
Dave Johnson <djohnson+linux-kernel@xxxxxxxxxxxxxxxxxxxxxx> wrote:
Depending on the network driver, I'm seeing different behavior if
a .1q packet is received to an PF_PACKET, SOCK_RAW, ETH_P_ALL socket.
On devices what do not use NETIF_F_HW_VLAN_RX, the packet socket gets
the complete packet with vlan tag included as the driver simply calls
netif_receive_skb() or equivilant. packet_rcv() then gets the whole
thing vlan tag included and sends this through the socket.
vlan_skb_recv() also gets these all and will drop them because there
are no vlans configured.
The VLAN acceleration grabs and hides the tag. It is a design flaw
that should be fixed, feel free to post a patch.
--
Stephen Hemminger <shemminger@xxxxxxxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
- From: Dave Johnson
- expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
- Prev by Date: Re: [RFC] Create kinst/ or ki/ directory ?
- Next by Date: Re: fix marker warnings
- Previous by thread: expected behavior of PF_PACKET on NETIF_F_HW_VLAN_RX device?
- Next by thread: BUG? task->nsproxy == NULL after main calls pthread_exit
- Index(es):
Relevant Pages
|
|