Score:0

How to assign a driver to a specific interface?

ec flag

working on : ubuntu 20.4 (hosted by esxi) I would like to assign a driver to a specific interface :

ifconfig show two interface name

ens160:

ens192:

160 is classic ETH and 192 is an HBA connector 25 Gb.

I show you more informations with the fcoe command :

#fcoeadm -i ens192

Description:      VMXNET3 Ethernet Controller
Revision:         01
Manufacturer:     VMware
Serial Number:    005056AAA998

Driver:           vmxnet3 1.5.0.0-k
Number of Ports:  1

    Symbolic Name:     fcoe v0.1 over ens192
    OS Device Name:    host33
    Node Name:         0x1000005056aaa998
    Port Name:         0x2000005056aaa998
    Fabric Name:        0x0
    Speed:             10 Gbit
    Supported Speed:   1 Gbit, 10 Gbit
    MaxFrameSize:      1452 bytes
    FC-ID (Port ID):   0xffffffff
    State:             Offline

The hba connector is : Mellanox Technologies MT27800 Family [ConnectX-5]

Let's see :

#lshw -C network |grep conf

   configuration : autonegotiation=off broadcast=yes driver=vmxnet3 driverversion=1.5.0.0-k-NAPI duplex=full ip=10.18.100.7 latency=0 link=yes multicast=yes port=twisted pair speed=10Gbit/s


   configuration : autonegotiation=off broadcast=yes driver=vmxnet3 driverversion=1.5.0.0-k-NAPI duplex=full ip=172.16.44.7 latency=0 link=yes multicast=yes port=twisted pair speed=10Gbit/s

I already loaded the module mlx5_core and also restarted the network interface.

#:/lib/modules/5.8.0-55-generic# lsmod |grep -e 'mlx|vmx' mlx5_core 1044480 0 tls 90112 1 mlx5_core mlxfw 32768 1 mlx5_core pci_hyperv_intf 16384 1 mlx5_core vmxnet3 61440 0

But that i want to do is to specifically assign the mlx5 module to the ens192 network interface.

Can someone gime the tips pls? :)

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.