eal: make driver pointer const in device struct
The info in rte_device about driver is immutable and shouldn't change. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Jan Blunck <jblunck@infradead.org> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
This commit is contained in:
parent
bb30369dc1
commit
71ff78a7f7
@ -122,7 +122,7 @@ struct rte_driver;
|
||||
*/
|
||||
struct rte_device {
|
||||
TAILQ_ENTRY(rte_device) next; /**< Next device */
|
||||
struct rte_driver *driver; /**< Associated driver */
|
||||
const struct rte_driver *driver;/**< Associated driver */
|
||||
int numa_node; /**< NUMA node connection */
|
||||
struct rte_devargs *devargs; /**< Device user arguments */
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user