net/qede/base: fix number of app table entries
authorRasesh Mody <rasesh.mody@cavium.com>
Tue, 19 Sep 2017 01:51:30 +0000 (18:51 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:49 +0000 (02:49 +0200)
commit211507c164bb02019a6eb0b5e794dbe36d4ed763
treee4088ea9f4e96d9007d724c05e905fd0cc90558a
parent85dfd0c55ddb8b1a6ca5be7cf9087ac7efc0856a
net/qede/base: fix number of app table entries

Configure only the available/requested number of app entries rather
than max entries (DCBX_MAX_APP_PROTOCOL) in ecore_dcbx_get_app_data().
Also, fixed a minor issue where incorrect size value is being passed for
memcpy().

Fixes: 26ae839d06e9 ("qede: add DCBX support")
Cc: stable@dpdk.org
Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_dcbx.c