net: Use skb accessors in network drivers
In preparation for unifying the skb_frag and bio_vec, use the fine accessors which already exist and use skb_frag_t instead of struct skb_frag_struct. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
7e24b4ed5a
commit
d7840976e3
@@ -975,7 +975,7 @@ static int nfp_net_prep_tx_meta(struct sk_buff *skb, u64 tls_handle)
|
||||
static int nfp_net_tx(struct sk_buff *skb, struct net_device *netdev)
|
||||
{
|
||||
struct nfp_net *nn = netdev_priv(netdev);
|
||||
const struct skb_frag_struct *frag;
|
||||
const skb_frag_t *frag;
|
||||
int f, nr_frags, wr_idx, md_bytes;
|
||||
struct nfp_net_tx_ring *tx_ring;
|
||||
struct nfp_net_r_vector *r_vec;
|
||||
@@ -1155,7 +1155,7 @@ static void nfp_net_tx_complete(struct nfp_net_tx_ring *tx_ring, int budget)
|
||||
todo = D_IDX(tx_ring, qcp_rd_p - tx_ring->qcp_rd_p);
|
||||
|
||||
while (todo--) {
|
||||
const struct skb_frag_struct *frag;
|
||||
const skb_frag_t *frag;
|
||||
struct nfp_net_tx_buf *tx_buf;
|
||||
struct sk_buff *skb;
|
||||
int fidx, nr_frags;
|
||||
@@ -1270,7 +1270,7 @@ static bool nfp_net_xdp_complete(struct nfp_net_tx_ring *tx_ring)
|
||||
static void
|
||||
nfp_net_tx_ring_reset(struct nfp_net_dp *dp, struct nfp_net_tx_ring *tx_ring)
|
||||
{
|
||||
const struct skb_frag_struct *frag;
|
||||
const skb_frag_t *frag;
|
||||
struct netdev_queue *nd_q;
|
||||
|
||||
while (!tx_ring->is_xdp && tx_ring->rd_p != tx_ring->wr_p) {
|
||||
|
Reference in New Issue
Block a user