kvm tools: Use standardized style for the virtio/net.c driver
I had a quick look at virtio/net.c and it still had quite many style inefficiencies - all of which are patterns which i pointed out before: - use short names for devices within the driver, so not 'net_device' but 'ndev' - everyone hacking net.c knows that this is the network driver so 'ndev' is a self-explanatory (and very short) term of art ... - use 'pci_header' instead of the ambiguous and misleading 'virtio_net_pci_device' naming. - do not repeat 'net' in struct net_device fields! So rename ndev->net_config to ndev->config. - In the kernel we generally use _lock names for mutexes. This is conceptually more generic. So rename the net device mutexes accordingly. - group #include lines in a topical way instead of a random mess - fix vertical alignment mismatches Signed-off-by:Ingo Molnar <mingo@elte.hu> Signed-off-by:
Pekka Enberg <penberg@kernel.org>
Loading
Please register or sign in to comment