mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-17 22:23:45 -04:00
Clean all queues associated with a q_vector, to simple receive packets without hardware features. Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
30 lines
1.0 KiB
C
30 lines
1.0 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* WangXun Gigabit PCI Express Linux driver
|
|
* Copyright (c) 2019 - 2022 Beijing WangXun Technology Co., Ltd.
|
|
*/
|
|
|
|
#ifndef _WX_LIB_H_
|
|
#define _WX_LIB_H_
|
|
|
|
void wx_alloc_rx_buffers(struct wx_ring *rx_ring, u16 cleaned_count);
|
|
u16 wx_desc_unused(struct wx_ring *ring);
|
|
void wx_napi_enable_all(struct wx *wx);
|
|
void wx_napi_disable_all(struct wx *wx);
|
|
void wx_reset_interrupt_capability(struct wx *wx);
|
|
void wx_clear_interrupt_scheme(struct wx *wx);
|
|
int wx_init_interrupt_scheme(struct wx *wx);
|
|
irqreturn_t wx_msix_clean_rings(int __always_unused irq, void *data);
|
|
void wx_free_irq(struct wx *wx);
|
|
int wx_setup_isb_resources(struct wx *wx);
|
|
void wx_free_isb_resources(struct wx *wx);
|
|
u32 wx_misc_isb(struct wx *wx, enum wx_isb_idx idx);
|
|
void wx_configure_vectors(struct wx *wx);
|
|
void wx_clean_all_rx_rings(struct wx *wx);
|
|
void wx_free_resources(struct wx *wx);
|
|
int wx_setup_resources(struct wx *wx);
|
|
void wx_get_stats64(struct net_device *netdev,
|
|
struct rtnl_link_stats64 *stats);
|
|
|
|
#endif /* _NGBE_LIB_H_ */
|