net/i40e: perform basic validation on VF messages
authorHaiyue Wang <haiyue.wang@intel.com>
Thu, 10 Jan 2019 12:07:31 +0000 (20:07 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commitcc0ed2f849e7ec14e0da69f716ce6ad784a1725a
treea0f1a94753d33c4d102163166179d1cc3fbee9d4
parent360495d4831fa754028ac12d108f6cda9250f840
net/i40e: perform basic validation on VF messages

Do the VF message basic validation such as OPCODE message length check,
some special OPCODE message format check, to protect the i40e PMD from
malicious VF message attack.

Fixes: 4861cde46116 ("i40e: new poll mode driver")
Cc: stable@dpdk.org
Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/i40e/i40e_pf.c