Lines Matching +full:stream +full:- +full:match +full:- +full:mask
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2006-2016 Solarflare Communications Inc.
46 ((void)sizeof (char[(_cond) ? 1 : -1]))
52 ((size_t)&(((_type *)0)->_field))
55 #define EFX_DIV_ROUND_UP(_n, _d) (((_n) + (_d) - 1) / (_d))
59 (-(-(_type)(_value) & -(_type)(_align)))
63 ((_type)(_value) & -(_type)(_align))
67 ((((_type)(_value)) & ((_type)(_align) - 1)) == 0)
536 #define EFX_MAC_SDU_FROM_PDU(_pdu) ((_pdu) - EFX_MAC_PDU_ADJUSTMENT)
624 * Get mask of MAC statistics supported by the hardware.
626 * If mask_size is insufficient to return the mask, EINVAL error is
638 (1ULL << ((_stat) & (EFX_MAC_STATS_MASK_BITS_PER_PAGE - 1))))
654 * Thus, drivers should zero this buffer before use, so that not-understood
830 EFX_MON_STAT_PORTMAP_ALL = (-1),
831 EFX_MON_STAT_PORTMAP_UNKNOWN = (-2)
1029 __in uint32_t mask);
1065 * 2-wire device address of the base information in accordance with SFF-8472
1072 * 2-wire device address of the digital diagnostics monitoring interface
1073 * in accordance with SFF-8472 Diagnostic Monitoring Interface for Optical
1079 * Hard wired 2-wire device address for QSFP+ in accordance with SFF-8436
1212 * Memory BIST specific values. These match to the MC_CMD_BIST_POLL
1317 * Mask of supported hash algorithms.
1409 /* VPD may be per-PF or global */
1426 #define EFX_PCI_FUNCTION_IS_PF(_encp) ((_encp)->enc_vf == 0xffff)
1427 #define EFX_PCI_FUNCTION_IS_VF(_encp) ((_encp)->enc_vf != 0xffff)
1430 (EFX_PCI_FUNCTION_IS_PF(_encp) ? (_encp)->enc_pf : (_encp)->enc_vf)
1432 #define EFX_PCI_VF_PARENT(_encp) ((_encp)->enc_pf)
1474 /* PIO blocks (sub-allocated from piobuf) */
1736 * begin with a tag octet, which uniquely identifies the option. Fixed-
1738 * (0) and END (255) are fixed length. All other options are variable-length
1743 * Option data may be a sequence of sub-options in the same format. The data
1744 * content of the encapsulating option is one or more encapsulated sub-options,
1747 * To be valid, the top-level sequence of options should be terminated by an
1816 * Image header used in unsigned and signed image layouts (see SF-102785-PS).
1820 * exact match of image header version and header length when validating and
1826 * version). See bug39254 and SF-102785-PS for details.
2012 #define EFX_EVQ_FLAGS_NOTIFY_DISABLED (0x4) /* Non-interrupting */
2053 * The following flags are used only for packed stream
2056 * packed stream mode
2075 * Packed stream mode is documented in SF-112241-TC.
2079 * packets are put there in a continuous stream.
2083 * Equal stride packed stream mode is documented in SF-119419-TC.
2084 * The general idea is to utilize advantages of the packed stream,
2319 * - a combination of legacy flags
2320 * - a combination of EFX_RX_HASH() flags
2337 EFX_RX_SCALE_SHARED /* Read-only key/indirection table */
2490 #define EFX_RXQ_LIMIT(_ndescs) ((_ndescs) - 16)
2509 * full-feature firmware variant running), outer classes are requested by
2552 /* Maximum head-of-line block timeout in nanoseconds */
2655 #define EFX_TXQ_LIMIT(_ndescs) ((_ndescs) - 16)
2826 /* Set match flag on the received packet */
2828 /* Set match mark on the received packet */
2834 * Flags which specify the fields to match on. The values are the same as in the
2838 /* Match by remote IP host address */
2840 /* Match by local IP host address */
2842 /* Match by remote MAC address */
2844 /* Match by remote TCP/UDP port */
2846 /* Match by remote TCP/UDP port */
2848 /* Match by local TCP/UDP port */
2850 /* Match by Ether-type */
2852 /* Match by inner VLAN ID */
2854 /* Match by outer VLAN ID */
2856 /* Match by IP transport protocol */
2858 /* Match by VNI or VSID */
2860 /* For encapsulated packets, match by inner frame local MAC address */
2862 /* For encapsulated packets, match all multicast inner frames */
2864 /* For encapsulated packets, match all unicast inner frames */
2867 * Match by encap type, this flag does not correspond to
2868 * the MCDI match flags and any unoccupied value may be used
2871 /* Match otherwise-unmatched multicast and broadcast packets */
2873 /* Match otherwise-unmatched unicast packets */
2887 * client (e.g. SR-IOV, HyperV VMQ etc.)
2892 * FIXME: All these fields are assumed to be in little-endian byte order.
2893 * It may be better for some to be big-endian. See bug42804.
3211 __in uint16_t port /* host/cpu-endian */,
3217 __in uint16_t port /* host/cpu-endian */,
3248 * See SF-119419-TC DPDK Firmware Driver Interface and
3249 * SF-109306-TC EF10 for Driver Writers for details.