linux/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-devlink.c

// SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)
#include "dpaa2-eth.h"
/* Copyright 2020 NXP
 */

#define DPAA2_ETH_TRAP_DROP(_id, _group_id)

static const struct devlink_trap_group dpaa2_eth_trap_groups_arr[] =;

static const struct devlink_trap dpaa2_eth_traps_arr[] =;

static int dpaa2_eth_dl_info_get(struct devlink *devlink,
				 struct devlink_info_req *req,
				 struct netlink_ext_ack *extack)
{}

static struct dpaa2_eth_trap_item *
dpaa2_eth_dl_trap_item_lookup(struct dpaa2_eth_priv *priv, u16 trap_id)
{}

struct dpaa2_eth_trap_item *dpaa2_eth_dl_get_trap(struct dpaa2_eth_priv *priv,
						  struct dpaa2_fapr *fapr)
{}

static int dpaa2_eth_dl_trap_init(struct devlink *devlink,
				  const struct devlink_trap *trap,
				  void *trap_ctx)
{}

static int dpaa2_eth_dl_trap_action_set(struct devlink *devlink,
					const struct devlink_trap *trap,
					enum devlink_trap_action action,
					struct netlink_ext_ack *extack)
{}

static int dpaa2_eth_dl_trap_group_action_set(struct devlink *devlink,
					      const struct devlink_trap_group *group,
					      enum devlink_trap_action action,
					      struct netlink_ext_ack *extack)
{}

static const struct devlink_ops dpaa2_eth_devlink_ops =;

int dpaa2_eth_dl_alloc(struct dpaa2_eth_priv *priv)
{}

void dpaa2_eth_dl_free(struct dpaa2_eth_priv *priv)
{}


void dpaa2_eth_dl_register(struct dpaa2_eth_priv *priv)
{}

void dpaa2_eth_dl_unregister(struct dpaa2_eth_priv *priv)
{}

int dpaa2_eth_dl_port_add(struct dpaa2_eth_priv *priv)
{}

void dpaa2_eth_dl_port_del(struct dpaa2_eth_priv *priv)
{}

int dpaa2_eth_dl_traps_register(struct dpaa2_eth_priv *priv)
{}

void dpaa2_eth_dl_traps_unregister(struct dpaa2_eth_priv *priv)
{}