Deleted Added
full compact
t4_sge.c (346882) t4_sge.c (346883)
1/*-
2 * Copyright (c) 2011 Chelsio Communications, Inc.
3 * All rights reserved.
4 * Written by: Navdeep Parhar <np@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 12 unchanged lines hidden (view full) ---

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2011 Chelsio Communications, Inc.
3 * All rights reserved.
4 * Written by: Navdeep Parhar <np@FreeBSD.org>
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 12 unchanged lines hidden (view full) ---

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: stable/11/sys/dev/cxgbe/t4_sge.c 346882 2019-04-29 05:26:27Z np $");
29__FBSDID("$FreeBSD: stable/11/sys/dev/cxgbe/t4_sge.c 346883 2019-04-29 05:35:52Z np $");
30
31#include "opt_inet.h"
32#include "opt_inet6.h"
33
34#include <sys/types.h>
35#include <sys/eventhandler.h>
36#include <sys/mbuf.h>
37#include <sys/socket.h>

--- 1010 unchanged lines hidden (view full) ---

1048 ADAPTER_LOCK_ASSERT_NOTOWNED(sc);
1049
1050 /* Do this before freeing the queue */
1051 if (sc->flags & ADAP_SYSCTL_CTX) {
1052 sysctl_ctx_free(&sc->ctx);
1053 sc->flags &= ~ADAP_SYSCTL_CTX;
1054 }
1055
30
31#include "opt_inet.h"
32#include "opt_inet6.h"
33
34#include <sys/types.h>
35#include <sys/eventhandler.h>
36#include <sys/mbuf.h>
37#include <sys/socket.h>

--- 1010 unchanged lines hidden (view full) ---

1048 ADAPTER_LOCK_ASSERT_NOTOWNED(sc);
1049
1050 /* Do this before freeing the queue */
1051 if (sc->flags & ADAP_SYSCTL_CTX) {
1052 sysctl_ctx_free(&sc->ctx);
1053 sc->flags &= ~ADAP_SYSCTL_CTX;
1054 }
1055
1056 for_each_port(sc, i)
1057 free_wrq(sc, &sc->sge.ctrlq[i]);
1056 if (!(sc->flags & IS_VF)) {
1057 for_each_port(sc, i)
1058 free_wrq(sc, &sc->sge.ctrlq[i]);
1059 }
1058 free_fwq(sc);
1059
1060 return (0);
1061}
1062
1063/* Maximum payload that can be delivered with a single iq descriptor */
1064static inline int
1065mtu_to_max_payload(struct adapter *sc, int mtu, const int toe)

--- 4224 unchanged lines hidden ---
1060 free_fwq(sc);
1061
1062 return (0);
1063}
1064
1065/* Maximum payload that can be delivered with a single iq descriptor */
1066static inline int
1067mtu_to_max_payload(struct adapter *sc, int mtu, const int toe)

--- 4224 unchanged lines hidden ---