]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: arrange Tx tail pointer update to stmmac_flush_tx_descriptors
authorOng Boon Leong <boon.leong.ong@intel.com>
Thu, 1 Apr 2021 02:11:14 +0000 (10:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Apr 2021 21:13:38 +0000 (14:13 -0700)
commit95ffa90fa40d1bc79a4f626cda1adf64df1a8699
treecb483101bc2de27f8733b2b941a1f52be8358b45
parent28fe8f90395f52d7b51f5ea9b47f9f0e7bf8008e
net: stmmac: arrange Tx tail pointer update to stmmac_flush_tx_descriptors

This patch organizes TX tail pointer update into a new function called
stmmac_flush_tx_descriptors() so that we can reuse it in stmmac_xmit(),
stmmac_tso_xmit() and up-coming XDP implementation.

Changes to v2:
 - Fix for warning: unused variable ‘desc_size’
   https://patchwork.hopto.org/static/nipa/457321/12170149/build_32bit/stderr

Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c