]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: move PTP lock and unlock to caller in Tx path
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Tue, 23 Jun 2020 20:21:32 +0000 (01:51 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Jun 2020 22:18:47 +0000 (15:18 -0700)
commite649c21771bb55d811752757743a8ae8ad3d9680
treed81f2c7c454449d7fdb9f331c0ec330198d93f60
parent764c7695cbacb4f23c6bf6f49f467cb4e21269b8
cxgb4: move PTP lock and unlock to caller in Tx path

Check for whether PTP is enabled or not at the caller and perform
locking/unlocking at the caller.

Fixes following sparse warning:
sge.c:1641:26: warning: context imbalance in 'cxgb4_eth_xmit' -
different lock contexts for basic block

Fixes: bee8584e4ac0 ("cxgb4: time stamping interface for PTP")
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/sge.c