netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jesper Dangaard Brouer <jdb@comx.dk>
To: "netdev@vger.kernel.org" <netdev@vger.kernel.org>
Cc: "David S. Miller" <davem@davemloft.net>
Subject: Protocol handler for Marvell DSA EtherType packets
Date: Fri, 01 Feb 2008 14:28:34 +0100	[thread overview]
Message-ID: <1201872514.17661.50.camel@localhost.localdomain> (raw)

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

             reply	other threads:[~2008-02-01 13:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-01 13:28 Jesper Dangaard Brouer [this message]
2008-02-11 13:18 ` Protocol handler for Marvell DSA EtherType packets Jesper Dangaard Brouer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1201872514.17661.50.camel@localhost.localdomain \
    --to=jdb@comx.dk \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).