Re: [PATCH net-next v2] net: psample: Introduce stubs to remove NIC driver dependency

2021-01-27 Thread Chris Mi
On 1/27/2021 5:47 PM, Zhu Yanjun wrote: On Wed, Jan 27, 2021 at 5:06 PM Chris Mi wrote: In order to send sampled packets to userspace, NIC driver calls psample api directly. But it creates a hard dependency on module psample. Introduce psample_ops to remove the hard dependency. It is initialize

Re: [PATCH net-next v2] net: psample: Introduce stubs to remove NIC driver dependency

2021-01-27 Thread Zhu Yanjun
On Wed, Jan 27, 2021 at 5:06 PM Chris Mi wrote: > > In order to send sampled packets to userspace, NIC driver calls > psample api directly. But it creates a hard dependency on module > psample. Introduce psample_ops to remove the hard dependency. > It is initialized when psample module is loaded a

[PATCH net-next v2] net: psample: Introduce stubs to remove NIC driver dependency

2021-01-26 Thread Chris Mi
In order to send sampled packets to userspace, NIC driver calls psample api directly. But it creates a hard dependency on module psample. Introduce psample_ops to remove the hard dependency. It is initialized when psample module is loaded and set to NULL when the module is unloaded. Reported-by: k