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:

gecommit door
David S. Miller

bovenliggende
7e24b4ed5a
commit
d7840976e3
@@ -696,7 +696,7 @@ static int mtk_tx_map(struct sk_buff *skb, struct net_device *dev,
|
||||
txd = itxd;
|
||||
nr_frags = skb_shinfo(skb)->nr_frags;
|
||||
for (i = 0; i < nr_frags; i++) {
|
||||
struct skb_frag_struct *frag = &skb_shinfo(skb)->frags[i];
|
||||
skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
|
||||
unsigned int offset = 0;
|
||||
int frag_size = skb_frag_size(frag);
|
||||
|
||||
@@ -781,7 +781,7 @@ err_dma:
|
||||
static inline int mtk_cal_txd_req(struct sk_buff *skb)
|
||||
{
|
||||
int i, nfrags;
|
||||
struct skb_frag_struct *frag;
|
||||
skb_frag_t *frag;
|
||||
|
||||
nfrags = 1;
|
||||
if (skb_is_gso(skb)) {
|
||||
|
Verwijs in nieuw issue
Block a user