Deleted Added
full compact
t4_ioctl.h (221474) t4_ioctl.h (222509)
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:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 *
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:

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

19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
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 * $FreeBSD: head/sys/dev/cxgbe/t4_ioctl.h 221474 2011-05-05 02:04:56Z np $
27 * $FreeBSD: head/sys/dev/cxgbe/t4_ioctl.h 222509 2011-05-30 21:07:26Z np $
28 *
29 */
30
31#ifndef __T4_IOCTL_H__
32#define __T4_IOCTL_H__
33
34#include <sys/types.h>
35#include <net/ethernet.h>

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

173 * Filter rule value/mask pairs.
174 */
175 struct t4_filter_tuple val;
176 struct t4_filter_tuple mask;
177};
178
179struct t4_filter {
180 uint32_t idx;
28 *
29 */
30
31#ifndef __T4_IOCTL_H__
32#define __T4_IOCTL_H__
33
34#include <sys/types.h>
35#include <net/ethernet.h>

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

173 * Filter rule value/mask pairs.
174 */
175 struct t4_filter_tuple val;
176 struct t4_filter_tuple mask;
177};
178
179struct t4_filter {
180 uint32_t idx;
181 uint16_t l2tidx;
182 uint16_t smtidx;
181 uint64_t hits;
182 struct t4_filter_specification fs;
183};
184
185#define CHELSIO_T4_GETREG _IOWR('f', T4_GETREG, struct t4_reg)
186#define CHELSIO_T4_SETREG _IOW('f', T4_SETREG, struct t4_reg)
187#define CHELSIO_T4_REGDUMP _IOWR('f', T4_REGDUMP, struct t4_regdump)
188#define CHELSIO_T4_GET_FILTER_MODE _IOWR('f', T4_GET_FILTER_MODE, uint32_t)
189#define CHELSIO_T4_SET_FILTER_MODE _IOW('f', T4_SET_FILTER_MODE, uint32_t)
190#define CHELSIO_T4_GET_FILTER _IOWR('f', T4_GET_FILTER, struct t4_filter)
191#define CHELSIO_T4_SET_FILTER _IOW('f', T4_SET_FILTER, struct t4_filter)
192#define CHELSIO_T4_DEL_FILTER _IOW('f', T4_DEL_FILTER, struct t4_filter)
193#endif
183 uint64_t hits;
184 struct t4_filter_specification fs;
185};
186
187#define CHELSIO_T4_GETREG _IOWR('f', T4_GETREG, struct t4_reg)
188#define CHELSIO_T4_SETREG _IOW('f', T4_SETREG, struct t4_reg)
189#define CHELSIO_T4_REGDUMP _IOWR('f', T4_REGDUMP, struct t4_regdump)
190#define CHELSIO_T4_GET_FILTER_MODE _IOWR('f', T4_GET_FILTER_MODE, uint32_t)
191#define CHELSIO_T4_SET_FILTER_MODE _IOW('f', T4_SET_FILTER_MODE, uint32_t)
192#define CHELSIO_T4_GET_FILTER _IOWR('f', T4_GET_FILTER, struct t4_filter)
193#define CHELSIO_T4_SET_FILTER _IOW('f', T4_SET_FILTER, struct t4_filter)
194#define CHELSIO_T4_DEL_FILTER _IOW('f', T4_DEL_FILTER, struct t4_filter)
195#endif