Lines Matching refs:cls
1338 struct flow_cls_offload *cls; in __stmmac_test_l3filt() local
1362 cls = kzalloc(sizeof(*cls), GFP_KERNEL); in __stmmac_test_l3filt()
1363 if (!cls) { in __stmmac_test_l3filt()
1368 cls->common.chain_index = 0; in __stmmac_test_l3filt()
1369 cls->command = FLOW_CLS_REPLACE; in __stmmac_test_l3filt()
1370 cls->cookie = dummy_cookie; in __stmmac_test_l3filt()
1387 cls->rule = rule; in __stmmac_test_l3filt()
1402 ret = stmmac_tc_setup_cls(priv, priv, cls); in __stmmac_test_l3filt()
1410 cls->command = FLOW_CLS_DESTROY; in __stmmac_test_l3filt()
1411 stmmac_tc_setup_cls(priv, priv, cls); in __stmmac_test_l3filt()
1415 kfree(cls); in __stmmac_test_l3filt()
1464 struct flow_cls_offload *cls; in __stmmac_test_l4filt() local
1490 cls = kzalloc(sizeof(*cls), GFP_KERNEL); in __stmmac_test_l4filt()
1491 if (!cls) { in __stmmac_test_l4filt()
1496 cls->common.chain_index = 0; in __stmmac_test_l4filt()
1497 cls->command = FLOW_CLS_REPLACE; in __stmmac_test_l4filt()
1498 cls->cookie = dummy_cookie; in __stmmac_test_l4filt()
1516 cls->rule = rule; in __stmmac_test_l4filt()
1533 ret = stmmac_tc_setup_cls(priv, priv, cls); in __stmmac_test_l4filt()
1541 cls->command = FLOW_CLS_DESTROY; in __stmmac_test_l4filt()
1542 stmmac_tc_setup_cls(priv, priv, cls); in __stmmac_test_l4filt()
1546 kfree(cls); in __stmmac_test_l4filt()