#ifndef __CXGB4_TC_U32_PARSE_H
#define __CXGB4_TC_U32_PARSE_H
struct cxgb4_match_field { … };
static inline int cxgb4_fill_ipv4_tos(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static inline int cxgb4_fill_ipv4_frag(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static inline int cxgb4_fill_ipv4_proto(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static inline int cxgb4_fill_ipv4_src_ip(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static inline int cxgb4_fill_ipv4_dst_ip(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static const struct cxgb4_match_field cxgb4_ipv4_fields[] = …;
static inline int cxgb4_fill_ipv6_tos(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static inline int cxgb4_fill_ipv6_proto(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static inline int cxgb4_fill_ipv6_src_ip0(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static inline int cxgb4_fill_ipv6_src_ip1(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static inline int cxgb4_fill_ipv6_src_ip2(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static inline int cxgb4_fill_ipv6_src_ip3(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static inline int cxgb4_fill_ipv6_dst_ip0(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static inline int cxgb4_fill_ipv6_dst_ip1(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static inline int cxgb4_fill_ipv6_dst_ip2(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static inline int cxgb4_fill_ipv6_dst_ip3(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{ … }
static const struct cxgb4_match_field cxgb4_ipv6_fields[] = …;
static inline int cxgb4_fill_l4_ports(struct ch_filter_specification *f,
__be32 val, __be32 mask)
{
f->val.fport = ntohl(val) >> 16;
f->mask.fport = ntohl(mask) >> 16;
f->val.lport = ntohl(val) & 0x0000FFFF;
f->mask.lport = ntohl(mask) & 0x0000FFFF;
return 0;
};
static const struct cxgb4_match_field cxgb4_tcp_fields[] = …;
static const struct cxgb4_match_field cxgb4_udp_fields[] = …;
struct cxgb4_next_header { … };
static const struct cxgb4_next_header cxgb4_ipv4_jumps[] = …;
static const struct cxgb4_next_header cxgb4_ipv6_jumps[] = …;
struct cxgb4_link { … };
struct cxgb4_tc_u32_table { … };
#endif