Driver no longer builds, due to kernel API "ndo_change_mtu"

Solution Verified - Updated -

Issue

A custom device driver no longer compiles on rhel-7.5, getting an error for a nonexistent structure element.

/home/xxx/xxx-software/src/modules/xxx/xxx-netdev.c:1013:5: error: unknown field ‘ndo_change_mtu’ specified in initializer
     .ndo_change_mtu         = xxx_netdev_change_mtu,

Environment

Red Hat Enterprise Linux (RHEL) 7.4
Red Hat Enterprise Linux (RHEL) 7.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.