Deleted Added
full compact
t4_sge.c (281212) t4_sge.c (281253)
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/10/sys/dev/cxgbe/t4_sge.c 281212 2015-04-07 17:21:30Z np $");
29__FBSDID("$FreeBSD: stable/10/sys/dev/cxgbe/t4_sge.c 281253 2015-04-08 01:43:29Z np $");
30
31#include "opt_inet.h"
32#include "opt_inet6.h"
33
34#include <sys/types.h>
35#include <sys/mbuf.h>
36#include <sys/socket.h>
37#include <sys/kernel.h>

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

2558
2559static int
2560free_mgmtq(struct adapter *sc)
2561{
2562
2563 return free_wrq(sc, &sc->sge.mgmtq);
2564}
2565
30
31#include "opt_inet.h"
32#include "opt_inet6.h"
33
34#include <sys/types.h>
35#include <sys/mbuf.h>
36#include <sys/socket.h>
37#include <sys/kernel.h>

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

2558
2559static int
2560free_mgmtq(struct adapter *sc)
2561{
2562
2563 return free_wrq(sc, &sc->sge.mgmtq);
2564}
2565
2566static inline int
2566int
2567tnl_cong(struct port_info *pi)
2568{
2569
2570 if (cong_drop == -1)
2571 return (-1);
2572 else if (cong_drop == 1)
2573 return (0);
2574 else

--- 2014 unchanged lines hidden ---
2567tnl_cong(struct port_info *pi)
2568{
2569
2570 if (cong_drop == -1)
2571 return (-1);
2572 else if (cong_drop == 1)
2573 return (0);
2574 else

--- 2014 unchanged lines hidden ---