mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
cxgbe(4): fix a test made while enabling TOE.
MFC after: 1 week
This commit is contained in:
parent
939099221b
commit
cb6c101a86
1 changed files with 6 additions and 1 deletions
|
|
@ -8215,7 +8215,12 @@ toe_capability(struct port_info *pi, int enable)
|
|||
return (ENODEV);
|
||||
|
||||
if (enable) {
|
||||
if (!(sc->flags & FULL_INIT_DONE)) {
|
||||
/*
|
||||
* We need the port's queues around so that we're able to send
|
||||
* and receive CPLs to/from the TOE even if the ifnet for this
|
||||
* port has never been UP'd administratively.
|
||||
*/
|
||||
if (!(pi->flags & PORT_INIT_DONE)) {
|
||||
rc = cxgbe_init_synchronized(pi);
|
||||
if (rc)
|
||||
return (rc);
|
||||
|
|
|
|||
Loading…
Reference in a new issue