netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Protocol handler for Marvell DSA EtherType packets
@ 2008-02-01 13:28 Jesper Dangaard Brouer
  2008-02-11 13:18 ` Jesper Dangaard Brouer
  0 siblings, 1 reply; 2+ messages in thread
From: Jesper Dangaard Brouer @ 2008-02-01 13:28 UTC (permalink / raw)
  To: netdev@vger.kernel.org; +Cc: David S. Miller

Hi Netdev

I writing a new protocol handler using dev_add_pack().  (For a Marvell
switch chip handling DSA (Distributed Switch Architecture) Ethertype
packets).

My protocol handler works and I get the skb. But I want to remove the
DSA Headers and send the packet back for normal processing on a
device. (I actually just want to be able to tcpdump these packets on
the device).

I'm removing the headers by:
  skb_pull(skb, sizeof(struct dsa_header));

I'm trying to retransmit it by:
  netif_rx(skb);

But it seems that I just retransmit the same packet without removing
the DSA headers.

Any hints about which functions I should use the remove the DSA header?

-- 
Med venlig hilsen / Best regards
  Jesper Brouer
  ComX Networks A/S
  Linux Network developer
  Cand. Scient Datalog / MSc.
  Author of http://adsl-optimizer.dk
  LinkedIn: http://www.linkedin.com/in/brouer

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

end of thread, other threads:[~2008-02-11 13:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-01 13:28 Protocol handler for Marvell DSA EtherType packets Jesper Dangaard Brouer
2008-02-11 13:18 ` Jesper Dangaard Brouer

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