mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-05-02 18:15:03 -04:00
Implement the necessary fpe_map_preemption_class callback for xgmac. Signed-off-by: Furong Xu <0x1207@gmail.com> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Link: https://patch.msgid.link/d0347f2b8a71fee372e53293fe26a6538775ec5d.1730449003.git.0x1207@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
34 lines
1.1 KiB
C
34 lines
1.1 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (C) 2024 Furong Xu <0x1207@gmail.com>
|
|
* stmmac FPE(802.3 Qbu) handling
|
|
*/
|
|
#ifndef _STMMAC_FPE_H_
|
|
#define _STMMAC_FPE_H_
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/netdevice.h>
|
|
|
|
#define STMMAC_FPE_MM_MAX_VERIFY_RETRIES 3
|
|
#define STMMAC_FPE_MM_MAX_VERIFY_TIME_MS 128
|
|
|
|
struct stmmac_priv;
|
|
|
|
void stmmac_fpe_link_state_handle(struct stmmac_priv *priv, bool is_up);
|
|
bool stmmac_fpe_supported(struct stmmac_priv *priv);
|
|
void stmmac_fpe_init(struct stmmac_priv *priv);
|
|
void stmmac_fpe_apply(struct stmmac_priv *priv);
|
|
void stmmac_fpe_irq_status(struct stmmac_priv *priv);
|
|
int stmmac_fpe_get_add_frag_size(struct stmmac_priv *priv);
|
|
void stmmac_fpe_set_add_frag_size(struct stmmac_priv *priv, u32 add_frag_size);
|
|
|
|
int dwmac5_fpe_map_preemption_class(struct net_device *ndev,
|
|
struct netlink_ext_ack *extack, u32 pclass);
|
|
int dwxgmac3_fpe_map_preemption_class(struct net_device *ndev,
|
|
struct netlink_ext_ack *extack, u32 pclass);
|
|
|
|
extern const struct stmmac_fpe_reg dwmac5_fpe_reg;
|
|
extern const struct stmmac_fpe_reg dwxgmac3_fpe_reg;
|
|
|
|
#endif
|