numam-dpdk/drivers/net/nfp
Thomas Monjalon cebe3d7b3d ethdev: remove useless parameter in callback process
The pointer to the user parameter of the callback registration is
automatically pass to the callback function.
There is no point to allow changing this user parameter by a caller.
That's why this parameter is always set to NULL by PMDs and set only
in ethdev layer before calling the callback function.

The history is that the user parameter was initially used
by the callback implementation to pass some information
between the application and the driver:
	c1ceaf3ad0 ("ethdev: add an argument to internal callback function")
Then a new parameter has been added to leave the user parameter
to its standard usage of context given at registration:
	d6af1a13d7 ("ethdev: add return values to callback process API")

The NULL parameter in the internal callback processing function
is now removed. It makes clear that the callback parameter is user
managed and opaque from a DPDK point of view.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
2018-01-16 18:47:49 +01:00
..
Makefile drivers: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
nfp_net_ctrl.h net/nfp: support PF multiport 2017-10-06 02:49:48 +02:00
nfp_net_eth.h net/nfp: add NSP support for HW link configuration 2017-10-06 02:49:48 +02:00
nfp_net_logs.h net/nfp: implement dynamic logging 2018-01-16 18:47:49 +01:00
nfp_net_pmd.h ethdev: increase port id range 2017-10-06 18:23:25 +02:00
nfp_net.c ethdev: remove useless parameter in callback process 2018-01-16 18:47:49 +01:00
nfp_nfpu.c net/nfp: fix possible bad shif operation 2017-11-10 09:31:24 +00:00
nfp_nfpu.h pci: introduce library and driver 2017-10-26 23:17:31 +02:00
nfp_nspu.c net/nfp: fix possible memory leak 2017-11-10 09:31:24 +00:00
nfp_nspu.h net/nfp: read PF port MAC addr using NSP 2017-10-06 02:49:48 +02:00
rte_pmd_nfp_version.map nfp: introduce driver initialization 2015-12-08 03:00:42 +01:00