Commit 73618201 authored by Shannon Nelson's avatar Shannon Nelson Committed by David S. Miller
Browse files

ionic: increment num-vfs before configure



Add the new VF to our internal count before we start configuring it.

Signed-off-by: default avatarShannon Nelson <snelson@pensando.io>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e75ccac1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -165,10 +165,10 @@ static int ionic_vf_alloc(struct ionic *ionic, int num_vfs)
			goto out;
		}

		ionic->num_vfs++;
		/* ignore failures from older FW, we just won't get stats */
		(void)ionic_set_vf_config(ionic, i, IONIC_VF_ATTR_STATSADDR,
					  (u8 *)&v->stats_pa);
		ionic->num_vfs++;
	}

out: