Skip to content

RFC Sample driver using raw Ethernet packet interface

Richard Cochran xenomai 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4gianfar: reserve the first transmit queuedrivers/net/gianfar.c+7 -40 replies
2/4gianfar: reserve the first receive queuedrivers/net/gianfar.c drivers/net/gianfar.h drivers/net/gianfar_ethtool.c+23 -2390 replies
3/4Add a real time module for the gianfar driver.drivers/net/Makefile drivers/net/gianfar.c drivers/net/gianfar.h +1 more+399 -140 replies
4/4Add a real time packet reception to the gianfar driver.drivers/net/gianfar.c drivers/net/gianfar.h drivers/net/gianfar_rt.c+62 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Xenomai-core] [RFC 0/4] Sample driver using raw Ethernet packet interface

*** Applies to ipipe-2.6.36-powerpc-2.12-03

This patch provides an example driver for the raw packet interface. Much of the code is copy/paste from the main gainfar driver. The patch uses the hardware priority queues of the P2020 to make a fast path for real time traffic. Note this might not work on other eTSEC devices due to slight implementation differences in the hardware!

If you really want to run this code, you might also apply the following patch.

cd0ea241 gianfar: Fix crashes on RX path

Richard Cochran (4):
gianfar: reserve the first transmit queue
gianfar: reserve the first receive queue
Add a real time module for the gianfar driver. Add a real time packet reception to the gianfar driver.

 drivers/net/Makefile          |    5 +
 drivers/net/gianfar.c         |  120 ++++----------
 drivers/net/gianfar.h         |   90 ++++++++++-
 drivers/net/gianfar_ethtool.c |  163 +------------------
 drivers/net/gianfar_rt.c      |  366 +++++++++++++++++++++++++++++++++++++++++
 5 files changed, 487 insertions(+), 257 deletions(-)
 create mode 100644 drivers/net/gianfar_rt.c
Signature · 1 line
1.7.2.5