ethdev: make dev_ops const
authorStephen Hemminger <stephen@networkplumber.org>
Tue, 7 Apr 2015 21:21:03 +0000 (14:21 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 13 Apr 2015 20:50:10 +0000 (22:50 +0200)
commit2c62fae0a901691d458abb81f458c4818003b911
tree8d33cf709a1b41c8bbcaf51fb819b5a2d3c54705
parent36d40d0b0ecddcc369fd13ee225f8f532dbb6683
ethdev: make dev_ops const

The ethernet device ops function table should be made const for
safety and security.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
17 files changed:
app/test/virtual_pmd.c
lib/librte_ether/rte_ethdev.h
lib/librte_pmd_af_packet/rte_eth_af_packet.c
lib/librte_pmd_e1000/em_ethdev.c
lib/librte_pmd_e1000/igb_ethdev.c
lib/librte_pmd_enic/enic_ethdev.c
lib/librte_pmd_fm10k/fm10k_ethdev.c
lib/librte_pmd_i40e/i40e_ethdev.c
lib/librte_pmd_i40e/i40e_ethdev_vf.c
lib/librte_pmd_ixgbe/ixgbe_ethdev.c
lib/librte_pmd_mlx4/mlx4.c
lib/librte_pmd_null/rte_eth_null.c
lib/librte_pmd_pcap/rte_eth_pcap.c
lib/librte_pmd_ring/rte_eth_ring.c
lib/librte_pmd_virtio/virtio_ethdev.c
lib/librte_pmd_vmxnet3/vmxnet3_ethdev.c
lib/librte_pmd_xenvirt/rte_eth_xenvirt.c