Deleted Added
full compact
oce_if.c (331722) oce_if.c (332288)
1/*-
2 * Copyright (C) 2013 Emulex
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,

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

31 * Contact Information:
32 * freebsd-drivers@emulex.com
33 *
34 * Emulex
35 * 3333 Susan Street
36 * Costa Mesa, CA 92626
37 */
38
1/*-
2 * Copyright (C) 2013 Emulex
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright notice,

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

31 * Contact Information:
32 * freebsd-drivers@emulex.com
33 *
34 * Emulex
35 * 3333 Susan Street
36 * Costa Mesa, CA 92626
37 */
38
39/* $FreeBSD: stable/11/sys/dev/oce/oce_if.c 331722 2018-03-29 02:50:57Z eadler $ */
39/* $FreeBSD: stable/11/sys/dev/oce/oce_if.c 332288 2018-04-08 16:54:07Z brooks $ */
40
41#include "opt_inet6.h"
42#include "opt_inet.h"
43
44#include "oce_if.h"
45
46/* UE Status Low CSR */
47static char *ue_status_low_desc[] = {

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

1827
1828static int
1829oce_handle_passthrough(struct ifnet *ifp, caddr_t data)
1830{
1831 POCE_SOFTC sc = ifp->if_softc;
1832 struct ifreq *ifr = (struct ifreq *)data;
1833 int rc = ENXIO;
1834 char cookie[32] = {0};
40
41#include "opt_inet6.h"
42#include "opt_inet.h"
43
44#include "oce_if.h"
45
46/* UE Status Low CSR */
47static char *ue_status_low_desc[] = {

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

1827
1828static int
1829oce_handle_passthrough(struct ifnet *ifp, caddr_t data)
1830{
1831 POCE_SOFTC sc = ifp->if_softc;
1832 struct ifreq *ifr = (struct ifreq *)data;
1833 int rc = ENXIO;
1834 char cookie[32] = {0};
1835 void *priv_data = (void *)ifr->ifr_data;
1835 void *priv_data = ifr_data_get_ptr(ifr);
1836 void *ioctl_ptr;
1837 uint32_t req_size;
1838 struct mbx_hdr req;
1839 OCE_DMA_MEM dma_mem;
1840 struct mbx_common_get_cntl_attr *fw_cmd;
1841
1842 if (copyin(priv_data, cookie, strlen(IOCTL_COOKIE)))
1843 return EFAULT;

--- 512 unchanged lines hidden ---
1836 void *ioctl_ptr;
1837 uint32_t req_size;
1838 struct mbx_hdr req;
1839 OCE_DMA_MEM dma_mem;
1840 struct mbx_common_get_cntl_attr *fw_cmd;
1841
1842 if (copyin(priv_data, cookie, strlen(IOCTL_COOKIE)))
1843 return EFAULT;

--- 512 unchanged lines hidden ---