ixgbe: fix X550 flow director check
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Mon, 15 Jun 2015 05:59:26 +0000 (13:59 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 15 Jun 2015 20:56:12 +0000 (22:56 +0200)
commitdc0c16105d2d2d73694b7ac01cefdf12fbb7dfda
treeff48152655a9713f5708456d17971ffbf3354555
parent669bc48bd9338195d142509b7aa6e05b5b99ed3c
ixgbe: fix X550 flow director check

On x550, flow director doesn't support other IP packets directly.
If we want to monitor IP other packets, the L4 protocol and ports must
be masked. It means, on x550, if we want to add a flow director filter
for other IP packets, a flow director mask must have been configed to
mask L4 protocol and ports.

Return err when the user try to config a flow director filter for other
IP packets without flow director mask configed before. And print err log
for it.

Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/ixgbe/ixgbe_fdir.c