diff options
| author | Navdeep Parhar <np@FreeBSD.org> | 2016-07-26 23:29:37 +0000 |
|---|---|---|
| committer | Navdeep Parhar <np@FreeBSD.org> | 2016-07-26 23:29:37 +0000 |
| commit | 17146cd5433eeb0e375fffcce8d57a44a6c345d7 (patch) | |
| tree | aafdccf16a247bfe1afe677609666c9cc724ceaf /sys/dev | |
| parent | ab3249b59036bf614e3ac0a30c37eab57f94e243 (diff) | |
Notes
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/cxgbe/t4_main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index 773d50ac033ba..47748074b7d64 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -7909,11 +7909,6 @@ set_filter(struct adapter *sc, struct t4_filter *t) goto done; } - if (!(sc->flags & FULL_INIT_DONE)) { - rc = EAGAIN; - goto done; - } - if (t->idx >= nfilters) { rc = EINVAL; goto done; @@ -7947,6 +7942,10 @@ set_filter(struct adapter *sc, struct t4_filter *t) goto done; } + if (!(sc->flags & FULL_INIT_DONE) && + ((rc = adapter_full_init(sc)) != 0)) + goto done; + if (sc->tids.ftid_tab == NULL) { KASSERT(sc->tids.ftids_in_use == 0, ("%s: no memory allocated but filters_in_use > 0", |
