Skip to contentSkip to conversation

i40e: Add code to handle FD table full condition

DISCUSSION Dave Jones 2 participants 2 messages Apr 4, 2014 – Apr 8, 2014 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Dave Jones

author
#1 lore raw
Quoted 9 lines · Linux Kernel
Gitweb:     http://git.kernel.org/linus/;a=commit;h=55a5e60b9f583f64a6c95cfe869dd2d65ae53a95
Commit:     55a5e60b9f583f64a6c95cfe869dd2d65ae53a95
Parent:     61dade7e9201162cba683cff103cebbdf06655d4
Author:     Anjali Singhai Jain <[email protected]>
AuthorDate: Wed Feb 12 06:33:25 2014 +0000
Committer:  Jeff Kirsher <[email protected]>
CommitDate: Fri Mar 14 16:30:03 2014 -0700

i40e: Add code to handle FD table full condition

...

Review

Quoted 2 lines
(quoted diff) +2 -0
+			/* Turn off ATR first */
+			if (pf->flags | I40E_FLAG_FD_ATR_ENABLED) {

This condition is always true.
Did you mean to write something like

	if (pf->flags & ~I40E_FLAG_FD_ATR_ENABLED)

perhaps ?

Same with the

	} else if (pf->flags | I40E_FLAG_FD_SB_ENABLED) {

that pairs with it.

Dave

#2 lore raw
Quoted 4 lines · On Fri, 4 Apr 2014 10:59:30 -0400 Dave Jones <[email protected]> wrote:

Review

Quoted 2 lines
(quoted diff) +2 -0
+			/* Turn off ATR first */
+			if (pf->flags | I40E_FLAG_FD_ATR_ENABLED) {

This condition is always true.

Ouch, that is a nice catch Dave! We will submit a fix shortly. I'll cook something up now and push it to JeffK for a quick check before it gets upstream.

Thanks!
Jesse