Deleted Added
full compact
device.c (302408) device.c (318798)
1/*
2 * Copyright (c) 2009-2013 Chelsio, Inc. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

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

25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 * SOFTWARE.
31 */
32#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2009-2013 Chelsio, Inc. All rights reserved.
3 *
4 * This software is available to you under a choice of one of two
5 * licenses. You may choose to be licensed under the terms of the GNU
6 * General Public License (GPL) Version 2, available from the file
7 * COPYING in the main directory of this source tree, or the
8 * OpenIB.org BSD license below:

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

25 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30 * SOFTWARE.
31 */
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: stable/11/sys/dev/cxgbe/iw_cxgbe/device.c 302339 2016-07-05 01:29:24Z np $");
33__FBSDID("$FreeBSD: stable/11/sys/dev/cxgbe/iw_cxgbe/device.c 318798 2017-05-24 18:14:57Z np $");
34
35#include "opt_inet.h"
36
37#include <sys/ktr.h>
38
39#include <linux/module.h>
40#include <linux/moduleparam.h>
41

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

325{
326 int rc = 0;
327
328#ifdef TCP_OFFLOAD
329 switch (cmd) {
330 case MOD_LOAD:
331 rc = c4iw_mod_load();
332 if (rc == 0)
34
35#include "opt_inet.h"
36
37#include <sys/ktr.h>
38
39#include <linux/module.h>
40#include <linux/moduleparam.h>
41

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

325{
326 int rc = 0;
327
328#ifdef TCP_OFFLOAD
329 switch (cmd) {
330 case MOD_LOAD:
331 rc = c4iw_mod_load();
332 if (rc == 0)
333 printf("iw_cxgbe: Chelsio T4/T5 RDMA driver loaded.\n");
333 printf("iw_cxgbe: Chelsio T4/T5/T6 RDMA driver loaded.\n");
334 break;
335
336 case MOD_UNLOAD:
337 rc = c4iw_mod_unload();
338 break;
339
340 default:
341 rc = EINVAL;

--- 20 unchanged lines hidden ---
334 break;
335
336 case MOD_UNLOAD:
337 rc = c4iw_mod_unload();
338 break;
339
340 default:
341 rc = EINVAL;

--- 20 unchanged lines hidden ---