netdev-dpdk: Consistent variable naming.
authorDaniele Di Proietto <diproiettod@vmware.com>
Wed, 16 Mar 2016 21:44:18 +0000 (14:44 -0700)
committerDaniele Di Proietto <diproiettod@vmware.com>
Fri, 8 Apr 2016 01:59:30 +0000 (18:59 -0700)
commitd46285a2206f33177c20f15278c73b3bd906a4b9
tree8013dcd92eba9c292414810954606a85300a17c0
parentf274a04708493388f83eecbf2543473aa930f90c
netdev-dpdk: Consistent variable naming.

In different functions we use different variable names ('netdev_', 'netdev',
'dev', 'vhost_dev', ...) for the same objects.

This commit changes the code to comply with the following convention:

'struct netdev':'netdev'
'struct netdev_dpdk':'dev'
'struct virtio_net':'virtio_dev'
'struct netdev_rxq':'rxq'
'struct netdev_rxq_dpdk':'rx'

Also, 'dev->up.' is replaced by 'netdev->', where 'netdev' was already
defined.

Suggested-by: Ilya Maximets <i.maximets@samsung.com>
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Tested-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Ilya Maximets <i.maximets@samsung.com>
Acked-by: Mark Kavanagh <mark.b.kavanagh@intel.com>
lib/netdev-dpdk.c