exanic-software icon indicating copy to clipboard operation
exanic-software copied to clipboard

Fix condition for using SIOCDEVPRIVATE ioctls

Open danfruehauf opened this issue 1 year ago • 3 comments

On el9, SIOCDEVPRIVATE was backported to be used on kernel 5.14.x. Fix current condition that assumes this is present only on 5.15.0 and newer

Fixes #74 #67

danfruehauf avatar May 24 '23 01:05 danfruehauf

Hello, @danfruehauf. On 5.14.0-70.30.1.el9_0.x86_64 I am getting errno: 99, Cannot assign requested address for this PR

Alexxstud avatar Jun 19 '23 07:06 Alexxstud

Hey @Alexxstud, thanks for testing it!

Have you made sure the driver is reloaded? It works for us, and also can be tested using:

$ exanic-config enp2s0d7

Or any other interface...

Before that patch, it fails to find specific interfaces using names (this is the actual fix). Can you please test exanic-config against a specific interfaces? Cheers

danfruehauf avatar Aug 09 '23 00:08 danfruehauf

It appears that on EL9 It exanic_netdev_siocdevprivate is being called instead of exanic_netdev_ioctl for SIOCGHWTSTAMP, SIOCSHWTSTAMP, EXAIOCGHWTSTAMP which results in inability to set/get timestamps on file descriptors since doing so is contingent on a result of those calls.

tklinchik avatar Sep 14 '23 12:09 tklinchik