net/i40e: fix multiple DDP packages conflict
authorKirill Rybalchenko <kirill.rybalchenko@intel.com>
Thu, 1 Feb 2018 12:43:05 +0000 (12:43 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 6 Feb 2018 18:08:13 +0000 (19:08 +0100)
commitb1ec717bfff5cede471261078f3e2dce156553f4
tree84156f0b8f8927602866dc2c36cb10f787f4bfc4
parentd5354e89e541bdc6e21a327c852ca578d9a0ea94
net/i40e: fix multiple DDP packages conflict

Should be not possible to load conflicting DDP profiles. Only DDP
profiles of the same group (not 0) can be loaded together. If DDP
profile group is 0, it is exclusive, i.e. it cannot be loaded with
any other DDP profile. If DDP profile groups are different, these
profiles cannot be loaded together.

Fixes: b319712f53c8 ("net/i40e: extended list of operations for DDP processing")
Cc: stable@dpdk.org
Signed-off-by: Kirill Rybalchenko <kirill.rybalchenko@intel.com>
Acked-by: Andrey Chilikin <andrey.chilikin@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/rte_pmd_i40e.c