mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 05:04:00 +08:00
qede: Break datapath logic into its own file
This adds a new file qede_fp.c and relocates the datapath-related logic into it [from qede_main.c]. Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
e8f1cb507d
commit
cdda926d40
@ -1,5 +1,5 @@
|
||||
obj-$(CONFIG_QEDE) := qede.o
|
||||
|
||||
qede-y := qede_main.o qede_ethtool.o
|
||||
qede-y := qede_main.o qede_fp.o qede_ethtool.o
|
||||
qede-$(CONFIG_DCB) += qede_dcbnl.o
|
||||
qede-$(CONFIG_QED_RDMA) += qede_roce.o
|
||||
|
@ -408,6 +408,17 @@ struct qede_reload_args {
|
||||
} u;
|
||||
};
|
||||
|
||||
/* Datapath functions definition */
|
||||
netdev_tx_t qede_start_xmit(struct sk_buff *skb, struct net_device *ndev);
|
||||
netdev_features_t qede_features_check(struct sk_buff *skb,
|
||||
struct net_device *dev,
|
||||
netdev_features_t features);
|
||||
void qede_tx_log_print(struct qede_dev *edev, struct qede_fastpath *fp);
|
||||
int qede_alloc_rx_buffer(struct qede_rx_queue *rxq);
|
||||
int qede_free_tx_pkt(struct qede_dev *edev,
|
||||
struct qede_tx_queue *txq, int *len);
|
||||
int qede_poll(struct napi_struct *napi, int budget);
|
||||
irqreturn_t qede_msix_fp_int(int irq, void *fp_cookie);
|
||||
#ifdef CONFIG_DCB
|
||||
void qede_set_dcbnl_ops(struct net_device *ndev);
|
||||
#endif
|
||||
|
1674
drivers/net/ethernet/qlogic/qede/qede_fp.c
Normal file
1674
drivers/net/ethernet/qlogic/qede/qede_fp.c
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user