Aquantia / AQtion

Aquantia AQC multigigabit NIC linux driver (atlantic) - development preview
https://www.aquantia.com
82 stars 28 forks source link

make 6.2.0 compilable #51

Open victoryang00 opened 1 year ago

victoryang00 commented 1 year ago

Default ubuntu 23.04 release's kernel 6.2.0-20-generic misses a lot of the symbol, the dmesg shows below.

[    1.446775] atlantic: no symbol version for module_layout
[    1.446835] atlantic: module verification failed: signature and/or required key missing - tainting kernel
[    1.446842] atlantic: disagrees about version of symbol __tracepoint_xdp_exception
[    1.446843] atlantic: Unknown symbol __tracepoint_xdp_exception (err -22)
[    1.446862] atlantic: Unknown symbol kmem_cache_alloc_trace (err -2)
[    1.446868] atlantic: Unknown symbol kmalloc_order_trace (err -2)
[    1.446882] atlantic: Unknown symbol del_timer_sync (err -2)
[    1.446886] atlantic: Unknown symbol macsec_pn_wrapped (err -2)
[    1.446889] atlantic: Unknown symbol cpu_number (err -2)
[    1.446890] atlantic: Unknown symbol __preempt_count (err -2)

I remove the symbol and add conditional compilation for macsec_context *ctx->prepare not exists in 6.2.0 and different function signature for macsec_pn_wrapped and aq_dash_pre_doit.

peci1 commented 1 week ago

This PR breaks build on older kernels. See https://github.com/victoryang00/AQtion/pull/1 for the fix. If @victoryang00 merges the PR, then this PR will also include the fix.

EDIT: The PR was merged.