mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
net: nvethernet: Fix build for Linux v6.9
In Linux v6.9-rc1, the typedef of skb_frag_t is updated to a new struct skb_frag. Struct skb_frag does not include bv_offset and bv_page members. Hence, use functions skb_frag_off and skb_frag_page to get offset and page respectively. Use of functions skb_frag_off and skb_frag_page is backward compatible with older kernel versions that we use. Bug 4471899 Signed-off-by: Paritosh Dixit <paritoshd@nvidia.com> Change-Id: I5d14c750c5b4cd28a2abeda95d7c11bf975ef1b8 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3104114 GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com> Reviewed-by: Revanth Kumar Uppala <ruppala@nvidia.com> Reviewed-by: Brad Griffis <bgriffis@nvidia.com> Reviewed-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
e4f9759f61
commit
f451b88fd7
@@ -3305,10 +3305,10 @@ static int ether_tx_swcx_alloc(struct ether_priv_data *pdata,
|
||||
}
|
||||
|
||||
size = min(len, max_data_len_per_txd);
|
||||
page_idx = (frag->bv_offset + offset) >> PAGE_SHIFT;
|
||||
page_offset = (frag->bv_offset + offset) & ~PAGE_MASK;
|
||||
page_idx = (skb_frag_off(frag) + offset) >> PAGE_SHIFT;
|
||||
page_offset = (skb_frag_off(frag) + offset) & ~PAGE_MASK;
|
||||
tx_swcx->buf_phy_addr = dma_map_page(dev,
|
||||
(frag->bv_page + page_idx),
|
||||
(skb_frag_page(frag) + page_idx),
|
||||
page_offset, size,
|
||||
DMA_TO_DEVICE);
|
||||
if (unlikely(dma_mapping_error(dev,
|
||||
|
||||
Reference in New Issue
Block a user