DPDK logo

Elixir Cross Referencer

   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
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
/* SPDX-License-Identifier: BSD-3-Clause
 * Copyright (c) 2016 - 2018 Cavium Inc.
 * All rights reserved.
 * www.cavium.com
 */

#ifndef __ECORE_HSI_ETH__
#define __ECORE_HSI_ETH__
/************************************************************************/
/* Add include to common eth target for both eCore and protocol driver */
/************************************************************************/
#include "eth_common.h"

/*
 * The eth storm context for the Tstorm
 */
struct tstorm_eth_conn_st_ctx {
	__le32 reserved[4];
};

/*
 * The eth storm context for the Pstorm
 */
struct pstorm_eth_conn_st_ctx {
	__le32 reserved[8];
};

/*
 * The eth storm context for the Xstorm
 */
struct xstorm_eth_conn_st_ctx {
	__le32 reserved[60];
};

struct e4_xstorm_eth_conn_ag_ctx {
	u8 reserved0 /* cdu_validation */;
	u8 eth_state /* state */;
	u8 flags0;
/* exist_in_qm0 */
#define E4_XSTORM_ETH_CONN_AG_CTX_EXIST_IN_QM0_MASK            0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_EXIST_IN_QM0_SHIFT           0
/* exist_in_qm1 */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED1_MASK               0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED1_SHIFT              1
/* exist_in_qm2 */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED2_MASK               0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED2_SHIFT              2
/* exist_in_qm3 */
#define E4_XSTORM_ETH_CONN_AG_CTX_EXIST_IN_QM3_MASK            0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_EXIST_IN_QM3_SHIFT           3
/* bit4 */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED3_MASK               0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED3_SHIFT              4
/* cf_array_active */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED4_MASK               0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED4_SHIFT              5
/* bit6 */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED5_MASK               0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED5_SHIFT              6
/* bit7 */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED6_MASK               0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED6_SHIFT              7
	u8 flags1;
/* bit8 */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED7_MASK               0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED7_SHIFT              0
/* bit9 */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED8_MASK               0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED8_SHIFT              1
/* bit10 */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED9_MASK               0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED9_SHIFT              2
/* bit11 */
#define E4_XSTORM_ETH_CONN_AG_CTX_BIT11_MASK                   0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_BIT11_SHIFT                  3
/* bit12 */
#define E4_XSTORM_ETH_CONN_AG_CTX_BIT12_MASK                   0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_BIT12_SHIFT                  4
/* bit13 */
#define E4_XSTORM_ETH_CONN_AG_CTX_BIT13_MASK                   0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_BIT13_SHIFT                  5
/* bit14 */
#define E4_XSTORM_ETH_CONN_AG_CTX_TX_RULE_ACTIVE_MASK          0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_TX_RULE_ACTIVE_SHIFT         6
/* bit15 */
#define E4_XSTORM_ETH_CONN_AG_CTX_DQ_CF_ACTIVE_MASK            0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_DQ_CF_ACTIVE_SHIFT           7
	u8 flags2;
/* timer0cf */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF0_MASK                     0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF0_SHIFT                    0
/* timer1cf */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF1_MASK                     0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF1_SHIFT                    2
/* timer2cf */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF2_MASK                     0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF2_SHIFT                    4
/* timer_stop_all */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF3_MASK                     0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF3_SHIFT                    6
	u8 flags3;
/* cf4 */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF4_MASK                     0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF4_SHIFT                    0
/* cf5 */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF5_MASK                     0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF5_SHIFT                    2
/* cf6 */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF6_MASK                     0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF6_SHIFT                    4
/* cf7 */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF7_MASK                     0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF7_SHIFT                    6
	u8 flags4;
/* cf8 */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF8_MASK                     0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF8_SHIFT                    0
/* cf9 */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF9_MASK                     0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF9_SHIFT                    2
/* cf10 */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF10_MASK                    0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF10_SHIFT                   4
/* cf11 */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF11_MASK                    0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF11_SHIFT                   6
	u8 flags5;
/* cf12 */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF12_MASK                    0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF12_SHIFT                   0
/* cf13 */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF13_MASK                    0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF13_SHIFT                   2
/* cf14 */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF14_MASK                    0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF14_SHIFT                   4
/* cf15 */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF15_MASK                    0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_CF15_SHIFT                   6
	u8 flags6;
/* cf16 */
#define E4_XSTORM_ETH_CONN_AG_CTX_GO_TO_BD_CONS_CF_MASK        0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_GO_TO_BD_CONS_CF_SHIFT       0
/* cf_array_cf */
#define E4_XSTORM_ETH_CONN_AG_CTX_MULTI_UNICAST_CF_MASK        0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_MULTI_UNICAST_CF_SHIFT       2
/* cf18 */
#define E4_XSTORM_ETH_CONN_AG_CTX_DQ_CF_MASK                   0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_DQ_CF_SHIFT                  4
/* cf19 */
#define E4_XSTORM_ETH_CONN_AG_CTX_TERMINATE_CF_MASK            0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_TERMINATE_CF_SHIFT           6
	u8 flags7;
/* cf20 */
#define E4_XSTORM_ETH_CONN_AG_CTX_FLUSH_Q0_MASK                0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_FLUSH_Q0_SHIFT               0
/* cf21 */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED10_MASK              0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED10_SHIFT             2
/* cf22 */
#define E4_XSTORM_ETH_CONN_AG_CTX_SLOW_PATH_MASK               0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_SLOW_PATH_SHIFT              4
/* cf0en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF0EN_MASK                   0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF0EN_SHIFT                  6
/* cf1en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF1EN_MASK                   0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF1EN_SHIFT                  7
	u8 flags8;
/* cf2en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF2EN_MASK                   0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF2EN_SHIFT                  0
/* cf3en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF3EN_MASK                   0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF3EN_SHIFT                  1
/* cf4en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF4EN_MASK                   0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF4EN_SHIFT                  2
/* cf5en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF5EN_MASK                   0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF5EN_SHIFT                  3
/* cf6en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF6EN_MASK                   0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF6EN_SHIFT                  4
/* cf7en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF7EN_MASK                   0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF7EN_SHIFT                  5
/* cf8en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF8EN_MASK                   0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF8EN_SHIFT                  6
/* cf9en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF9EN_MASK                   0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF9EN_SHIFT                  7
	u8 flags9;
/* cf10en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF10EN_MASK                  0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF10EN_SHIFT                 0
/* cf11en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF11EN_MASK                  0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF11EN_SHIFT                 1
/* cf12en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF12EN_MASK                  0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF12EN_SHIFT                 2
/* cf13en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF13EN_MASK                  0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF13EN_SHIFT                 3
/* cf14en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF14EN_MASK                  0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF14EN_SHIFT                 4
/* cf15en */
#define E4_XSTORM_ETH_CONN_AG_CTX_CF15EN_MASK                  0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_CF15EN_SHIFT                 5
/* cf16en */
#define E4_XSTORM_ETH_CONN_AG_CTX_GO_TO_BD_CONS_CF_EN_MASK     0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_GO_TO_BD_CONS_CF_EN_SHIFT    6
/* cf_array_cf_en */
#define E4_XSTORM_ETH_CONN_AG_CTX_MULTI_UNICAST_CF_EN_MASK     0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_MULTI_UNICAST_CF_EN_SHIFT    7
	u8 flags10;
/* cf18en */
#define E4_XSTORM_ETH_CONN_AG_CTX_DQ_CF_EN_MASK                0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_DQ_CF_EN_SHIFT               0
/* cf19en */
#define E4_XSTORM_ETH_CONN_AG_CTX_TERMINATE_CF_EN_MASK         0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_TERMINATE_CF_EN_SHIFT        1
/* cf20en */
#define E4_XSTORM_ETH_CONN_AG_CTX_FLUSH_Q0_EN_MASK             0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_FLUSH_Q0_EN_SHIFT            2
/* cf21en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED11_MASK              0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED11_SHIFT             3
/* cf22en */
#define E4_XSTORM_ETH_CONN_AG_CTX_SLOW_PATH_EN_MASK            0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_SLOW_PATH_EN_SHIFT           4
/* cf23en */
#define E4_XSTORM_ETH_CONN_AG_CTX_TPH_ENABLE_EN_RESERVED_MASK  0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_TPH_ENABLE_EN_RESERVED_SHIFT 5
/* rule0en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED12_MASK              0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED12_SHIFT             6
/* rule1en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED13_MASK              0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED13_SHIFT             7
	u8 flags11;
/* rule2en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED14_MASK              0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED14_SHIFT             0
/* rule3en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED15_MASK              0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RESERVED15_SHIFT             1
/* rule4en */
#define E4_XSTORM_ETH_CONN_AG_CTX_TX_DEC_RULE_EN_MASK          0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_TX_DEC_RULE_EN_SHIFT         2
/* rule5en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE5EN_MASK                 0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE5EN_SHIFT                3
/* rule6en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE6EN_MASK                 0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE6EN_SHIFT                4
/* rule7en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE7EN_MASK                 0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE7EN_SHIFT                5
/* rule8en */
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED1_MASK            0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED1_SHIFT           6
/* rule9en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE9EN_MASK                 0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE9EN_SHIFT                7
	u8 flags12;
/* rule10en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE10EN_MASK                0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE10EN_SHIFT               0
/* rule11en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE11EN_MASK                0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE11EN_SHIFT               1
/* rule12en */
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED2_MASK            0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED2_SHIFT           2
/* rule13en */
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED3_MASK            0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED3_SHIFT           3
/* rule14en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE14EN_MASK                0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE14EN_SHIFT               4
/* rule15en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE15EN_MASK                0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE15EN_SHIFT               5
/* rule16en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE16EN_MASK                0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE16EN_SHIFT               6
/* rule17en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE17EN_MASK                0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE17EN_SHIFT               7
	u8 flags13;
/* rule18en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE18EN_MASK                0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE18EN_SHIFT               0
/* rule19en */
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE19EN_MASK                0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_RULE19EN_SHIFT               1
/* rule20en */
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED4_MASK            0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED4_SHIFT           2
/* rule21en */
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED5_MASK            0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED5_SHIFT           3
/* rule22en */
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED6_MASK            0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED6_SHIFT           4
/* rule23en */
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED7_MASK            0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED7_SHIFT           5
/* rule24en */
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED8_MASK            0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED8_SHIFT           6
/* rule25en */
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED9_MASK            0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_A0_RESERVED9_SHIFT           7
	u8 flags14;
/* bit16 */
#define E4_XSTORM_ETH_CONN_AG_CTX_EDPM_USE_EXT_HDR_MASK        0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_EDPM_USE_EXT_HDR_SHIFT       0
/* bit17 */
#define E4_XSTORM_ETH_CONN_AG_CTX_EDPM_SEND_RAW_L3L4_MASK      0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_EDPM_SEND_RAW_L3L4_SHIFT     1
/* bit18 */
#define E4_XSTORM_ETH_CONN_AG_CTX_EDPM_INBAND_PROP_HDR_MASK    0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_EDPM_INBAND_PROP_HDR_SHIFT   2
/* bit19 */
#define E4_XSTORM_ETH_CONN_AG_CTX_EDPM_SEND_EXT_TUNNEL_MASK    0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_EDPM_SEND_EXT_TUNNEL_SHIFT   3
/* bit20 */
#define E4_XSTORM_ETH_CONN_AG_CTX_L2_EDPM_ENABLE_MASK          0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_L2_EDPM_ENABLE_SHIFT         4
/* bit21 */
#define E4_XSTORM_ETH_CONN_AG_CTX_ROCE_EDPM_ENABLE_MASK        0x1
#define E4_XSTORM_ETH_CONN_AG_CTX_ROCE_EDPM_ENABLE_SHIFT       5
/* cf23 */
#define E4_XSTORM_ETH_CONN_AG_CTX_TPH_ENABLE_MASK              0x3
#define E4_XSTORM_ETH_CONN_AG_CTX_TPH_ENABLE_SHIFT             6
	u8 edpm_event_id /* byte2 */;
	__le16 physical_q0 /* physical_q0 */;
	__le16 e5_reserved1 /* physical_q1 */;
	__le16 edpm_num_bds /* physical_q2 */;
	__le16 tx_bd_cons /* word3 */;
	__le16 tx_bd_prod /* word4 */;
	__le16 updated_qm_pq_id /* word5 */;
	__le16 conn_dpi /* conn_dpi */;
	u8 byte3 /* byte3 */;
	u8 byte4 /* byte4 */;
	u8 byte5 /* byte5 */;
	u8 byte6 /* byte6 */;
	__le32 reg0 /* reg0 */;
	__le32 reg1 /* reg1 */;
	__le32 reg2 /* reg2 */;
	__le32 reg3 /* reg3 */;
	__le32 reg4 /* reg4 */;
	__le32 reg5 /* cf_array0 */;
	__le32 reg6 /* cf_array1 */;
	__le16 word7 /* word7 */;
	__le16 word8 /* word8 */;
	__le16 word9 /* word9 */;
	__le16 word10 /* word10 */;
	__le32 reg7 /* reg7 */;
	__le32 reg8 /* reg8 */;
	__le32 reg9 /* reg9 */;
	u8 byte7 /* byte7 */;
	u8 byte8 /* byte8 */;
	u8 byte9 /* byte9 */;
	u8 byte10 /* byte10 */;
	u8 byte11 /* byte11 */;
	u8 byte12 /* byte12 */;
	u8 byte13 /* byte13 */;
	u8 byte14 /* byte14 */;
	u8 byte15 /* byte15 */;
	u8 e5_reserved /* e5_reserved */;
	__le16 word11 /* word11 */;
	__le32 reg10 /* reg10 */;
	__le32 reg11 /* reg11 */;
	__le32 reg12 /* reg12 */;
	__le32 reg13 /* reg13 */;
	__le32 reg14 /* reg14 */;
	__le32 reg15 /* reg15 */;
	__le32 reg16 /* reg16 */;
	__le32 reg17 /* reg17 */;
	__le32 reg18 /* reg18 */;
	__le32 reg19 /* reg19 */;
	__le16 word12 /* word12 */;
	__le16 word13 /* word13 */;
	__le16 word14 /* word14 */;
	__le16 word15 /* word15 */;
};

/*
 * The eth storm context for the Ystorm
 */
struct ystorm_eth_conn_st_ctx {
	__le32 reserved[8];
};

struct e4_ystorm_eth_conn_ag_ctx {
	u8 byte0 /* cdu_validation */;
	u8 state /* state */;
	u8 flags0;
/* exist_in_qm0 */
#define E4_YSTORM_ETH_CONN_AG_CTX_BIT0_MASK                  0x1
#define E4_YSTORM_ETH_CONN_AG_CTX_BIT0_SHIFT                 0
/* exist_in_qm1 */
#define E4_YSTORM_ETH_CONN_AG_CTX_BIT1_MASK                  0x1
#define E4_YSTORM_ETH_CONN_AG_CTX_BIT1_SHIFT                 1
#define E4_YSTORM_ETH_CONN_AG_CTX_TX_BD_CONS_UPD_CF_MASK     0x3 /* cf0 */
#define E4_YSTORM_ETH_CONN_AG_CTX_TX_BD_CONS_UPD_CF_SHIFT    2
#define E4_YSTORM_ETH_CONN_AG_CTX_PMD_TERMINATE_CF_MASK      0x3 /* cf1 */
#define E4_YSTORM_ETH_CONN_AG_CTX_PMD_TERMINATE_CF_SHIFT     4
#define E4_YSTORM_ETH_CONN_AG_CTX_CF2_MASK                   0x3 /* cf2 */
#define E4_YSTORM_ETH_CONN_AG_CTX_CF2_SHIFT                  6
	u8 flags1;
/* cf0en */
#define E4_YSTORM_ETH_CONN_AG_CTX_TX_BD_CONS_UPD_CF_EN_MASK  0x1
#define E4_YSTORM_ETH_CONN_AG_CTX_TX_BD_CONS_UPD_CF_EN_SHIFT 0
/* cf1en */
#define E4_YSTORM_ETH_CONN_AG_CTX_PMD_TERMINATE_CF_EN_MASK   0x1
#define E4_YSTORM_ETH_CONN_AG_CTX_PMD_TERMINATE_CF_EN_SHIFT  1
/* cf2en */
#define E4_YSTORM_ETH_CONN_AG_CTX_CF2EN_MASK                 0x1
#define E4_YSTORM_ETH_CONN_AG_CTX_CF2EN_SHIFT                2
/* rule0en */
#define E4_YSTORM_ETH_CONN_AG_CTX_RULE0EN_MASK               0x1
#define E4_YSTORM_ETH_CONN_AG_CTX_RULE0EN_SHIFT              3
/* rule1en */
#define E4_YSTORM_ETH_CONN_AG_CTX_RULE1EN_MASK               0x1
#define E4_YSTORM_ETH_CONN_AG_CTX_RULE1EN_SHIFT              4
/* rule2en */
#define E4_YSTORM_ETH_CONN_AG_CTX_RULE2EN_MASK               0x1
#define E4_YSTORM_ETH_CONN_AG_CTX_RULE2EN_SHIFT              5
/* rule3en */
#define E4_YSTORM_ETH_CONN_AG_CTX_RULE3EN_MASK               0x1
#define E4_YSTORM_ETH_CONN_AG_CTX_RULE3EN_SHIFT              6
/* rule4en */
#define E4_YSTORM_ETH_CONN_AG_CTX_RULE4EN_MASK               0x1
#define E4_YSTORM_ETH_CONN_AG_CTX_RULE4EN_SHIFT              7
	u8 tx_q0_int_coallecing_timeset /* byte2 */;
	u8 byte3 /* byte3 */;
	__le16 word0 /* word0 */;
	__le32 terminate_spqe /* reg0 */;
	__le32 reg1 /* reg1 */;
	__le16 tx_bd_cons_upd /* word1 */;
	__le16 word2 /* word2 */;
	__le16 word3 /* word3 */;
	__le16 word4 /* word4 */;
	__le32 reg2 /* reg2 */;
	__le32 reg3 /* reg3 */;
};

struct e4_tstorm_eth_conn_ag_ctx {
	u8 byte0 /* cdu_validation */;
	u8 byte1 /* state */;
	u8 flags0;
#define E4_TSTORM_ETH_CONN_AG_CTX_BIT0_MASK      0x1 /* exist_in_qm0 */
#define E4_TSTORM_ETH_CONN_AG_CTX_BIT0_SHIFT     0
#define E4_TSTORM_ETH_CONN_AG_CTX_BIT1_MASK      0x1 /* exist_in_qm1 */
#define E4_TSTORM_ETH_CONN_AG_CTX_BIT1_SHIFT     1
#define E4_TSTORM_ETH_CONN_AG_CTX_BIT2_MASK      0x1 /* bit2 */
#define E4_TSTORM_ETH_CONN_AG_CTX_BIT2_SHIFT     2
#define E4_TSTORM_ETH_CONN_AG_CTX_BIT3_MASK      0x1 /* bit3 */
#define E4_TSTORM_ETH_CONN_AG_CTX_BIT3_SHIFT     3
#define E4_TSTORM_ETH_CONN_AG_CTX_BIT4_MASK      0x1 /* bit4 */
#define E4_TSTORM_ETH_CONN_AG_CTX_BIT4_SHIFT     4
#define E4_TSTORM_ETH_CONN_AG_CTX_BIT5_MASK      0x1 /* bit5 */
#define E4_TSTORM_ETH_CONN_AG_CTX_BIT5_SHIFT     5
#define E4_TSTORM_ETH_CONN_AG_CTX_CF0_MASK       0x3 /* timer0cf */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF0_SHIFT      6
	u8 flags1;
#define E4_TSTORM_ETH_CONN_AG_CTX_CF1_MASK       0x3 /* timer1cf */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF1_SHIFT      0
#define E4_TSTORM_ETH_CONN_AG_CTX_CF2_MASK       0x3 /* timer2cf */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF2_SHIFT      2
#define E4_TSTORM_ETH_CONN_AG_CTX_CF3_MASK       0x3 /* timer_stop_all */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF3_SHIFT      4
#define E4_TSTORM_ETH_CONN_AG_CTX_CF4_MASK       0x3 /* cf4 */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF4_SHIFT      6
	u8 flags2;
#define E4_TSTORM_ETH_CONN_AG_CTX_CF5_MASK       0x3 /* cf5 */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF5_SHIFT      0
#define E4_TSTORM_ETH_CONN_AG_CTX_CF6_MASK       0x3 /* cf6 */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF6_SHIFT      2
#define E4_TSTORM_ETH_CONN_AG_CTX_CF7_MASK       0x3 /* cf7 */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF7_SHIFT      4
#define E4_TSTORM_ETH_CONN_AG_CTX_CF8_MASK       0x3 /* cf8 */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF8_SHIFT      6
	u8 flags3;
#define E4_TSTORM_ETH_CONN_AG_CTX_CF9_MASK       0x3 /* cf9 */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF9_SHIFT      0
#define E4_TSTORM_ETH_CONN_AG_CTX_CF10_MASK      0x3 /* cf10 */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF10_SHIFT     2
#define E4_TSTORM_ETH_CONN_AG_CTX_CF0EN_MASK     0x1 /* cf0en */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF0EN_SHIFT    4
#define E4_TSTORM_ETH_CONN_AG_CTX_CF1EN_MASK     0x1 /* cf1en */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF1EN_SHIFT    5
#define E4_TSTORM_ETH_CONN_AG_CTX_CF2EN_MASK     0x1 /* cf2en */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF2EN_SHIFT    6
#define E4_TSTORM_ETH_CONN_AG_CTX_CF3EN_MASK     0x1 /* cf3en */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF3EN_SHIFT    7
	u8 flags4;
#define E4_TSTORM_ETH_CONN_AG_CTX_CF4EN_MASK     0x1 /* cf4en */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF4EN_SHIFT    0
#define E4_TSTORM_ETH_CONN_AG_CTX_CF5EN_MASK     0x1 /* cf5en */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF5EN_SHIFT    1
#define E4_TSTORM_ETH_CONN_AG_CTX_CF6EN_MASK     0x1 /* cf6en */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF6EN_SHIFT    2
#define E4_TSTORM_ETH_CONN_AG_CTX_CF7EN_MASK     0x1 /* cf7en */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF7EN_SHIFT    3
#define E4_TSTORM_ETH_CONN_AG_CTX_CF8EN_MASK     0x1 /* cf8en */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF8EN_SHIFT    4
#define E4_TSTORM_ETH_CONN_AG_CTX_CF9EN_MASK     0x1 /* cf9en */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF9EN_SHIFT    5
#define E4_TSTORM_ETH_CONN_AG_CTX_CF10EN_MASK    0x1 /* cf10en */
#define E4_TSTORM_ETH_CONN_AG_CTX_CF10EN_SHIFT   6
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE0EN_MASK   0x1 /* rule0en */
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE0EN_SHIFT  7
	u8 flags5;
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE1EN_MASK   0x1 /* rule1en */
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE1EN_SHIFT  0
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE2EN_MASK   0x1 /* rule2en */
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE2EN_SHIFT  1
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE3EN_MASK   0x1 /* rule3en */
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE3EN_SHIFT  2
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE4EN_MASK   0x1 /* rule4en */
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE4EN_SHIFT  3
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE5EN_MASK   0x1 /* rule5en */
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE5EN_SHIFT  4
#define E4_TSTORM_ETH_CONN_AG_CTX_RX_BD_EN_MASK  0x1 /* rule6en */
#define E4_TSTORM_ETH_CONN_AG_CTX_RX_BD_EN_SHIFT 5
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE7EN_MASK   0x1 /* rule7en */
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE7EN_SHIFT  6
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE8EN_MASK   0x1 /* rule8en */
#define E4_TSTORM_ETH_CONN_AG_CTX_RULE8EN_SHIFT  7
	__le32 reg0 /* reg0 */;
	__le32 reg1 /* reg1 */;
	__le32 reg2 /* reg2 */;
	__le32 reg3 /* reg3 */;
	__le32 reg4 /* reg4 */;
	__le32 reg5 /* reg5 */;
	__le32 reg6 /* reg6 */;
	__le32 reg7 /* reg7 */;
	__le32 reg8 /* reg8 */;
	u8 byte2 /* byte2 */;
	u8 byte3 /* byte3 */;
	__le16 rx_bd_cons /* word0 */;
	u8 byte4 /* byte4 */;
	u8 byte5 /* byte5 */;
	__le16 rx_bd_prod /* word1 */;
	__le16 word2 /* conn_dpi */;
	__le16 word3 /* word3 */;
	__le32 reg9 /* reg9 */;
	__le32 reg10 /* reg10 */;
};

struct e4_ustorm_eth_conn_ag_ctx {
	u8 byte0 /* cdu_validation */;
	u8 byte1 /* state */;
	u8 flags0;
/* exist_in_qm0 */
#define E4_USTORM_ETH_CONN_AG_CTX_BIT0_MASK                    0x1
#define E4_USTORM_ETH_CONN_AG_CTX_BIT0_SHIFT                   0
/* exist_in_qm1 */
#define E4_USTORM_ETH_CONN_AG_CTX_BIT1_MASK                    0x1
#define E4_USTORM_ETH_CONN_AG_CTX_BIT1_SHIFT                   1
/* timer0cf */
#define E4_USTORM_ETH_CONN_AG_CTX_TX_PMD_TERMINATE_CF_MASK     0x3
#define E4_USTORM_ETH_CONN_AG_CTX_TX_PMD_TERMINATE_CF_SHIFT    2
/* timer1cf */
#define E4_USTORM_ETH_CONN_AG_CTX_RX_PMD_TERMINATE_CF_MASK     0x3
#define E4_USTORM_ETH_CONN_AG_CTX_RX_PMD_TERMINATE_CF_SHIFT    4
/* timer2cf */
#define E4_USTORM_ETH_CONN_AG_CTX_CF2_MASK                     0x3
#define E4_USTORM_ETH_CONN_AG_CTX_CF2_SHIFT                    6
	u8 flags1;
/* timer_stop_all */
#define E4_USTORM_ETH_CONN_AG_CTX_CF3_MASK                     0x3
#define E4_USTORM_ETH_CONN_AG_CTX_CF3_SHIFT                    0
/* cf4 */
#define E4_USTORM_ETH_CONN_AG_CTX_TX_ARM_CF_MASK               0x3
#define E4_USTORM_ETH_CONN_AG_CTX_TX_ARM_CF_SHIFT              2
/* cf5 */
#define E4_USTORM_ETH_CONN_AG_CTX_RX_ARM_CF_MASK               0x3
#define E4_USTORM_ETH_CONN_AG_CTX_RX_ARM_CF_SHIFT              4
/* cf6 */
#define E4_USTORM_ETH_CONN_AG_CTX_TX_BD_CONS_UPD_CF_MASK       0x3
#define E4_USTORM_ETH_CONN_AG_CTX_TX_BD_CONS_UPD_CF_SHIFT      6
	u8 flags2;
/* cf0en */
#define E4_USTORM_ETH_CONN_AG_CTX_TX_PMD_TERMINATE_CF_EN_MASK  0x1
#define E4_USTORM_ETH_CONN_AG_CTX_TX_PMD_TERMINATE_CF_EN_SHIFT 0
/* cf1en */
#define E4_USTORM_ETH_CONN_AG_CTX_RX_PMD_TERMINATE_CF_EN_MASK  0x1
#define E4_USTORM_ETH_CONN_AG_CTX_RX_PMD_TERMINATE_CF_EN_SHIFT 1
/* cf2en */
#define E4_USTORM_ETH_CONN_AG_CTX_CF2EN_MASK                   0x1
#define E4_USTORM_ETH_CONN_AG_CTX_CF2EN_SHIFT                  2
/* cf3en */
#define E4_USTORM_ETH_CONN_AG_CTX_CF3EN_MASK                   0x1
#define E4_USTORM_ETH_CONN_AG_CTX_CF3EN_SHIFT                  3
/* cf4en */
#define E4_USTORM_ETH_CONN_AG_CTX_TX_ARM_CF_EN_MASK            0x1
#define E4_USTORM_ETH_CONN_AG_CTX_TX_ARM_CF_EN_SHIFT           4
/* cf5en */
#define E4_USTORM_ETH_CONN_AG_CTX_RX_ARM_CF_EN_MASK            0x1
#define E4_USTORM_ETH_CONN_AG_CTX_RX_ARM_CF_EN_SHIFT           5
/* cf6en */
#define E4_USTORM_ETH_CONN_AG_CTX_TX_BD_CONS_UPD_CF_EN_MASK    0x1
#define E4_USTORM_ETH_CONN_AG_CTX_TX_BD_CONS_UPD_CF_EN_SHIFT   6
/* rule0en */
#define E4_USTORM_ETH_CONN_AG_CTX_RULE0EN_MASK                 0x1
#define E4_USTORM_ETH_CONN_AG_CTX_RULE0EN_SHIFT                7
	u8 flags3;
/* rule1en */
#define E4_USTORM_ETH_CONN_AG_CTX_RULE1EN_MASK                 0x1
#define E4_USTORM_ETH_CONN_AG_CTX_RULE1EN_SHIFT                0
/* rule2en */
#define E4_USTORM_ETH_CONN_AG_CTX_RULE2EN_MASK                 0x1
#define E4_USTORM_ETH_CONN_AG_CTX_RULE2EN_SHIFT                1
/* rule3en */
#define E4_USTORM_ETH_CONN_AG_CTX_RULE3EN_MASK                 0x1
#define E4_USTORM_ETH_CONN_AG_CTX_RULE3EN_SHIFT                2
/* rule4en */
#define E4_USTORM_ETH_CONN_AG_CTX_RULE4EN_MASK                 0x1
#define E4_USTORM_ETH_CONN_AG_CTX_RULE4EN_SHIFT                3
/* rule5en */
#define E4_USTORM_ETH_CONN_AG_CTX_RULE5EN_MASK                 0x1
#define E4_USTORM_ETH_CONN_AG_CTX_RULE5EN_SHIFT                4
/* rule6en */
#define E4_USTORM_ETH_CONN_AG_CTX_RULE6EN_MASK                 0x1
#define E4_USTORM_ETH_CONN_AG_CTX_RULE6EN_SHIFT                5
/* rule7en */
#define E4_USTORM_ETH_CONN_AG_CTX_RULE7EN_MASK                 0x1
#define E4_USTORM_ETH_CONN_AG_CTX_RULE7EN_SHIFT                6
/* rule8en */
#define E4_USTORM_ETH_CONN_AG_CTX_RULE8EN_MASK                 0x1
#define E4_USTORM_ETH_CONN_AG_CTX_RULE8EN_SHIFT                7
	u8 byte2 /* byte2 */;
	u8 byte3 /* byte3 */;
	__le16 word0 /* conn_dpi */;
	__le16 tx_bd_cons /* word1 */;
	__le32 reg0 /* reg0 */;
	__le32 reg1 /* reg1 */;
	__le32 reg2 /* reg2 */;
	__le32 tx_int_coallecing_timeset /* reg3 */;
	__le16 tx_drv_bd_cons /* word2 */;
	__le16 rx_drv_cqe_cons /* word3 */;
};

/*
 * The eth storm context for the Ustorm
 */
struct ustorm_eth_conn_st_ctx {
	__le32 reserved[40];
};

/*
 * The eth storm context for the Mstorm
 */
struct mstorm_eth_conn_st_ctx {
	__le32 reserved[8];
};

/*
 * eth connection context
 */
struct e4_eth_conn_context {
/* tstorm storm context */
	struct tstorm_eth_conn_st_ctx tstorm_st_context;
	struct regpair tstorm_st_padding[2] /* padding */;
/* pstorm storm context */
	struct pstorm_eth_conn_st_ctx pstorm_st_context;
/* xstorm storm context */
	struct xstorm_eth_conn_st_ctx xstorm_st_context;
/* xstorm aggregative context */
	struct e4_xstorm_eth_conn_ag_ctx xstorm_ag_context;
/* ystorm storm context */
	struct ystorm_eth_conn_st_ctx ystorm_st_context;
/* ystorm aggregative context */
	struct e4_ystorm_eth_conn_ag_ctx ystorm_ag_context;
/* tstorm aggregative context */
	struct e4_tstorm_eth_conn_ag_ctx tstorm_ag_context;
/* ustorm aggregative context */
	struct e4_ustorm_eth_conn_ag_ctx ustorm_ag_context;
/* ustorm storm context */
	struct ustorm_eth_conn_st_ctx ustorm_st_context;
/* mstorm storm context */
	struct mstorm_eth_conn_st_ctx mstorm_st_context;
};


/*
 * Ethernet filter types: mac/vlan/pair
 */
enum eth_error_code {
	ETH_OK = 0x00 /* command succeeded */,
/* mac add filters command failed due to cam full state */
	ETH_FILTERS_MAC_ADD_FAIL_FULL,
/* mac add filters command failed due to mtt2 full state */
	ETH_FILTERS_MAC_ADD_FAIL_FULL_MTT2,
/* mac add filters command failed due to duplicate mac address */
	ETH_FILTERS_MAC_ADD_FAIL_DUP_MTT2,
/* mac add filters command failed due to duplicate mac address */
	ETH_FILTERS_MAC_ADD_FAIL_DUP_STT2,
/* mac delete filters command failed due to not found state */
	ETH_FILTERS_MAC_DEL_FAIL_NOF,
/* mac delete filters command failed due to not found state */
	ETH_FILTERS_MAC_DEL_FAIL_NOF_MTT2,
/* mac delete filters command failed due to not found state */
	ETH_FILTERS_MAC_DEL_FAIL_NOF_STT2,
/* mac add filters command failed due to MAC Address of 00:00:00:00:00:00 */
	ETH_FILTERS_MAC_ADD_FAIL_ZERO_MAC,
/* vlan add filters command failed due to cam full state */
	ETH_FILTERS_VLAN_ADD_FAIL_FULL,
/* vlan add filters command failed due to duplicate VLAN filter */
	ETH_FILTERS_VLAN_ADD_FAIL_DUP,
/* vlan delete filters command failed due to not found state */
	ETH_FILTERS_VLAN_DEL_FAIL_NOF,
/* vlan delete filters command failed due to not found state */
	ETH_FILTERS_VLAN_DEL_FAIL_NOF_TT1,
/* pair add filters command failed due to duplicate request */
	ETH_FILTERS_PAIR_ADD_FAIL_DUP,
/* pair add filters command failed due to full state */
	ETH_FILTERS_PAIR_ADD_FAIL_FULL,
/* pair add filters command failed due to full state */
	ETH_FILTERS_PAIR_ADD_FAIL_FULL_MAC,
/* pair add filters command failed due not found state */
	ETH_FILTERS_PAIR_DEL_FAIL_NOF,
/* pair add filters command failed due not found state */
	ETH_FILTERS_PAIR_DEL_FAIL_NOF_TT1,
/* pair add filters command failed due to MAC Address of 00:00:00:00:00:00 */
	ETH_FILTERS_PAIR_ADD_FAIL_ZERO_MAC,
/* vni add filters command failed due to cam full state */
	ETH_FILTERS_VNI_ADD_FAIL_FULL,
/* vni add filters command failed due to duplicate VNI filter */
	ETH_FILTERS_VNI_ADD_FAIL_DUP,
	ETH_FILTERS_GFT_UPDATE_FAIL /* Fail update GFT filter. */,
	MAX_ETH_ERROR_CODE
};


/*
 * opcodes for the event ring
 */
enum eth_event_opcode {
	ETH_EVENT_UNUSED,
	ETH_EVENT_VPORT_START,
	ETH_EVENT_VPORT_UPDATE,
	ETH_EVENT_VPORT_STOP,
	ETH_EVENT_TX_QUEUE_START,
	ETH_EVENT_TX_QUEUE_STOP,
	ETH_EVENT_RX_QUEUE_START,
	ETH_EVENT_RX_QUEUE_UPDATE,
	ETH_EVENT_RX_QUEUE_STOP,
	ETH_EVENT_FILTERS_UPDATE,
	ETH_EVENT_RX_ADD_OPENFLOW_FILTER,
	ETH_EVENT_RX_DELETE_OPENFLOW_FILTER,
	ETH_EVENT_RX_CREATE_OPENFLOW_ACTION,
	ETH_EVENT_RX_ADD_UDP_FILTER,
	ETH_EVENT_RX_DELETE_UDP_FILTER,
	ETH_EVENT_RX_CREATE_GFT_ACTION,
	ETH_EVENT_RX_GFT_UPDATE_FILTER,
	ETH_EVENT_TX_QUEUE_UPDATE,
	MAX_ETH_EVENT_OPCODE
};


/*
 * Classify rule types in E2/E3
 */
enum eth_filter_action {
	ETH_FILTER_ACTION_UNUSED,
	ETH_FILTER_ACTION_REMOVE,
	ETH_FILTER_ACTION_ADD,
/* Remove all filters of given type and vport ID. */
	ETH_FILTER_ACTION_REMOVE_ALL,
	MAX_ETH_FILTER_ACTION
};


/*
 * Command for adding/removing a classification rule $$KEEP_ENDIANNESS$$
 */
struct eth_filter_cmd {
	u8 type /* Filter Type (MAC/VLAN/Pair/VNI) */;
	u8 vport_id /* the vport id */;
	u8 action /* filter command action: add/remove/replace */;
	u8 reserved0;
	__le32 vni;
	__le16 mac_lsb;
	__le16 mac_mid;
	__le16 mac_msb;
	__le16 vlan_id;
};


/*
 *  $$KEEP_ENDIANNESS$$
 */
struct eth_filter_cmd_header {
	u8 rx /* If set, apply these commands to the RX path */;
	u8 tx /* If set, apply these commands to the TX path */;
	u8 cmd_cnt /* Number of filter commands */;
/* 0 - dont assert in case of filter configuration error. Just return an error
 * code. 1 - assert in case of filter configuration error.
 */
	u8 assert_on_error;
	u8 reserved1[4];
};


/*
 * Ethernet filter types: mac/vlan/pair
 */
enum eth_filter_type {
	ETH_FILTER_TYPE_UNUSED,
	ETH_FILTER_TYPE_MAC /* Add/remove a MAC address */,
	ETH_FILTER_TYPE_VLAN /* Add/remove a VLAN */,
	ETH_FILTER_TYPE_PAIR /* Add/remove a MAC-VLAN pair */,
	ETH_FILTER_TYPE_INNER_MAC /* Add/remove a inner MAC address */,
	ETH_FILTER_TYPE_INNER_VLAN /* Add/remove a inner VLAN */,
	ETH_FILTER_TYPE_INNER_PAIR /* Add/remove a inner MAC-VLAN pair */,
/* Add/remove a inner MAC-VNI pair */
	ETH_FILTER_TYPE_INNER_MAC_VNI_PAIR,
	ETH_FILTER_TYPE_MAC_VNI_PAIR /* Add/remove a MAC-VNI pair */,
	ETH_FILTER_TYPE_VNI /* Add/remove a VNI */,
	MAX_ETH_FILTER_TYPE
};


/*
 * inner to inner vlan priority translation configurations
 */
struct eth_in_to_in_pri_map_cfg {
/* If set, non_rdma_in_to_in_pri_map or rdma_in_to_in_pri_map will be used for
 * inner to inner priority mapping depending on protocol type
 */
	u8 inner_vlan_pri_remap_en;
	u8 reserved[7];
/* Map for inner to inner vlan priority translation for Non RDMA protocols, used
 * for TenantDcb. Set inner_vlan_pri_remap_en, when init the map.
 */
	u8 non_rdma_in_to_in_pri_map[8];
/* Map for inner to inner vlan priority translation for RDMA protocols, used for
 * TenantDcb. Set inner_vlan_pri_remap_en, when init the map.
 */
	u8 rdma_in_to_in_pri_map[8];
};


/*
 * eth IPv4 Fragment Type
 */
enum eth_ipv4_frag_type {
	ETH_IPV4_NOT_FRAG /* IPV4 Packet Not Fragmented */,
/* First Fragment of IPv4 Packet (contains headers) */
	ETH_IPV4_FIRST_FRAG,
/* Non-First Fragment of IPv4 Packet (does not contain headers) */
	ETH_IPV4_NON_FIRST_FRAG,
	MAX_ETH_IPV4_FRAG_TYPE
};


/*
 * eth IPv4 Fragment Type
 */
enum eth_ip_type {
	ETH_IPV4 /* IPv4 */,
	ETH_IPV6 /* IPv6 */,
	MAX_ETH_IP_TYPE
};


/*
 * Ethernet Ramrod Command IDs
 */
enum eth_ramrod_cmd_id {
	ETH_RAMROD_UNUSED,
	ETH_RAMROD_VPORT_START /* VPort Start Ramrod */,
	ETH_RAMROD_VPORT_UPDATE /* VPort Update Ramrod */,
	ETH_RAMROD_VPORT_STOP /* VPort Stop Ramrod */,
	ETH_RAMROD_RX_QUEUE_START /* RX Queue Start Ramrod */,
	ETH_RAMROD_RX_QUEUE_STOP /* RX Queue Stop Ramrod */,
	ETH_RAMROD_TX_QUEUE_START /* TX Queue Start Ramrod */,
	ETH_RAMROD_TX_QUEUE_STOP /* TX Queue Stop Ramrod */,
	ETH_RAMROD_FILTERS_UPDATE /* Add or Remove Mac/Vlan/Pair filters */,
	ETH_RAMROD_RX_QUEUE_UPDATE /* RX Queue Update Ramrod */,
/* RX - Create an Openflow Action */
	ETH_RAMROD_RX_CREATE_OPENFLOW_ACTION,
/* RX - Add an Openflow Filter to the Searcher */
	ETH_RAMROD_RX_ADD_OPENFLOW_FILTER,
/* RX - Delete an Openflow Filter to the Searcher */
	ETH_RAMROD_RX_DELETE_OPENFLOW_FILTER,
/* RX - Add a UDP Filter to the Searcher */
	ETH_RAMROD_RX_ADD_UDP_FILTER,
/* RX - Delete a UDP Filter to the Searcher */
	ETH_RAMROD_RX_DELETE_UDP_FILTER,
	ETH_RAMROD_RX_CREATE_GFT_ACTION /* RX - Create a Gft Action */,
/* RX - Add/Delete a GFT Filter to the Searcher */
	ETH_RAMROD_GFT_UPDATE_FILTER,
	ETH_RAMROD_TX_QUEUE_UPDATE /* TX Queue Update Ramrod */,
	MAX_ETH_RAMROD_CMD_ID
};


/*
 * return code from eth sp ramrods
 */
struct eth_return_code {
	u8 value;
/* error code (use enum eth_error_code) */
#define ETH_RETURN_CODE_ERR_CODE_MASK  0x1F
#define ETH_RETURN_CODE_ERR_CODE_SHIFT 0
#define ETH_RETURN_CODE_RESERVED_MASK  0x3
#define ETH_RETURN_CODE_RESERVED_SHIFT 5
/* rx path - 0, tx path - 1 */
#define ETH_RETURN_CODE_RX_TX_MASK     0x1
#define ETH_RETURN_CODE_RX_TX_SHIFT    7
};


/*
 * What to do in case an error occurs
 */
enum eth_tx_err {
	ETH_TX_ERR_DROP /* Drop erroneous packet. */,
/* Assert an interrupt for PF, declare as malicious for VF */
	ETH_TX_ERR_ASSERT_MALICIOUS,
	MAX_ETH_TX_ERR
};


/*
 * Array of the different error type behaviors
 */
struct eth_tx_err_vals {
	__le16 values;
/* Wrong VLAN insertion mode (use enum eth_tx_err) */
#define ETH_TX_ERR_VALS_ILLEGAL_VLAN_MODE_MASK            0x1
#define ETH_TX_ERR_VALS_ILLEGAL_VLAN_MODE_SHIFT           0
/* Packet is below minimal size (use enum eth_tx_err) */
#define ETH_TX_ERR_VALS_PACKET_TOO_SMALL_MASK             0x1
#define ETH_TX_ERR_VALS_PACKET_TOO_SMALL_SHIFT            1
/* Vport has sent spoofed packet (use enum eth_tx_err) */
#define ETH_TX_ERR_VALS_ANTI_SPOOFING_ERR_MASK            0x1
#define ETH_TX_ERR_VALS_ANTI_SPOOFING_ERR_SHIFT           2
/* Packet with illegal type of inband tag (use enum eth_tx_err) */
#define ETH_TX_ERR_VALS_ILLEGAL_INBAND_TAGS_MASK          0x1
#define ETH_TX_ERR_VALS_ILLEGAL_INBAND_TAGS_SHIFT         3
/* Packet marked for VLAN insertion when inband tag is present
 * (use enum eth_tx_err)
 */
#define ETH_TX_ERR_VALS_VLAN_INSERTION_W_INBAND_TAG_MASK  0x1
#define ETH_TX_ERR_VALS_VLAN_INSERTION_W_INBAND_TAG_SHIFT 4
/* Non LSO packet larger than MTU (use enum eth_tx_err) */
#define ETH_TX_ERR_VALS_MTU_VIOLATION_MASK                0x1
#define ETH_TX_ERR_VALS_MTU_VIOLATION_SHIFT               5
/* VF/PF has sent LLDP/PFC or any other type of control packet which is not
 * allowed to (use enum eth_tx_err)
 */
#define ETH_TX_ERR_VALS_ILLEGAL_CONTROL_FRAME_MASK        0x1
#define ETH_TX_ERR_VALS_ILLEGAL_CONTROL_FRAME_SHIFT       6
#define ETH_TX_ERR_VALS_RESERVED_MASK                     0x1FF
#define ETH_TX_ERR_VALS_RESERVED_SHIFT                    7
};


/*
 * vport rss configuration data
 */
struct eth_vport_rss_config {
	__le16 capabilities;
/* configuration of the IpV4 2-tuple capability */
#define ETH_VPORT_RSS_CONFIG_IPV4_CAPABILITY_MASK        0x1
#define ETH_VPORT_RSS_CONFIG_IPV4_CAPABILITY_SHIFT       0
/* configuration of the IpV6 2-tuple capability */
#define ETH_VPORT_RSS_CONFIG_IPV6_CAPABILITY_MASK        0x1
#define ETH_VPORT_RSS_CONFIG_IPV6_CAPABILITY_SHIFT       1
/* configuration of the IpV4 4-tuple capability for TCP */
#define ETH_VPORT_RSS_CONFIG_IPV4_TCP_CAPABILITY_MASK    0x1
#define ETH_VPORT_RSS_CONFIG_IPV4_TCP_CAPABILITY_SHIFT   2
/* configuration of the IpV6 4-tuple capability for TCP */
#define ETH_VPORT_RSS_CONFIG_IPV6_TCP_CAPABILITY_MASK    0x1
#define ETH_VPORT_RSS_CONFIG_IPV6_TCP_CAPABILITY_SHIFT   3
/* configuration of the IpV4 4-tuple capability for UDP */
#define ETH_VPORT_RSS_CONFIG_IPV4_UDP_CAPABILITY_MASK    0x1
#define ETH_VPORT_RSS_CONFIG_IPV4_UDP_CAPABILITY_SHIFT   4
/* configuration of the IpV6 4-tuple capability for UDP */
#define ETH_VPORT_RSS_CONFIG_IPV6_UDP_CAPABILITY_MASK    0x1
#define ETH_VPORT_RSS_CONFIG_IPV6_UDP_CAPABILITY_SHIFT   5
/* configuration of the 5-tuple capability */
#define ETH_VPORT_RSS_CONFIG_EN_5_TUPLE_CAPABILITY_MASK  0x1
#define ETH_VPORT_RSS_CONFIG_EN_5_TUPLE_CAPABILITY_SHIFT 6
/* if set update the rss keys */
#define ETH_VPORT_RSS_CONFIG_RESERVED0_MASK              0x1FF
#define ETH_VPORT_RSS_CONFIG_RESERVED0_SHIFT             7
/* The RSS engine ID. Must be allocated to each vport with RSS enabled.
 * Total number of RSS engines is ETH_RSS_ENGINE_NUM_ , according to chip type.
 */
	u8 rss_id;
	u8 rss_mode /* The RSS mode for this function */;
	u8 update_rss_key /* if set update the rss key */;
/* if set update the indirection table values */
	u8 update_rss_ind_table;
/* if set update the capabilities and indirection table size. */
	u8 update_rss_capabilities;
	u8 tbl_size /* rss mask (Tbl size) */;
	__le32 reserved2[2];
/* RSS indirection table */
	__le16 indirection_table[ETH_RSS_IND_TABLE_ENTRIES_NUM];
/* RSS key supplied to us by OS */
	__le32 rss_key[ETH_RSS_KEY_SIZE_REGS];
	__le32 reserved3[2];
};


/*
 * eth vport RSS mode
 */
enum eth_vport_rss_mode {
	ETH_VPORT_RSS_MODE_DISABLED /* RSS Disabled */,
	ETH_VPORT_RSS_MODE_REGULAR /* Regular (ndis-like) RSS */,
	MAX_ETH_VPORT_RSS_MODE
};


/*
 * Command for setting classification flags for a vport $$KEEP_ENDIANNESS$$
 */
struct eth_vport_rx_mode {
	__le16 state;
/* drop all unicast packets */
#define ETH_VPORT_RX_MODE_UCAST_DROP_ALL_MASK          0x1
#define ETH_VPORT_RX_MODE_UCAST_DROP_ALL_SHIFT         0
/* accept all unicast packets (subject to vlan) */
#define ETH_VPORT_RX_MODE_UCAST_ACCEPT_ALL_MASK        0x1
#define ETH_VPORT_RX_MODE_UCAST_ACCEPT_ALL_SHIFT       1
/* accept all unmatched unicast packets */
#define ETH_VPORT_RX_MODE_UCAST_ACCEPT_UNMATCHED_MASK  0x1
#define ETH_VPORT_RX_MODE_UCAST_ACCEPT_UNMATCHED_SHIFT 2
/* drop all multicast packets */
#define ETH_VPORT_RX_MODE_MCAST_DROP_ALL_MASK          0x1
#define ETH_VPORT_RX_MODE_MCAST_DROP_ALL_SHIFT         3
/* accept all multicast packets (subject to vlan) */
#define ETH_VPORT_RX_MODE_MCAST_ACCEPT_ALL_MASK        0x1
#define ETH_VPORT_RX_MODE_MCAST_ACCEPT_ALL_SHIFT       4
/* accept all broadcast packets (subject to vlan) */
#define ETH_VPORT_RX_MODE_BCAST_ACCEPT_ALL_MASK        0x1
#define ETH_VPORT_RX_MODE_BCAST_ACCEPT_ALL_SHIFT       5
/* accept any VNI in tunnel VNI classification. Used for default queue. */
#define ETH_VPORT_RX_MODE_ACCEPT_ANY_VNI_MASK          0x1
#define ETH_VPORT_RX_MODE_ACCEPT_ANY_VNI_SHIFT         6
#define ETH_VPORT_RX_MODE_RESERVED1_MASK               0x1FF
#define ETH_VPORT_RX_MODE_RESERVED1_SHIFT              7
};


/*
 * Command for setting tpa parameters
 */
struct eth_vport_tpa_param {
	u8 tpa_ipv4_en_flg /* Enable TPA for IPv4 packets */;
	u8 tpa_ipv6_en_flg /* Enable TPA for IPv6 packets */;
	u8 tpa_ipv4_tunn_en_flg /* Enable TPA for IPv4 over tunnel */;
	u8 tpa_ipv6_tunn_en_flg /* Enable TPA for IPv6 over tunnel */;
/* If set, start each TPA segment on new BD (GRO mode). One BD per segment
 * allowed.
 */
	u8 tpa_pkt_split_flg;
/* If set, put header of first TPA segment on first BD and data on second BD. */
	u8 tpa_hdr_data_split_flg;
/* If set, GRO data consistent will checked for TPA continue */
	u8 tpa_gro_consistent_flg;
/* maximum number of opened aggregations per v-port  */
	u8 tpa_max_aggs_num;
	__le16 tpa_max_size /* maximal size for the aggregated TPA packets */;
/* minimum TCP payload size for a packet to start aggregation */
	__le16 tpa_min_size_to_start;
/* minimum TCP payload size for a packet to continue aggregation */
	__le16 tpa_min_size_to_cont;
/* maximal number of buffers that can be used for one aggregation */
	u8 max_buff_num;
	u8 reserved;
};


/*
 * Command for setting classification flags for a vport $$KEEP_ENDIANNESS$$
 */
struct eth_vport_tx_mode {
	__le16 state;
/* drop all unicast packets */
#define ETH_VPORT_TX_MODE_UCAST_DROP_ALL_MASK    0x1
#define ETH_VPORT_TX_MODE_UCAST_DROP_ALL_SHIFT   0
/* accept all unicast packets (subject to vlan) */
#define ETH_VPORT_TX_MODE_UCAST_ACCEPT_ALL_MASK  0x1
#define ETH_VPORT_TX_MODE_UCAST_ACCEPT_ALL_SHIFT 1
/* drop all multicast packets */
#define ETH_VPORT_TX_MODE_MCAST_DROP_ALL_MASK    0x1
#define ETH_VPORT_TX_MODE_MCAST_DROP_ALL_SHIFT   2
/* accept all multicast packets (subject to vlan) */
#define ETH_VPORT_TX_MODE_MCAST_ACCEPT_ALL_MASK  0x1
#define ETH_VPORT_TX_MODE_MCAST_ACCEPT_ALL_SHIFT 3
/* accept all broadcast packets (subject to vlan) */
#define ETH_VPORT_TX_MODE_BCAST_ACCEPT_ALL_MASK  0x1
#define ETH_VPORT_TX_MODE_BCAST_ACCEPT_ALL_SHIFT 4
#define ETH_VPORT_TX_MODE_RESERVED1_MASK         0x7FF
#define ETH_VPORT_TX_MODE_RESERVED1_SHIFT        5
};


/*
 * GFT filter update action type.
 */
enum gft_filter_update_action {
	GFT_ADD_FILTER,
	GFT_DELETE_FILTER,
	MAX_GFT_FILTER_UPDATE_ACTION
};




/*
 * Ramrod data for rx add openflow filter
 */
struct rx_add_openflow_filter_data {
	__le16 action_icid /* CID of Action to run for this filter */;
	u8 priority /* Searcher String - Packet priority */;
	u8 reserved0;
	__le32 tenant_id /* Searcher String - Tenant ID */;
/* Searcher String - Destination Mac Bytes 0 to 1 */
	__le16 dst_mac_hi;
/* Searcher String - Destination Mac Bytes 2 to 3 */
	__le16 dst_mac_mid;
/* Searcher String - Destination Mac Bytes 4 to 5 */
	__le16 dst_mac_lo;
	__le16 src_mac_hi /* Searcher String - Source Mac 0 to 1 */;
	__le16 src_mac_mid /* Searcher String - Source Mac 2 to 3 */;
	__le16 src_mac_lo /* Searcher String - Source Mac 4 to 5 */;
	__le16 vlan_id /* Searcher String - Vlan ID */;
	__le16 l2_eth_type /* Searcher String - Last L2 Ethertype */;
	u8 ipv4_dscp /* Searcher String - IPv4 6 MSBs of the TOS Field */;
	u8 ipv4_frag_type /* Searcher String - IPv4 Fragmentation Type */;
	u8 ipv4_over_ip /* Searcher String - IPv4 Over IP Type */;
	u8 tenant_id_exists /* Searcher String - Tenant ID Exists */;
	__le32 ipv4_dst_addr /* Searcher String - IPv4 Destination Address */;
	__le32 ipv4_src_addr /* Searcher String - IPv4 Source Address */;
	__le16 l4_dst_port /* Searcher String - TCP/UDP Destination Port */;
	__le16 l4_src_port /* Searcher String - TCP/UDP Source Port */;
};


/*
 * Ramrod data for rx create gft action
 */
struct rx_create_gft_action_data {
	u8 vport_id /* Vport Id of GFT Action  */;
	u8 reserved[7];
};


/*
 * Ramrod data for rx create openflow action
 */
struct rx_create_openflow_action_data {
	u8 vport_id /* ID of RX queue */;
	u8 reserved[7];
};


/*
 * Ramrod data for rx queue start ramrod
 */
struct rx_queue_start_ramrod_data {
	__le16 rx_queue_id /* ID of RX queue */;
	__le16 num_of_pbl_pages /* Number of pages in CQE PBL */;
	__le16 bd_max_bytes /* maximal bytes that can be places on the bd */;
	__le16 sb_id /* Status block ID */;
	u8 sb_index /* index of the protocol index */;
	u8 vport_id /* ID of virtual port */;
	u8 default_rss_queue_flg /* set queue as default rss queue if set */;
	u8 complete_cqe_flg /* post completion to the CQE ring if set */;
	u8 complete_event_flg /* post completion to the event ring if set */;
	u8 stats_counter_id /* Statistics counter ID */;
	u8 pin_context /* Pin context in CCFC to improve performance */;
	u8 pxp_tph_valid_bd /* PXP command TPH Valid - for BD/SGE fetch */;
/* PXP command TPH Valid - for packet placement */
	u8 pxp_tph_valid_pkt;
/* PXP command Steering tag hint. Use enum pxp_tph_st_hint */
	u8 pxp_st_hint;
	__le16 pxp_st_index /* PXP command Steering tag index */;
/* Indicates that current queue belongs to poll-mode driver */
	u8 pmd_mode;
/* Indicates that the current queue is using the TX notification queue
 * mechanism - should be set only for PMD queue
 */
	u8 notify_en;
/* Initial value for the toggle valid bit - used in PMD mode */
	u8 toggle_val;
/* Index of RX producers in VF zone. Used for VF only. */
	u8 vf_rx_prod_index;
/* Backward compatibility mode. If set, unprotected mStorm queue zone will used
 * for VF RX producers instead of VF zone.
 */
	u8 vf_rx_prod_use_zone_a;
	u8 reserved[5];
	__le16 reserved1 /* FW reserved. */;
	struct regpair cqe_pbl_addr /* Base address on host of CQE PBL */;
	struct regpair bd_base /* bd address of the first bd page */;
	struct regpair reserved2 /* FW reserved. */;
};


/*
 * Ramrod data for rx queue stop ramrod
 */
struct rx_queue_stop_ramrod_data {
	__le16 rx_queue_id /* ID of RX queue */;
	u8 complete_cqe_flg /* post completion to the CQE ring if set */;
	u8 complete_event_flg /* post completion to the event ring if set */;
	u8 vport_id /* ID of virtual port */;
	u8 reserved[3];
};


/*
 * Ramrod data for rx queue update ramrod
 */
struct rx_queue_update_ramrod_data {
	__le16 rx_queue_id /* ID of RX queue */;
	u8 complete_cqe_flg /* post completion to the CQE ring if set */;
	u8 complete_event_flg /* post completion to the event ring if set */;
	u8 vport_id /* ID of virtual port */;
/* If set, update default rss queue to this RX queue. */
	u8 set_default_rss_queue;
	u8 reserved[3];
	u8 reserved1 /* FW reserved. */;
	u8 reserved2 /* FW reserved. */;
	u8 reserved3 /* FW reserved. */;
	__le16 reserved4 /* FW reserved. */;
	__le16 reserved5 /* FW reserved. */;
	struct regpair reserved6 /* FW reserved. */;
};


/*
 * Ramrod data for rx Add UDP Filter
 */
struct rx_udp_filter_data {
	__le16 action_icid /* CID of Action to run for this filter */;
	__le16 vlan_id /* Searcher String - Vlan ID */;
	u8 ip_type /* Searcher String - IP Type */;
	u8 tenant_id_exists /* Searcher String - Tenant ID Exists */;
	__le16 reserved1;
/* Searcher String - IP Destination Address, for IPv4 use ip_dst_addr[0] only */
	__le32 ip_dst_addr[4];
/* Searcher String - IP Source Address, for IPv4 use ip_dst_addr[0] only */
	__le32 ip_src_addr[4];
	__le16 udp_dst_port /* Searcher String - UDP Destination Port */;
	__le16 udp_src_port /* Searcher String - UDP Source Port */;
	__le32 tenant_id /* Searcher String - Tenant ID */;
};


/*
 * add or delete GFT filter - filter is packet header of type of packet wished
 * to pass certain FW flow
 */
struct rx_update_gft_filter_data {
/* Pointer to Packet Header That Defines GFT Filter */
	struct regpair pkt_hdr_addr;
	__le16 pkt_hdr_length /* Packet Header Length */;
/* Action icid. Valid if action_icid_valid flag set. */
	__le16 action_icid;
	__le16 rx_qid /* RX queue ID. Valid if rx_qid_valid set. */;
	__le16 flow_id /* RX flow ID. Valid if flow_id_valid set. */;
/* RX vport Id. For drop flow, set to ETH_GFT_TRASHCAN_VPORT. */
	__le16 vport_id;
/* If set, action_icid will used for GFT filter update. */
	u8 action_icid_valid;
/* If set, rx_qid will used for traffic steering, in additional to vport_id.
 * flow_id_valid must be cleared. If cleared, queue ID will selected by RSS.
 */
	u8 rx_qid_valid;
/* If set, flow_id will reported by CQE, rx_qid_valid must be cleared. If
 * cleared, flow_id 0 will reported by CQE.
 */
	u8 flow_id_valid;
	u8 filter_action /* Use to set type of action on filter */;
/* 0 - dont assert in case of error. Just return an error code. 1 - assert in
 * case of error.
 */
	u8 assert_on_error;
/* If set, inner VLAN will be removed regardless to VPORT configuration.
 * Supported by E4 only.
 */
	u8 inner_vlan_removal_en;
};



/*
 * Ramrod data for tx queue start ramrod
 */
struct tx_queue_start_ramrod_data {
	__le16 sb_id /* Status block ID */;
	u8 sb_index /* Status block protocol index */;
	u8 vport_id /* VPort ID */;
	u8 reserved0 /* FW reserved. (qcn_rl_en) */;
	u8 stats_counter_id /* Statistics counter ID to use */;
	__le16 qm_pq_id /* QM PQ ID */;
	u8 flags;
/* 0: Enable QM opportunistic flow. 1: Disable QM opportunistic flow */
#define TX_QUEUE_START_RAMROD_DATA_DISABLE_OPPORTUNISTIC_MASK  0x1
#define TX_QUEUE_START_RAMROD_DATA_DISABLE_OPPORTUNISTIC_SHIFT 0
/* If set, Test Mode - packets will be duplicated by Xstorm handler */
#define TX_QUEUE_START_RAMROD_DATA_TEST_MODE_PKT_DUP_MASK      0x1
#define TX_QUEUE_START_RAMROD_DATA_TEST_MODE_PKT_DUP_SHIFT     1
/* If set, Test Mode - packets destination will be determined by dest_port_mode
 * field from Tx BD
 */
#define TX_QUEUE_START_RAMROD_DATA_TEST_MODE_TX_DEST_MASK      0x1
#define TX_QUEUE_START_RAMROD_DATA_TEST_MODE_TX_DEST_SHIFT     2
/* Indicates that current queue belongs to poll-mode driver */
#define TX_QUEUE_START_RAMROD_DATA_PMD_MODE_MASK               0x1
#define TX_QUEUE_START_RAMROD_DATA_PMD_MODE_SHIFT              3
/* Indicates that the current queue is using the TX notification queue
 * mechanism - should be set only for PMD queue
 */
#define TX_QUEUE_START_RAMROD_DATA_NOTIFY_EN_MASK              0x1
#define TX_QUEUE_START_RAMROD_DATA_NOTIFY_EN_SHIFT             4
/* Pin context in CCFC to improve performance */
#define TX_QUEUE_START_RAMROD_DATA_PIN_CONTEXT_MASK            0x1
#define TX_QUEUE_START_RAMROD_DATA_PIN_CONTEXT_SHIFT           5
#define TX_QUEUE_START_RAMROD_DATA_RESERVED1_MASK              0x3
#define TX_QUEUE_START_RAMROD_DATA_RESERVED1_SHIFT             6
	u8 pxp_st_hint /* PXP command Steering tag hint */;
	u8 pxp_tph_valid_bd /* PXP command TPH Valid - for BD fetch */;
	u8 pxp_tph_valid_pkt /* PXP command TPH Valid - for packet fetch */;
	__le16 pxp_st_index /* PXP command Steering tag index */;
/* TX completion min agg size - for PMD queues */
	__le16 comp_agg_size;
	__le16 queue_zone_id /* queue zone ID to use */;
	__le16 reserved2 /* FW reserved. (test_dup_count) */;
	__le16 pbl_size /* Number of BD pages pointed by PBL */;
/* unique Queue ID - currently used only by PMD flow */
	__le16 tx_queue_id;
/* Unique Same-As-Last Resource ID - improves performance for same-as-last
 * packets per connection (range 0..ETH_TX_NUM_SAME_AS_LAST_ENTRIES-1 IDs
 * available)
 */
	__le16 same_as_last_id;
	__le16 reserved[3];
	struct regpair pbl_base_addr /* address of the pbl page */;
/* BD consumer address in host - for PMD queues */
	struct regpair bd_cons_address;
};


/*
 * Ramrod data for tx queue stop ramrod
 */
struct tx_queue_stop_ramrod_data {
	__le16 reserved[4];
};


/*
 * Ramrod data for tx queue update ramrod
 */
struct tx_queue_update_ramrod_data {
	__le16 update_qm_pq_id_flg /* Flag to Update QM PQ ID */;
	__le16 qm_pq_id /* Updated QM PQ ID */;
	__le32 reserved0;
	struct regpair reserved1[5];
};


/*
 * Inner to Inner VLAN priority map update mode
 */
enum update_in_to_in_pri_map_mode_enum {
/* Inner to Inner VLAN priority map update Disabled */
	ETH_IN_TO_IN_PRI_MAP_UPDATE_DISABLED,
/* Update Inner to Inner VLAN priority map for non RDMA protocols */
	ETH_IN_TO_IN_PRI_MAP_UPDATE_NON_RDMA_TBL,
/* Update Inner to Inner VLAN priority map for RDMA protocols */
	ETH_IN_TO_IN_PRI_MAP_UPDATE_RDMA_TBL,
	MAX_UPDATE_IN_TO_IN_PRI_MAP_MODE_ENUM
};



/*
 * Ramrod data for vport update ramrod
 */
struct vport_filter_update_ramrod_data {
/* Header for Filter Commands (RX/TX, Add/Remove/Replace, etc) */
	struct eth_filter_cmd_header filter_cmd_hdr;
/* Filter Commands */
	struct eth_filter_cmd filter_cmds[ETH_FILTER_RULES_COUNT];
};


/*
 * Ramrod data for vport start ramrod
 */
struct vport_start_ramrod_data {
	u8 vport_id;
	u8 sw_fid;
	__le16 mtu;
	u8 drop_ttl0_en /* if set, drop packet with ttl=0 */;
	u8 inner_vlan_removal_en;
	struct eth_vport_rx_mode rx_mode /* Rx filter data */;
	struct eth_vport_tx_mode tx_mode /* Tx filter data */;
/* TPA configuration parameters */
	struct eth_vport_tpa_param tpa_param;
	__le16 default_vlan /* Default Vlan value to be forced by FW */;
	u8 tx_switching_en /* Tx switching is enabled for current Vport */;
/* Anti-spoofing verification is set for current Vport */
	u8 anti_spoofing_en;
/* If set, the default Vlan value is forced by the FW */
	u8 default_vlan_en;
/* If set, the vport handles PTP Timesync Packets */
	u8 handle_ptp_pkts;
/* If enable then innerVlan will be striped and not written to cqe */
	u8 silent_vlan_removal_en;
/* If set untagged filter (vlan0) is added to current Vport, otherwise port is
 * marked as any-vlan
 */
	u8 untagged;
/* Desired behavior per TX error type */
	struct eth_tx_err_vals tx_err_behav;
/* If set, ETH header padding will not inserted. placement_offset will be zero.
 */
	u8 zero_placement_offset;
/* If set, control frames will be filtered according to MAC check. */
	u8 ctl_frame_mac_check_en;
/* If set, control frames will be filtered according to ethtype check. */
	u8 ctl_frame_ethtype_check_en;
/* If set, the inner vlan (802.1q tag) priority that is written to cqe will be
 * zero out, used for TenantDcb
 */
	u8 wipe_inner_vlan_pri_en;
/* inner to inner vlan priority translation configurations */
	struct eth_in_to_in_pri_map_cfg in_to_in_vlan_pri_map_cfg;
};


/*
 * Ramrod data for vport stop ramrod
 */
struct vport_stop_ramrod_data {
	u8 vport_id;
	u8 reserved[7];
};


/*
 * Ramrod data for vport update ramrod
 */
struct vport_update_ramrod_data_cmn {
	u8 vport_id;
	u8 update_rx_active_flg /* set if rx active flag should be handled */;
	u8 rx_active_flg /* rx active flag value */;
	u8 update_tx_active_flg /* set if tx active flag should be handled */;
	u8 tx_active_flg /* tx active flag value */;
	u8 update_rx_mode_flg /* set if rx state data should be handled */;
	u8 update_tx_mode_flg /* set if tx state data should be handled */;
/* set if approx. mcast data should be handled */
	u8 update_approx_mcast_flg;
	u8 update_rss_flg /* set if rss data should be handled  */;
/* set if inner_vlan_removal_en should be handled */
	u8 update_inner_vlan_removal_en_flg;
	u8 inner_vlan_removal_en;
/* set if tpa parameters should be handled, TPA must be disable before */
	u8 update_tpa_param_flg;
	u8 update_tpa_en_flg /* set if tpa enable changes */;
/* set if tx switching en flag should be handled */
	u8 update_tx_switching_en_flg;
	u8 tx_switching_en /* tx switching en value */;
/* set if anti spoofing flag should be handled */
	u8 update_anti_spoofing_en_flg;
	u8 anti_spoofing_en /* Anti-spoofing verification en value */;
/* set if handle_ptp_pkts should be handled. */
	u8 update_handle_ptp_pkts;
/* If set, the vport handles PTP Timesync Packets */
	u8 handle_ptp_pkts;
/* If set, the default Vlan enable flag is updated */
	u8 update_default_vlan_en_flg;
/* If set, the default Vlan value is forced by the FW */
	u8 default_vlan_en;
/* If set, the default Vlan value is updated */
	u8 update_default_vlan_flg;
	__le16 default_vlan /* Default Vlan value to be forced by FW */;
/* set if accept_any_vlan should be handled */
	u8 update_accept_any_vlan_flg;
	u8 accept_any_vlan /* accept_any_vlan updated value */;
/* Set to remove vlan silently, update_inner_vlan_removal_en_flg must be enabled
 * as well. If Rx is in noSgl mode send rx_queue_update_ramrod_data
 */
	u8 silent_vlan_removal_en;
/* If set, MTU will be updated. Vport must be not active. */
	u8 update_mtu_flg;
	__le16 mtu /* New MTU value. Used if update_mtu_flg are set */;
/* If set, ctl_frame_mac_check_en and ctl_frame_ethtype_check_en will be
 * updated
 */
	u8 update_ctl_frame_checks_en_flg;
/* If set, control frames will be filtered according to MAC check. */
	u8 ctl_frame_mac_check_en;
/* If set, control frames will be filtered according to ethtype check. */
	u8 ctl_frame_ethtype_check_en;
/* Indicates to update RDMA or NON-RDMA vlan remapping priority table according
 * to update_in_to_in_pri_map_mode_enum, used for TenantDcb (use enum
 * update_in_to_in_pri_map_mode_enum)
 */
	u8 update_in_to_in_pri_map_mode;
/* Map for inner to inner vlan priority translation, used for TenantDcb. */
	u8 in_to_in_pri_map[8];
	u8 reserved[6];
};

struct vport_update_ramrod_mcast {
	__le32 bins[ETH_MULTICAST_MAC_BINS_IN_REGS] /* multicast bins */;
};

/*
 * Ramrod data for vport update ramrod
 */
struct vport_update_ramrod_data {
/* Common data for all vport update ramrods */
	struct vport_update_ramrod_data_cmn common;
	struct eth_vport_rx_mode rx_mode /* vport rx mode bitmap */;
	struct eth_vport_tx_mode tx_mode /* vport tx mode bitmap */;
	__le32 reserved[3];
/* TPA configuration parameters */
	struct eth_vport_tpa_param tpa_param;
	struct vport_update_ramrod_mcast approx_mcast;
	struct eth_vport_rss_config rss_config /* rss config data */;
};






struct E4XstormEthConnAgCtxDqExtLdPart {
	u8 reserved0 /* cdu_validation */;
	u8 eth_state /* state */;
	u8 flags0;
/* exist_in_qm0 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_EXIST_IN_QM0_MASK            0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_EXIST_IN_QM0_SHIFT           0
/* exist_in_qm1 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED1_MASK               0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED1_SHIFT              1
/* exist_in_qm2 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED2_MASK               0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED2_SHIFT              2
/* exist_in_qm3 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_EXIST_IN_QM3_MASK            0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_EXIST_IN_QM3_SHIFT           3
/* bit4 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED3_MASK               0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED3_SHIFT              4
/* cf_array_active */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED4_MASK               0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED4_SHIFT              5
/* bit6 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED5_MASK               0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED5_SHIFT              6
/* bit7 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED6_MASK               0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED6_SHIFT              7
	u8 flags1;
/* bit8 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED7_MASK               0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED7_SHIFT              0
/* bit9 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED8_MASK               0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED8_SHIFT              1
/* bit10 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED9_MASK               0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED9_SHIFT              2
/* bit11 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_BIT11_MASK                   0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_BIT11_SHIFT                  3
/* bit12 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_BIT12_MASK                   0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_BIT12_SHIFT                  4
/* bit13 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_BIT13_MASK                   0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_BIT13_SHIFT                  5
/* bit14 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_TX_RULE_ACTIVE_MASK          0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_TX_RULE_ACTIVE_SHIFT         6
/* bit15 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_DQ_CF_ACTIVE_MASK            0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_DQ_CF_ACTIVE_SHIFT           7
	u8 flags2;
/* timer0cf */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF0_MASK                     0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF0_SHIFT                    0
/* timer1cf */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF1_MASK                     0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF1_SHIFT                    2
/* timer2cf */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF2_MASK                     0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF2_SHIFT                    4
/* timer_stop_all */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF3_MASK                     0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF3_SHIFT                    6
	u8 flags3;
/* cf4 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF4_MASK                     0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF4_SHIFT                    0
/* cf5 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF5_MASK                     0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF5_SHIFT                    2
/* cf6 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF6_MASK                     0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF6_SHIFT                    4
/* cf7 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF7_MASK                     0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF7_SHIFT                    6
	u8 flags4;
/* cf8 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF8_MASK                     0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF8_SHIFT                    0
/* cf9 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF9_MASK                     0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF9_SHIFT                    2
/* cf10 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF10_MASK                    0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF10_SHIFT                   4
/* cf11 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF11_MASK                    0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF11_SHIFT                   6
	u8 flags5;
/* cf12 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF12_MASK                    0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF12_SHIFT                   0
/* cf13 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF13_MASK                    0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF13_SHIFT                   2
/* cf14 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF14_MASK                    0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF14_SHIFT                   4
/* cf15 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF15_MASK                    0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF15_SHIFT                   6
	u8 flags6;
/* cf16 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_GO_TO_BD_CONS_CF_MASK        0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_GO_TO_BD_CONS_CF_SHIFT       0
/* cf_array_cf */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_MULTI_UNICAST_CF_MASK        0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_MULTI_UNICAST_CF_SHIFT       2
/* cf18 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_DQ_CF_MASK                   0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_DQ_CF_SHIFT                  4
/* cf19 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_TERMINATE_CF_MASK            0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_TERMINATE_CF_SHIFT           6
	u8 flags7;
/* cf20 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_FLUSH_Q0_MASK                0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_FLUSH_Q0_SHIFT               0
/* cf21 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED10_MASK              0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED10_SHIFT             2
/* cf22 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_SLOW_PATH_MASK               0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_SLOW_PATH_SHIFT              4
/* cf0en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF0EN_MASK                   0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF0EN_SHIFT                  6
/* cf1en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF1EN_MASK                   0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF1EN_SHIFT                  7
	u8 flags8;
/* cf2en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF2EN_MASK                   0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF2EN_SHIFT                  0
/* cf3en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF3EN_MASK                   0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF3EN_SHIFT                  1
/* cf4en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF4EN_MASK                   0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF4EN_SHIFT                  2
/* cf5en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF5EN_MASK                   0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF5EN_SHIFT                  3
/* cf6en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF6EN_MASK                   0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF6EN_SHIFT                  4
/* cf7en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF7EN_MASK                   0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF7EN_SHIFT                  5
/* cf8en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF8EN_MASK                   0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF8EN_SHIFT                  6
/* cf9en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF9EN_MASK                   0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF9EN_SHIFT                  7
	u8 flags9;
/* cf10en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF10EN_MASK                  0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF10EN_SHIFT                 0
/* cf11en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF11EN_MASK                  0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF11EN_SHIFT                 1
/* cf12en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF12EN_MASK                  0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF12EN_SHIFT                 2
/* cf13en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF13EN_MASK                  0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF13EN_SHIFT                 3
/* cf14en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF14EN_MASK                  0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF14EN_SHIFT                 4
/* cf15en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF15EN_MASK                  0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_CF15EN_SHIFT                 5
/* cf16en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_GO_TO_BD_CONS_CF_EN_MASK     0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_GO_TO_BD_CONS_CF_EN_SHIFT    6
/* cf_array_cf_en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_MULTI_UNICAST_CF_EN_MASK     0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_MULTI_UNICAST_CF_EN_SHIFT    7
	u8 flags10;
/* cf18en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_DQ_CF_EN_MASK                0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_DQ_CF_EN_SHIFT               0
/* cf19en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_TERMINATE_CF_EN_MASK         0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_TERMINATE_CF_EN_SHIFT        1
/* cf20en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_FLUSH_Q0_EN_MASK             0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_FLUSH_Q0_EN_SHIFT            2
/* cf21en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED11_MASK              0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED11_SHIFT             3
/* cf22en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_SLOW_PATH_EN_MASK            0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_SLOW_PATH_EN_SHIFT           4
/* cf23en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_TPH_ENABLE_EN_RESERVED_MASK  0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_TPH_ENABLE_EN_RESERVED_SHIFT 5
/* rule0en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED12_MASK              0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED12_SHIFT             6
/* rule1en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED13_MASK              0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED13_SHIFT             7
	u8 flags11;
/* rule2en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED14_MASK              0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED14_SHIFT             0
/* rule3en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED15_MASK              0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RESERVED15_SHIFT             1
/* rule4en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_TX_DEC_RULE_EN_MASK          0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_TX_DEC_RULE_EN_SHIFT         2
/* rule5en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE5EN_MASK                 0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE5EN_SHIFT                3
/* rule6en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE6EN_MASK                 0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE6EN_SHIFT                4
/* rule7en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE7EN_MASK                 0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE7EN_SHIFT                5
/* rule8en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED1_MASK            0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED1_SHIFT           6
/* rule9en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE9EN_MASK                 0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE9EN_SHIFT                7
	u8 flags12;
/* rule10en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE10EN_MASK                0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE10EN_SHIFT               0
/* rule11en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE11EN_MASK                0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE11EN_SHIFT               1
/* rule12en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED2_MASK            0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED2_SHIFT           2
/* rule13en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED3_MASK            0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED3_SHIFT           3
/* rule14en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE14EN_MASK                0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE14EN_SHIFT               4
/* rule15en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE15EN_MASK                0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE15EN_SHIFT               5
/* rule16en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE16EN_MASK                0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE16EN_SHIFT               6
/* rule17en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE17EN_MASK                0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE17EN_SHIFT               7
	u8 flags13;
/* rule18en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE18EN_MASK                0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE18EN_SHIFT               0
/* rule19en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE19EN_MASK                0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_RULE19EN_SHIFT               1
/* rule20en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED4_MASK            0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED4_SHIFT           2
/* rule21en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED5_MASK            0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED5_SHIFT           3
/* rule22en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED6_MASK            0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED6_SHIFT           4
/* rule23en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED7_MASK            0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED7_SHIFT           5
/* rule24en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED8_MASK            0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED8_SHIFT           6
/* rule25en */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED9_MASK            0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_A0_RESERVED9_SHIFT           7
	u8 flags14;
/* bit16 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_EDPM_USE_EXT_HDR_MASK        0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_EDPM_USE_EXT_HDR_SHIFT       0
/* bit17 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_EDPM_SEND_RAW_L3L4_MASK      0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_EDPM_SEND_RAW_L3L4_SHIFT     1
/* bit18 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_EDPM_INBAND_PROP_HDR_MASK    0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_EDPM_INBAND_PROP_HDR_SHIFT   2
/* bit19 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_EDPM_SEND_EXT_TUNNEL_MASK    0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_EDPM_SEND_EXT_TUNNEL_SHIFT   3
/* bit20 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_L2_EDPM_ENABLE_MASK          0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_L2_EDPM_ENABLE_SHIFT         4
/* bit21 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_ROCE_EDPM_ENABLE_MASK        0x1
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_ROCE_EDPM_ENABLE_SHIFT       5
/* cf23 */
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_TPH_ENABLE_MASK              0x3
#define E4XSTORMETHCONNAGCTXDQEXTLDPART_TPH_ENABLE_SHIFT             6
	u8 edpm_event_id /* byte2 */;
	__le16 physical_q0 /* physical_q0 */;
	__le16 e5_reserved1 /* physical_q1 */;
	__le16 edpm_num_bds /* physical_q2 */;
	__le16 tx_bd_cons /* word3 */;
	__le16 tx_bd_prod /* word4 */;
	__le16 updated_qm_pq_id /* word5 */;
	__le16 conn_dpi /* conn_dpi */;
	u8 byte3 /* byte3 */;
	u8 byte4 /* byte4 */;
	u8 byte5 /* byte5 */;
	u8 byte6 /* byte6 */;
	__le32 reg0 /* reg0 */;
	__le32 reg1 /* reg1 */;
	__le32 reg2 /* reg2 */;
	__le32 reg3 /* reg3 */;
	__le32 reg4 /* reg4 */;
};


struct e4_mstorm_eth_conn_ag_ctx {
	u8 byte0 /* cdu_validation */;
	u8 byte1 /* state */;
	u8 flags0;
#define E4_MSTORM_ETH_CONN_AG_CTX_EXIST_IN_QM0_MASK  0x1 /* exist_in_qm0 */
#define E4_MSTORM_ETH_CONN_AG_CTX_EXIST_IN_QM0_SHIFT 0
#define E4_MSTORM_ETH_CONN_AG_CTX_BIT1_MASK          0x1 /* exist_in_qm1 */
#define E4_MSTORM_ETH_CONN_AG_CTX_BIT1_SHIFT         1
#define E4_MSTORM_ETH_CONN_AG_CTX_CF0_MASK           0x3 /* cf0 */
#define E4_MSTORM_ETH_CONN_AG_CTX_CF0_SHIFT          2
#define E4_MSTORM_ETH_CONN_AG_CTX_CF1_MASK           0x3 /* cf1 */
#define E4_MSTORM_ETH_CONN_AG_CTX_CF1_SHIFT          4
#define E4_MSTORM_ETH_CONN_AG_CTX_CF2_MASK           0x3 /* cf2 */
#define E4_MSTORM_ETH_CONN_AG_CTX_CF2_SHIFT          6
	u8 flags1;
#define E4_MSTORM_ETH_CONN_AG_CTX_CF0EN_MASK         0x1 /* cf0en */
#define E4_MSTORM_ETH_CONN_AG_CTX_CF0EN_SHIFT        0
#define E4_MSTORM_ETH_CONN_AG_CTX_CF1EN_MASK         0x1 /* cf1en */
#define E4_MSTORM_ETH_CONN_AG_CTX_CF1EN_SHIFT        1
#define E4_MSTORM_ETH_CONN_AG_CTX_CF2EN_MASK         0x1 /* cf2en */
#define E4_MSTORM_ETH_CONN_AG_CTX_CF2EN_SHIFT        2
#define E4_MSTORM_ETH_CONN_AG_CTX_RULE0EN_MASK       0x1 /* rule0en */
#define E4_MSTORM_ETH_CONN_AG_CTX_RULE0EN_SHIFT      3
#define E4_MSTORM_ETH_CONN_AG_CTX_RULE1EN_MASK       0x1 /* rule1en */
#define E4_MSTORM_ETH_CONN_AG_CTX_RULE1EN_SHIFT      4
#define E4_MSTORM_ETH_CONN_AG_CTX_RULE2EN_MASK       0x1 /* rule2en */
#define E4_MSTORM_ETH_CONN_AG_CTX_RULE2EN_SHIFT      5
#define E4_MSTORM_ETH_CONN_AG_CTX_RULE3EN_MASK       0x1 /* rule3en */
#define E4_MSTORM_ETH_CONN_AG_CTX_RULE3EN_SHIFT      6
#define E4_MSTORM_ETH_CONN_AG_CTX_RULE4EN_MASK       0x1 /* rule4en */
#define E4_MSTORM_ETH_CONN_AG_CTX_RULE4EN_SHIFT      7
	__le16 word0 /* word0 */;
	__le16 word1 /* word1 */;
	__le32 reg0 /* reg0 */;
	__le32 reg1 /* reg1 */;
};





struct e4_xstorm_eth_hw_conn_ag_ctx {
	u8 reserved0 /* cdu_validation */;
	u8 eth_state /* state */;
	u8 flags0;
/* exist_in_qm0 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_EXIST_IN_QM0_MASK            0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_EXIST_IN_QM0_SHIFT           0
/* exist_in_qm1 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED1_MASK               0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED1_SHIFT              1
/* exist_in_qm2 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED2_MASK               0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED2_SHIFT              2
/* exist_in_qm3 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_EXIST_IN_QM3_MASK            0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_EXIST_IN_QM3_SHIFT           3
/* bit4 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED3_MASK               0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED3_SHIFT              4
/* cf_array_active */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED4_MASK               0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED4_SHIFT              5
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED5_MASK               0x1 /* bit6 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED5_SHIFT              6
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED6_MASK               0x1 /* bit7 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED6_SHIFT              7
	u8 flags1;
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED7_MASK               0x1 /* bit8 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED7_SHIFT              0
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED8_MASK               0x1 /* bit9 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED8_SHIFT              1
/* bit10 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED9_MASK               0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED9_SHIFT              2
/* bit11 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_BIT11_MASK                   0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_BIT11_SHIFT                  3
/* bit12 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_BIT12_MASK                   0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_BIT12_SHIFT                  4
/* bit13 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_BIT13_MASK                   0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_BIT13_SHIFT                  5
/* bit14 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_TX_RULE_ACTIVE_MASK          0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_TX_RULE_ACTIVE_SHIFT         6
/* bit15 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_DQ_CF_ACTIVE_MASK            0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_DQ_CF_ACTIVE_SHIFT           7
	u8 flags2;
/* timer0cf */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF0_MASK                     0x3
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF0_SHIFT                    0
/* timer1cf */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF1_MASK                     0x3
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF1_SHIFT                    2
/* timer2cf */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF2_MASK                     0x3
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF2_SHIFT                    4
/* timer_stop_all */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF3_MASK                     0x3
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF3_SHIFT                    6
	u8 flags3;
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF4_MASK                     0x3 /* cf4 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF4_SHIFT                    0
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF5_MASK                     0x3 /* cf5 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF5_SHIFT                    2
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF6_MASK                     0x3 /* cf6 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF6_SHIFT                    4
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF7_MASK                     0x3 /* cf7 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF7_SHIFT                    6
	u8 flags4;
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF8_MASK                     0x3 /* cf8 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF8_SHIFT                    0
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF9_MASK                     0x3 /* cf9 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF9_SHIFT                    2
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF10_MASK                    0x3 /* cf10 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF10_SHIFT                   4
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF11_MASK                    0x3 /* cf11 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF11_SHIFT                   6
	u8 flags5;
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF12_MASK                    0x3 /* cf12 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF12_SHIFT                   0
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF13_MASK                    0x3 /* cf13 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF13_SHIFT                   2
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF14_MASK                    0x3 /* cf14 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF14_SHIFT                   4
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF15_MASK                    0x3 /* cf15 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF15_SHIFT                   6
	u8 flags6;
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_GO_TO_BD_CONS_CF_MASK        0x3 /* cf16 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_GO_TO_BD_CONS_CF_SHIFT       0
/* cf_array_cf */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_MULTI_UNICAST_CF_MASK        0x3
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_MULTI_UNICAST_CF_SHIFT       2
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_DQ_CF_MASK                   0x3 /* cf18 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_DQ_CF_SHIFT                  4
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_TERMINATE_CF_MASK            0x3 /* cf19 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_TERMINATE_CF_SHIFT           6
	u8 flags7;
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_FLUSH_Q0_MASK                0x3 /* cf20 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_FLUSH_Q0_SHIFT               0
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED10_MASK              0x3 /* cf21 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED10_SHIFT             2
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_SLOW_PATH_MASK               0x3 /* cf22 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_SLOW_PATH_SHIFT              4
/* cf0en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF0EN_MASK                   0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF0EN_SHIFT                  6
/* cf1en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF1EN_MASK                   0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF1EN_SHIFT                  7
	u8 flags8;
/* cf2en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF2EN_MASK                   0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF2EN_SHIFT                  0
/* cf3en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF3EN_MASK                   0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF3EN_SHIFT                  1
/* cf4en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF4EN_MASK                   0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF4EN_SHIFT                  2
/* cf5en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF5EN_MASK                   0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF5EN_SHIFT                  3
/* cf6en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF6EN_MASK                   0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF6EN_SHIFT                  4
/* cf7en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF7EN_MASK                   0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF7EN_SHIFT                  5
/* cf8en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF8EN_MASK                   0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF8EN_SHIFT                  6
/* cf9en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF9EN_MASK                   0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF9EN_SHIFT                  7
	u8 flags9;
/* cf10en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF10EN_MASK                  0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF10EN_SHIFT                 0
/* cf11en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF11EN_MASK                  0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF11EN_SHIFT                 1
/* cf12en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF12EN_MASK                  0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF12EN_SHIFT                 2
/* cf13en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF13EN_MASK                  0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF13EN_SHIFT                 3
/* cf14en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF14EN_MASK                  0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF14EN_SHIFT                 4
/* cf15en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF15EN_MASK                  0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_CF15EN_SHIFT                 5
/* cf16en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_GO_TO_BD_CONS_CF_EN_MASK     0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_GO_TO_BD_CONS_CF_EN_SHIFT    6
/* cf_array_cf_en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_MULTI_UNICAST_CF_EN_MASK     0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_MULTI_UNICAST_CF_EN_SHIFT    7
	u8 flags10;
/* cf18en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_DQ_CF_EN_MASK                0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_DQ_CF_EN_SHIFT               0
/* cf19en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_TERMINATE_CF_EN_MASK         0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_TERMINATE_CF_EN_SHIFT        1
/* cf20en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_FLUSH_Q0_EN_MASK             0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_FLUSH_Q0_EN_SHIFT            2
/* cf21en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED11_MASK              0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED11_SHIFT             3
/* cf22en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_SLOW_PATH_EN_MASK            0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_SLOW_PATH_EN_SHIFT           4
/* cf23en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_TPH_ENABLE_EN_RESERVED_MASK  0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_TPH_ENABLE_EN_RESERVED_SHIFT 5
/* rule0en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED12_MASK              0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED12_SHIFT             6
/* rule1en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED13_MASK              0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED13_SHIFT             7
	u8 flags11;
/* rule2en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED14_MASK              0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED14_SHIFT             0
/* rule3en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED15_MASK              0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RESERVED15_SHIFT             1
/* rule4en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_TX_DEC_RULE_EN_MASK          0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_TX_DEC_RULE_EN_SHIFT         2
/* rule5en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE5EN_MASK                 0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE5EN_SHIFT                3
/* rule6en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE6EN_MASK                 0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE6EN_SHIFT                4
/* rule7en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE7EN_MASK                 0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE7EN_SHIFT                5
/* rule8en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED1_MASK            0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED1_SHIFT           6
/* rule9en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE9EN_MASK                 0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE9EN_SHIFT                7
	u8 flags12;
/* rule10en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE10EN_MASK                0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE10EN_SHIFT               0
/* rule11en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE11EN_MASK                0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE11EN_SHIFT               1
/* rule12en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED2_MASK            0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED2_SHIFT           2
/* rule13en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED3_MASK            0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED3_SHIFT           3
/* rule14en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE14EN_MASK                0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE14EN_SHIFT               4
/* rule15en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE15EN_MASK                0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE15EN_SHIFT               5
/* rule16en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE16EN_MASK                0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE16EN_SHIFT               6
/* rule17en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE17EN_MASK                0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE17EN_SHIFT               7
	u8 flags13;
/* rule18en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE18EN_MASK                0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE18EN_SHIFT               0
/* rule19en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE19EN_MASK                0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_RULE19EN_SHIFT               1
/* rule20en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED4_MASK            0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED4_SHIFT           2
/* rule21en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED5_MASK            0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED5_SHIFT           3
/* rule22en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED6_MASK            0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED6_SHIFT           4
/* rule23en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED7_MASK            0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED7_SHIFT           5
/* rule24en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED8_MASK            0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED8_SHIFT           6
/* rule25en */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED9_MASK            0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_A0_RESERVED9_SHIFT           7
	u8 flags14;
/* bit16 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_EDPM_USE_EXT_HDR_MASK        0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_EDPM_USE_EXT_HDR_SHIFT       0
/* bit17 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_EDPM_SEND_RAW_L3L4_MASK      0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_EDPM_SEND_RAW_L3L4_SHIFT     1
/* bit18 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_EDPM_INBAND_PROP_HDR_MASK    0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_EDPM_INBAND_PROP_HDR_SHIFT   2
/* bit19 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_EDPM_SEND_EXT_TUNNEL_MASK    0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_EDPM_SEND_EXT_TUNNEL_SHIFT   3
/* bit20 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_L2_EDPM_ENABLE_MASK          0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_L2_EDPM_ENABLE_SHIFT         4
/* bit21 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_ROCE_EDPM_ENABLE_MASK        0x1
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_ROCE_EDPM_ENABLE_SHIFT       5
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_TPH_ENABLE_MASK              0x3 /* cf23 */
#define E4_XSTORM_ETH_HW_CONN_AG_CTX_TPH_ENABLE_SHIFT             6
	u8 edpm_event_id /* byte2 */;
	__le16 physical_q0 /* physical_q0 */;
	__le16 e5_reserved1 /* physical_q1 */;
	__le16 edpm_num_bds /* physical_q2 */;
	__le16 tx_bd_cons /* word3 */;
	__le16 tx_bd_prod /* word4 */;
	__le16 updated_qm_pq_id /* word5 */;
	__le16 conn_dpi /* conn_dpi */;
};



/*
 * GFT CAM line struct
 */
struct gft_cam_line {
	__le32 camline;
/* Indication if the line is valid. */
#define GFT_CAM_LINE_VALID_MASK      0x1
#define GFT_CAM_LINE_VALID_SHIFT     0
/* Data bits, the word that compared with the profile key */
#define GFT_CAM_LINE_DATA_MASK       0x3FFF
#define GFT_CAM_LINE_DATA_SHIFT      1
/* Mask bits, indicate the bits in the data that are Dont-Care */
#define GFT_CAM_LINE_MASK_BITS_MASK  0x3FFF
#define GFT_CAM_LINE_MASK_BITS_SHIFT 15
#define GFT_CAM_LINE_RESERVED1_MASK  0x7
#define GFT_CAM_LINE_RESERVED1_SHIFT 29
};


/*
 * GFT CAM line struct (for driversim use)
 */
struct gft_cam_line_mapped {
	__le32 camline;
/* Indication if the line is valid. */
#define GFT_CAM_LINE_MAPPED_VALID_MASK                     0x1
#define GFT_CAM_LINE_MAPPED_VALID_SHIFT                    0
/* use enum gft_profile_ip_version (use enum gft_profile_ip_version) */
#define GFT_CAM_LINE_MAPPED_IP_VERSION_MASK                0x1
#define GFT_CAM_LINE_MAPPED_IP_VERSION_SHIFT               1
/* use enum gft_profile_ip_version (use enum gft_profile_ip_version) */
#define GFT_CAM_LINE_MAPPED_TUNNEL_IP_VERSION_MASK         0x1
#define GFT_CAM_LINE_MAPPED_TUNNEL_IP_VERSION_SHIFT        2
/* use enum gft_profile_upper_protocol_type
 * (use enum gft_profile_upper_protocol_type)
 */
#define GFT_CAM_LINE_MAPPED_UPPER_PROTOCOL_TYPE_MASK       0xF
#define GFT_CAM_LINE_MAPPED_UPPER_PROTOCOL_TYPE_SHIFT      3
/* use enum gft_profile_tunnel_type (use enum gft_profile_tunnel_type) */
#define GFT_CAM_LINE_MAPPED_TUNNEL_TYPE_MASK               0xF
#define GFT_CAM_LINE_MAPPED_TUNNEL_TYPE_SHIFT              7
#define GFT_CAM_LINE_MAPPED_PF_ID_MASK                     0xF
#define GFT_CAM_LINE_MAPPED_PF_ID_SHIFT                    11
/* use enum gft_profile_ip_version (use enum gft_profile_ip_version) */
#define GFT_CAM_LINE_MAPPED_IP_VERSION_MASK_MASK           0x1
#define GFT_CAM_LINE_MAPPED_IP_VERSION_MASK_SHIFT          15
/* use enum gft_profile_ip_version (use enum gft_profile_ip_version) */
#define GFT_CAM_LINE_MAPPED_TUNNEL_IP_VERSION_MASK_MASK    0x1
#define GFT_CAM_LINE_MAPPED_TUNNEL_IP_VERSION_MASK_SHIFT   16
/* use enum gft_profile_upper_protocol_type
 * (use enum gft_profile_upper_protocol_type)
 */
#define GFT_CAM_LINE_MAPPED_UPPER_PROTOCOL_TYPE_MASK_MASK  0xF
#define GFT_CAM_LINE_MAPPED_UPPER_PROTOCOL_TYPE_MASK_SHIFT 17
/* use enum gft_profile_tunnel_type (use enum gft_profile_tunnel_type) */
#define GFT_CAM_LINE_MAPPED_TUNNEL_TYPE_MASK_MASK          0xF
#define GFT_CAM_LINE_MAPPED_TUNNEL_TYPE_MASK_SHIFT         21
#define GFT_CAM_LINE_MAPPED_PF_ID_MASK_MASK                0xF
#define GFT_CAM_LINE_MAPPED_PF_ID_MASK_SHIFT               25
#define GFT_CAM_LINE_MAPPED_RESERVED1_MASK                 0x7
#define GFT_CAM_LINE_MAPPED_RESERVED1_SHIFT                29
};


union gft_cam_line_union {
	struct gft_cam_line cam_line;
	struct gft_cam_line_mapped cam_line_mapped;
};


/*
 * Used in gft_profile_key: Indication for ip version
 */
enum gft_profile_ip_version {
	GFT_PROFILE_IPV4 = 0,
	GFT_PROFILE_IPV6 = 1,
	MAX_GFT_PROFILE_IP_VERSION
};


/*
 * Profile key stucr fot GFT logic in Prs
 */
struct gft_profile_key {
	__le16 profile_key;
/* use enum gft_profile_ip_version (use enum gft_profile_ip_version) */
#define GFT_PROFILE_KEY_IP_VERSION_MASK           0x1
#define GFT_PROFILE_KEY_IP_VERSION_SHIFT          0
/* use enum gft_profile_ip_version (use enum gft_profile_ip_version) */
#define GFT_PROFILE_KEY_TUNNEL_IP_VERSION_MASK    0x1
#define GFT_PROFILE_KEY_TUNNEL_IP_VERSION_SHIFT   1
/* use enum gft_profile_upper_protocol_type
 * (use enum gft_profile_upper_protocol_type)
 */
#define GFT_PROFILE_KEY_UPPER_PROTOCOL_TYPE_MASK  0xF
#define GFT_PROFILE_KEY_UPPER_PROTOCOL_TYPE_SHIFT 2
/* use enum gft_profile_tunnel_type (use enum gft_profile_tunnel_type) */
#define GFT_PROFILE_KEY_TUNNEL_TYPE_MASK          0xF
#define GFT_PROFILE_KEY_TUNNEL_TYPE_SHIFT         6
#define GFT_PROFILE_KEY_PF_ID_MASK                0xF
#define GFT_PROFILE_KEY_PF_ID_SHIFT               10
#define GFT_PROFILE_KEY_RESERVED0_MASK            0x3
#define GFT_PROFILE_KEY_RESERVED0_SHIFT           14
};


/*
 * Used in gft_profile_key: Indication for tunnel type
 */
enum gft_profile_tunnel_type {
	GFT_PROFILE_NO_TUNNEL = 0,
	GFT_PROFILE_VXLAN_TUNNEL = 1,
	GFT_PROFILE_GRE_MAC_OR_NVGRE_TUNNEL = 2,
	GFT_PROFILE_GRE_IP_TUNNEL = 3,
	GFT_PROFILE_GENEVE_MAC_TUNNEL = 4,
	GFT_PROFILE_GENEVE_IP_TUNNEL = 5,
	MAX_GFT_PROFILE_TUNNEL_TYPE
};


/*
 * Used in gft_profile_key: Indication for protocol type
 */
enum gft_profile_upper_protocol_type {
	GFT_PROFILE_ROCE_PROTOCOL = 0,
	GFT_PROFILE_RROCE_PROTOCOL = 1,
	GFT_PROFILE_FCOE_PROTOCOL = 2,
	GFT_PROFILE_ICMP_PROTOCOL = 3,
	GFT_PROFILE_ARP_PROTOCOL = 4,
	GFT_PROFILE_USER_TCP_SRC_PORT_1_INNER = 5,
	GFT_PROFILE_USER_TCP_DST_PORT_1_INNER = 6,
	GFT_PROFILE_TCP_PROTOCOL = 7,
	GFT_PROFILE_USER_UDP_DST_PORT_1_INNER = 8,
	GFT_PROFILE_USER_UDP_DST_PORT_2_OUTER = 9,
	GFT_PROFILE_UDP_PROTOCOL = 10,
	GFT_PROFILE_USER_IP_1_INNER = 11,
	GFT_PROFILE_USER_IP_2_OUTER = 12,
	GFT_PROFILE_USER_ETH_1_INNER = 13,
	GFT_PROFILE_USER_ETH_2_OUTER = 14,
	GFT_PROFILE_RAW = 15,
	MAX_GFT_PROFILE_UPPER_PROTOCOL_TYPE
};


/*
 * GFT RAM line struct
 */
struct gft_ram_line {
	__le32 lo;
#define GFT_RAM_LINE_VLAN_SELECT_MASK              0x3
#define GFT_RAM_LINE_VLAN_SELECT_SHIFT             0
#define GFT_RAM_LINE_TUNNEL_ENTROPHY_MASK          0x1
#define GFT_RAM_LINE_TUNNEL_ENTROPHY_SHIFT         2
#define GFT_RAM_LINE_TUNNEL_TTL_EQUAL_ONE_MASK     0x1
#define GFT_RAM_LINE_TUNNEL_TTL_EQUAL_ONE_SHIFT    3
#define GFT_RAM_LINE_TUNNEL_TTL_MASK               0x1
#define GFT_RAM_LINE_TUNNEL_TTL_SHIFT              4
#define GFT_RAM_LINE_TUNNEL_ETHERTYPE_MASK         0x1
#define GFT_RAM_LINE_TUNNEL_ETHERTYPE_SHIFT        5
#define GFT_RAM_LINE_TUNNEL_DST_PORT_MASK          0x1
#define GFT_RAM_LINE_TUNNEL_DST_PORT_SHIFT         6
#define GFT_RAM_LINE_TUNNEL_SRC_PORT_MASK          0x1
#define GFT_RAM_LINE_TUNNEL_SRC_PORT_SHIFT         7
#define GFT_RAM_LINE_TUNNEL_DSCP_MASK              0x1
#define GFT_RAM_LINE_TUNNEL_DSCP_SHIFT             8
#define GFT_RAM_LINE_TUNNEL_OVER_IP_PROTOCOL_MASK  0x1
#define GFT_RAM_LINE_TUNNEL_OVER_IP_PROTOCOL_SHIFT 9
#define GFT_RAM_LINE_TUNNEL_DST_IP_MASK            0x1
#define GFT_RAM_LINE_TUNNEL_DST_IP_SHIFT           10
#define GFT_RAM_LINE_TUNNEL_SRC_IP_MASK            0x1
#define GFT_RAM_LINE_TUNNEL_SRC_IP_SHIFT           11
#define GFT_RAM_LINE_TUNNEL_PRIORITY_MASK          0x1
#define GFT_RAM_LINE_TUNNEL_PRIORITY_SHIFT         12
#define GFT_RAM_LINE_TUNNEL_PROVIDER_VLAN_MASK     0x1
#define GFT_RAM_LINE_TUNNEL_PROVIDER_VLAN_SHIFT    13
#define GFT_RAM_LINE_TUNNEL_VLAN_MASK              0x1
#define GFT_RAM_LINE_TUNNEL_VLAN_SHIFT             14
#define GFT_RAM_LINE_TUNNEL_DST_MAC_MASK           0x1
#define GFT_RAM_LINE_TUNNEL_DST_MAC_SHIFT          15
#define GFT_RAM_LINE_TUNNEL_SRC_MAC_MASK           0x1
#define GFT_RAM_LINE_TUNNEL_SRC_MAC_SHIFT          16
#define GFT_RAM_LINE_TTL_EQUAL_ONE_MASK            0x1
#define GFT_RAM_LINE_TTL_EQUAL_ONE_SHIFT           17
#define GFT_RAM_LINE_TTL_MASK                      0x1
#define GFT_RAM_LINE_TTL_SHIFT                     18
#define GFT_RAM_LINE_ETHERTYPE_MASK                0x1
#define GFT_RAM_LINE_ETHERTYPE_SHIFT               19
#define GFT_RAM_LINE_RESERVED0_MASK                0x1
#define GFT_RAM_LINE_RESERVED0_SHIFT               20
#define GFT_RAM_LINE_TCP_FLAG_FIN_MASK             0x1
#define GFT_RAM_LINE_TCP_FLAG_FIN_SHIFT            21
#define GFT_RAM_LINE_TCP_FLAG_SYN_MASK             0x1
#define GFT_RAM_LINE_TCP_FLAG_SYN_SHIFT            22
#define GFT_RAM_LINE_TCP_FLAG_RST_MASK             0x1
#define GFT_RAM_LINE_TCP_FLAG_RST_SHIFT            23
#define GFT_RAM_LINE_TCP_FLAG_PSH_MASK             0x1
#define GFT_RAM_LINE_TCP_FLAG_PSH_SHIFT            24
#define GFT_RAM_LINE_TCP_FLAG_ACK_MASK             0x1
#define GFT_RAM_LINE_TCP_FLAG_ACK_SHIFT            25
#define GFT_RAM_LINE_TCP_FLAG_URG_MASK             0x1
#define GFT_RAM_LINE_TCP_FLAG_URG_SHIFT            26
#define GFT_RAM_LINE_TCP_FLAG_ECE_MASK             0x1
#define GFT_RAM_LINE_TCP_FLAG_ECE_SHIFT            27
#define GFT_RAM_LINE_TCP_FLAG_CWR_MASK             0x1
#define GFT_RAM_LINE_TCP_FLAG_CWR_SHIFT            28
#define GFT_RAM_LINE_TCP_FLAG_NS_MASK              0x1
#define GFT_RAM_LINE_TCP_FLAG_NS_SHIFT             29
#define GFT_RAM_LINE_DST_PORT_MASK                 0x1
#define GFT_RAM_LINE_DST_PORT_SHIFT                30
#define GFT_RAM_LINE_SRC_PORT_MASK                 0x1U
#define GFT_RAM_LINE_SRC_PORT_SHIFT                31
	__le32 hi;
#define GFT_RAM_LINE_DSCP_MASK                     0x1
#define GFT_RAM_LINE_DSCP_SHIFT                    0
#define GFT_RAM_LINE_OVER_IP_PROTOCOL_MASK         0x1
#define GFT_RAM_LINE_OVER_IP_PROTOCOL_SHIFT        1
#define GFT_RAM_LINE_DST_IP_MASK                   0x1
#define GFT_RAM_LINE_DST_IP_SHIFT                  2
#define GFT_RAM_LINE_SRC_IP_MASK                   0x1
#define GFT_RAM_LINE_SRC_IP_SHIFT                  3
#define GFT_RAM_LINE_PRIORITY_MASK                 0x1
#define GFT_RAM_LINE_PRIORITY_SHIFT                4
#define GFT_RAM_LINE_PROVIDER_VLAN_MASK            0x1
#define GFT_RAM_LINE_PROVIDER_VLAN_SHIFT           5
#define GFT_RAM_LINE_VLAN_MASK                     0x1
#define GFT_RAM_LINE_VLAN_SHIFT                    6
#define GFT_RAM_LINE_DST_MAC_MASK                  0x1
#define GFT_RAM_LINE_DST_MAC_SHIFT                 7
#define GFT_RAM_LINE_SRC_MAC_MASK                  0x1
#define GFT_RAM_LINE_SRC_MAC_SHIFT                 8
#define GFT_RAM_LINE_TENANT_ID_MASK                0x1
#define GFT_RAM_LINE_TENANT_ID_SHIFT               9
#define GFT_RAM_LINE_RESERVED1_MASK                0x3FFFFF
#define GFT_RAM_LINE_RESERVED1_SHIFT               10
};


/*
 * Used in the first 2 bits for gft_ram_line: Indication for vlan mask
 */
enum gft_vlan_select {
	INNER_PROVIDER_VLAN = 0,
	INNER_VLAN = 1,
	OUTER_PROVIDER_VLAN = 2,
	OUTER_VLAN = 3,
	MAX_GFT_VLAN_SELECT
};


#endif /* __ECORE_HSI_ETH__ */