net/ark: allow unique user data for each port
authorJohn Miller <john.miller@atomicrules.com>
Wed, 28 Jun 2017 10:08:22 +0000 (06:08 -0400)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 6 Jul 2017 13:00:57 +0000 (15:00 +0200)
commit428046b4037acc95e5bca0bff56ee1944b75cfae
tree19dc347a941218bc7db137c1435d5c24cf553d76
parente307e65b3fac6c11997d27302ce83cf24bbedb18
net/ark: allow unique user data for each port

This change allows a user extension to provide unique private
callback data for all ports.

Arkville is a single-function multi-port device.  User_data resides
in the singleton Arkville structure.  This structure is shared across
all ports.

With this patch, we are providing a unique user pointer for each port
rather than a common pointer across multiple ports.

Signed-off-by: John Miller <john.miller@atomicrules.com>
drivers/net/ark/ark_ethdev.c
drivers/net/ark/ark_global.h