File: spec.pxd

package info (click to toggle)
rdma-core 56.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,196 kB
  • sloc: ansic: 171,361; python: 13,724; sh: 2,774; perl: 1,465; makefile: 73
file content (29 lines) | stat: -rw-r--r-- 805 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# SPDX-License-Identifier: (GPL-2.0 OR Linux-OpenIB)
# Copyright (c) 2020 Nvidia All rights reserved.

#cython: language_level=3

from pyverbs.base cimport PyverbsObject
cimport pyverbs.libibverbs as v

cdef class Spec(PyverbsObject):
    cdef object spec_type
    cdef unsigned short size
    cpdef _copy_data(self, unsigned long ptr)

cdef class EthSpec(Spec):
    cdef v.ibv_flow_eth_filter val
    cdef v.ibv_flow_eth_filter mask
    cdef _mac_to_str(self, unsigned char mac[6])

cdef class Ipv4ExtSpec(Spec):
    cdef v.ibv_flow_ipv4_ext_filter val
    cdef v.ibv_flow_ipv4_ext_filter mask

cdef class TcpUdpSpec(Spec):
    cdef v.ibv_flow_tcp_udp_filter val
    cdef v.ibv_flow_tcp_udp_filter mask

cdef class Ipv6Spec(Spec):
    cdef v.ibv_flow_ipv6_filter val
    cdef v.ibv_flow_ipv6_filter mask