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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content