net/vmxnet3: avoid code duplication
authorChas Williams <ciwillia@brocade.com>
Thu, 29 Jun 2017 19:35:50 +0000 (15:35 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:57 +0000 (15:00 +0200)
commit1052c4c406e2a6018cd93f7a541738ec71fb80d1
tree010cd0bf147fcb8e8bf50dd32ab5b20dab828385
parent4be06219012181c6f500c8f23440baaf7d4d3618
net/vmxnet3: avoid code duplication

Refactor vmxnet3_post_rx_bufs() to call vmxnet3_renew_desc()
to update the newly allocated mbufs.  While here, relocate the
relevant comments to vmxnet3_renew_desc().

Signed-off-by: Chas Williams <ciwillia@brocade.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/vmxnet3/vmxnet3_rxtx.c