OSDN Git Service

net: mvneta: split rxq/txq init and txq deinit into SW and HW parts
authorJisheng Zhang <Jisheng.Zhang@synaptics.com>
Mon, 2 Apr 2018 03:23:43 +0000 (11:23 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Apr 2018 15:14:02 +0000 (11:14 -0400)
commit4a188a63afdffb5f62cccc508589c19e5297ed05
tree3a371e8015fba24582b8b913c4e721afba3256d9
parent6e00f7dd5e4edc2443f030b226f66fe4f1267667
net: mvneta: split rxq/txq init and txq deinit into SW and HW parts

This is to prepare the suspend/resume improvement in next patch. The
SW parts can be optimized out during resume.

As for rxq handling during suspend, we'd like to drop packets by
calling mvneta_rxq_drop_pkts() which is both SW and HW operation,
so we don't split rxq deinit.

Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c