blob: 3fede7487e09efcfb6bb761809209cfeb0ed6cbf [file] [log] [blame]
Matthew McClintocke1bcfe42013-11-22 15:33:09 -06001/*
2 * User space header to send message to the fast classifier
Matthew McClintocka3221942014-01-16 11:44:26 -06003 *
4 * Copyright (c) 2013 Qualcomm Atheros, Inc.
5 *
6 * All Rights Reserved.
7 * Qualcomm Atheros Confidential and Proprietary.
Matthew McClintocke1bcfe42013-11-22 15:33:09 -06008 */
9
Matthew McClintockcf157352014-01-10 16:35:40 -060010#include <linux/if_ether.h>
11
Matthew McClintock3abf38e2014-01-07 17:37:56 -060012#define FAST_CLASSIFIER_GENL_VERSION (1)
13#define FAST_CLASSIFIER_GENL_NAME "FC"
14#define FAST_CLASSIFIER_GENL_MCGRP "FC_MCGRP"
15#define FAST_CLASSIFIER_GENL_HDRSIZE (0)
Matthew McClintocke4f9a672014-01-06 17:04:04 -060016
Matthew McClintock3abf38e2014-01-07 17:37:56 -060017enum {
18 FAST_CLASSIFIER_A_UNSPEC,
19 FAST_CLASSIFIER_A_TUPLE,
20 __FAST_CLASSIFIER_A_MAX,
21};
22#define FAST_CLASSIFIER_A_MAX (__FAST_CLASSIFIER_A_MAX - 1)
23
24enum {
25 FAST_CLASSIFIER_C_UNSPEC,
26 FAST_CLASSIFIER_C_OFFLOAD,
27 FAST_CLASSIFIER_C_OFFLOADED,
28 FAST_CLASSIFIER_C_DONE,
29 __FAST_CLASSIFIER_C_MAX,
30};
31#define FAST_CLASSIFIER_C_MAX (__FAST_CLASSIFIER_C_MAX - 1)
32
33struct fast_classifier_tuple {
34 unsigned char proto;
35 unsigned long src_saddr;
36 unsigned long dst_saddr;
37 unsigned short sport;
38 unsigned short dport;
Matthew McClintockcf157352014-01-10 16:35:40 -060039 unsigned char mac[ETH_ALEN];
Matthew McClintock3abf38e2014-01-07 17:37:56 -060040};