|
40 | 40 | #include "ixgbe_dcb_82599.h" |
41 | 41 | #include "ixgbe_sriov.h" |
42 | 42 | #include "ixgbe_model.h" |
| 43 | +#include "ixgbe_txrx_common.h" |
43 | 44 |
|
44 | 45 | char ixgbe_driver_name[] = "ixgbe"; |
45 | 46 | static const char ixgbe_driver_string[] = |
@@ -1673,9 +1674,9 @@ static void ixgbe_update_rsc_stats(struct ixgbe_ring *rx_ring, |
1673 | 1674 | * order to populate the hash, checksum, VLAN, timestamp, protocol, and |
1674 | 1675 | * other fields within the skb. |
1675 | 1676 | **/ |
1676 | | -static void ixgbe_process_skb_fields(struct ixgbe_ring *rx_ring, |
1677 | | - union ixgbe_adv_rx_desc *rx_desc, |
1678 | | - struct sk_buff *skb) |
| 1677 | +void ixgbe_process_skb_fields(struct ixgbe_ring *rx_ring, |
| 1678 | + union ixgbe_adv_rx_desc *rx_desc, |
| 1679 | + struct sk_buff *skb) |
1679 | 1680 | { |
1680 | 1681 | struct net_device *dev = rx_ring->netdev; |
1681 | 1682 | u32 flags = rx_ring->q_vector->adapter->flags; |
@@ -1708,8 +1709,8 @@ static void ixgbe_process_skb_fields(struct ixgbe_ring *rx_ring, |
1708 | 1709 | skb->protocol = eth_type_trans(skb, dev); |
1709 | 1710 | } |
1710 | 1711 |
|
1711 | | -static void ixgbe_rx_skb(struct ixgbe_q_vector *q_vector, |
1712 | | - struct sk_buff *skb) |
| 1712 | +void ixgbe_rx_skb(struct ixgbe_q_vector *q_vector, |
| 1713 | + struct sk_buff *skb) |
1713 | 1714 | { |
1714 | 1715 | napi_gro_receive(&q_vector->napi, skb); |
1715 | 1716 | } |
@@ -1868,9 +1869,9 @@ static void ixgbe_dma_sync_frag(struct ixgbe_ring *rx_ring, |
1868 | 1869 | * |
1869 | 1870 | * Returns true if an error was encountered and skb was freed. |
1870 | 1871 | **/ |
1871 | | -static bool ixgbe_cleanup_headers(struct ixgbe_ring *rx_ring, |
1872 | | - union ixgbe_adv_rx_desc *rx_desc, |
1873 | | - struct sk_buff *skb) |
| 1872 | +bool ixgbe_cleanup_headers(struct ixgbe_ring *rx_ring, |
| 1873 | + union ixgbe_adv_rx_desc *rx_desc, |
| 1874 | + struct sk_buff *skb) |
1874 | 1875 | { |
1875 | 1876 | struct net_device *netdev = rx_ring->netdev; |
1876 | 1877 |
|
@@ -2186,14 +2187,6 @@ static struct sk_buff *ixgbe_build_skb(struct ixgbe_ring *rx_ring, |
2186 | 2187 | return skb; |
2187 | 2188 | } |
2188 | 2189 |
|
2189 | | -#define IXGBE_XDP_PASS 0 |
2190 | | -#define IXGBE_XDP_CONSUMED BIT(0) |
2191 | | -#define IXGBE_XDP_TX BIT(1) |
2192 | | -#define IXGBE_XDP_REDIR BIT(2) |
2193 | | - |
2194 | | -static int ixgbe_xmit_xdp_ring(struct ixgbe_adapter *adapter, |
2195 | | - struct xdp_frame *xdpf); |
2196 | | - |
2197 | 2190 | static struct sk_buff *ixgbe_run_xdp(struct ixgbe_adapter *adapter, |
2198 | 2191 | struct ixgbe_ring *rx_ring, |
2199 | 2192 | struct xdp_buff *xdp) |
@@ -8469,8 +8462,8 @@ static u16 ixgbe_select_queue(struct net_device *dev, struct sk_buff *skb, |
8469 | 8462 | } |
8470 | 8463 |
|
8471 | 8464 | #endif |
8472 | | -static int ixgbe_xmit_xdp_ring(struct ixgbe_adapter *adapter, |
8473 | | - struct xdp_frame *xdpf) |
| 8465 | +int ixgbe_xmit_xdp_ring(struct ixgbe_adapter *adapter, |
| 8466 | + struct xdp_frame *xdpf) |
8474 | 8467 | { |
8475 | 8468 | struct ixgbe_ring *ring = adapter->xdp_ring[smp_processor_id()]; |
8476 | 8469 | struct ixgbe_tx_buffer *tx_buffer; |
|
0 commit comments