Skip to content

Commit

Permalink
add NXP DAAP2 driver
Browse files Browse the repository at this point in the history
  • Loading branch information
raybellis committed Feb 9, 2024
1 parent d34a544 commit 7c31376
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ TARGETS = ethq ethq_test

DRIVER_OBJS = drv_generic.o \
drv_bcm.o drv_emulex.o drv_intel.o drv_mellanox.o \
drv_amazon.o drv_virtio.o drv_vmware.o drv_sfc.o
drv_amazon.o drv_virtio.o drv_vmware.o drv_sfc.o \
drv_nxp.o

all: $(TARGETS)

Expand Down
18 changes: 18 additions & 0 deletions drv_nxp.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* See the COPYRIGHT file distributed with this work for additional
* information regarding copyright ownership.
*/

#include "parser.h"

static RegexParser nxp_daap2(
{ "fsl_dpaa2_eth" },
{ "^\\[hw\\] (rx|tx) (bytes|frames)$", { 1, 2 } },
RegexParser::queue_nomatch
);
74 changes: 74 additions & 0 deletions tests/fsl_dpaa2_eth
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
NIC statistics:
[hw] rx frames: 92343581
[hw] rx bytes: 48809586696
[hw] rx mcast frames: 816094
[hw] rx mcast bytes: 181447466
[hw] rx bcast frames: 965862
[hw] rx bcast bytes: 126041185
[hw] tx frames: 331202545
[hw] tx bytes: 383050568929
[hw] tx mcast frames: 10936040
[hw] tx mcast bytes: 2975608926
[hw] tx bcast frames: 602592
[hw] tx bcast bytes: 124871017
[hw] rx filtered frames: 0
[hw] rx discarded frames: 0
[hw] rx nobuffer discards: 0
[hw] tx discarded frames: 0
[hw] tx confirmed frames: 331202545
[hw] tx dequeued bytes: 383050568929
[hw] tx dequeued frames: 331202545
[hw] tx rejected bytes: 0
[hw] tx rejected frames: 0
[hw] tx pending frames: 0
[drv] tx conf frames: 331202545
[drv] tx conf bytes: 383050568929
[drv] tx sg frames: 92122892
[drv] tx sg bytes: 129969786399
[drv] tx tso frames: 44078304
[drv] tx tso bytes: 65582872849
[drv] rx sg frames: 0
[drv] rx sg bytes: 0
[drv] tx converted sg frames: 4803265
[drv] tx converted sg bytes: 399365079
[drv] enqueue portal busy: 0
[drv] dequeue portal busy: 0
[drv] channel pull errors: 0
[drv] cdan: 189818939
[drv] xdp drop: 0
[drv] xdp tx: 0
[drv] xdp tx errors: 0
[drv] xdp redirect: 0
[qbman] rx pending frames: 0
[qbman] rx pending bytes: 0
[qbman] tx conf pending frames: 0
[qbman] tx conf pending bytes: 0
[qbman] buffer count: 20396
[mac] rx 64 bytes: 4496630
[mac] rx 65-127 bytes: 46601925
[mac] rx 128-255 bytes: 9955626
[mac] rx 256-511 bytes: 2078612
[mac] rx 512-1023 bytes: 2130788
[mac] rx 1024-1518 bytes: 27080001
[mac] rx 1519-max bytes: 0
[mac] rx frags: 0
[mac] rx jabber: 0
[mac] rx frame discards: 0
[mac] rx align errors: 0
[mac] tx undersized: 0
[mac] rx oversized: 0
[mac] rx pause: 0
[mac] tx b-pause: 0
[mac] rx bytes: 49178961174
[mac] rx m-cast: 816094
[mac] rx b-cast: 965862
[mac] rx all frames: 92343583
[mac] rx u-cast: 90561627
[mac] rx frame errors: 0
[mac] tx bytes: 384409304192
[mac] tx m-cast: 10936040
[mac] tx b-cast: 602592
[mac] tx u-cast: 319663913
[mac] tx frame errors: 0
[mac] rx frames ok: 92343583
[mac] tx frames ok: 331202545

0 comments on commit 7c31376

Please sign in to comment.