@@ -49,13 +49,6 @@ This function should be called during pktio initialization.
**/
int pktio_classifier_init(pktio_entry_t *pktio);
-void _odp_cls_update_hash_proto(cos_t *cos,
- odp_pktin_hash_proto_t hash_proto);
-
-uint32_t packet_rss_hash(odp_packet_hdr_t *pkt_hdr,
- odp_cls_hash_proto_t hash_proto,
- const uint8_t *base);
-
#ifdef __cplusplus
}
#endif
@@ -33,6 +33,7 @@ static cos_tbl_t *cos_tbl;
static pmr_tbl_t *pmr_tbl;
static _cls_queue_grp_tbl_t *queue_grp_tbl;
+static
const rss_key default_rss = {
.u8 = {
0x6d, 0x5a, 0x56, 0xda, 0x25, 0x5b, 0x0e, 0xc2,
@@ -191,6 +192,7 @@ int odp_cls_capability(odp_cls_capability_t *capability)
return 0;
}
+static
void _odp_cls_update_hash_proto(cos_t *cos, odp_pktin_hash_proto_t hash_proto)
{
if (hash_proto.proto.ipv4 || hash_proto.proto.ipv4_tcp ||
@@ -934,6 +936,11 @@ static inline cos_t *cls_select_cos(pktio_entry_t *entry,
return cls->default_cos;
}
+static
+uint32_t packet_rss_hash(odp_packet_hdr_t *pkt_hdr,
+ odp_cls_hash_proto_t hash_proto,
+ const uint8_t *base);
+
/**
* Classify packet
*
@@ -989,6 +996,7 @@ int cls_classify_packet(pktio_entry_t *entry, const uint8_t *base,
return 0;
}
+static
uint32_t packet_rss_hash(odp_packet_hdr_t *pkt_hdr,
odp_cls_hash_proto_t hash_proto,
const uint8_t *base)