Skip to content

Commit 0a9003f

Browse files
Cahbdavem330
authored andcommitted
net: marvell: prestera: devlink: add traps/groups implementation
Add devlink traps registration (with corresponding groups) for all the traffic types that driver traps to the CPU; prestera_rxtx: report each packet trapped to the CPU (RX) to the prestera_devlink; Signed-off-by: Oleksandr Mazur <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7a4f547 commit 0a9003f

File tree

6 files changed

+452
-3
lines changed

6 files changed

+452
-3
lines changed

drivers/net/ethernet/marvell/prestera/prestera.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,15 @@ struct prestera_event {
170170

171171
struct prestera_switchdev;
172172
struct prestera_rxtx;
173+
struct prestera_trap_data;
173174

174175
struct prestera_switch {
175176
struct prestera_device *dev;
176177
struct prestera_switchdev *swdev;
177178
struct prestera_rxtx *rxtx;
178179
struct list_head event_handlers;
179180
struct notifier_block netdev_nb;
181+
struct prestera_trap_data *trap_data;
180182
char base_mac[ETH_ALEN];
181183
struct list_head port_list;
182184
rwlock_t port_list_lock;

0 commit comments

Comments
 (0)