-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ixgbe: move common Rx functions to ixgbe_txrx_common.h
This patch prepares for the upcoming zero-copy Rx functionality, by moving/changing linkage of common functions, used both by the regular path and zero-copy path. Signed-off-by: Björn Töpel <bjorn.topel@intel.com> Tested-by: William Tu <u9012063@gmail.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
- Loading branch information
Björn Töpel
authored and
Jeff Kirsher
committed
Oct 3, 2018
1 parent
024aa58
commit 46515fd
Showing
2 changed files
with
37 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
/* Copyright(c) 2018 Intel Corporation. */ | ||
|
||
#ifndef _IXGBE_TXRX_COMMON_H_ | ||
#define _IXGBE_TXRX_COMMON_H_ | ||
|
||
#define IXGBE_XDP_PASS 0 | ||
#define IXGBE_XDP_CONSUMED BIT(0) | ||
#define IXGBE_XDP_TX BIT(1) | ||
#define IXGBE_XDP_REDIR BIT(2) | ||
|
||
int ixgbe_xmit_xdp_ring(struct ixgbe_adapter *adapter, | ||
struct xdp_frame *xdpf); | ||
bool ixgbe_cleanup_headers(struct ixgbe_ring *rx_ring, | ||
union ixgbe_adv_rx_desc *rx_desc, | ||
struct sk_buff *skb); | ||
void ixgbe_process_skb_fields(struct ixgbe_ring *rx_ring, | ||
union ixgbe_adv_rx_desc *rx_desc, | ||
struct sk_buff *skb); | ||
void ixgbe_rx_skb(struct ixgbe_q_vector *q_vector, | ||
struct sk_buff *skb); | ||
|
||
void ixgbe_txrx_ring_disable(struct ixgbe_adapter *adapter, int ring); | ||
void ixgbe_txrx_ring_enable(struct ixgbe_adapter *adapter, int ring); | ||
|
||
#endif /* #define _IXGBE_TXRX_COMMON_H_ */ |