| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062 |
- // SPDX-License-Identifier: BSD-3-Clause
- /* Copyright (C) 2023 Microchip Technology Inc. and its subsidiaries.
- * Microchip VCAP test model interface for kunit testing
- */
- /* This file is autogenerated by cml-utils 2023-02-10 11:16:00 +0100.
- * Commit ID: c30fb4bf0281cd4a7133bdab6682f9e43c872ada
- */
- #include <linux/types.h>
- #include <linux/kernel.h>
- #include "vcap_api.h"
- #include "vcap_model_kunit.h"
- /* keyfields */
- static const struct vcap_field is0_ll_full_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 2,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 2,
- .width = 1,
- },
- [VCAP_KF_IF_IGR_PORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 3,
- .width = 7,
- },
- [VCAP_KF_8021Q_VLAN_TAGS] = {
- .type = VCAP_FIELD_U32,
- .offset = 10,
- .width = 3,
- },
- [VCAP_KF_8021Q_TPID0] = {
- .type = VCAP_FIELD_U32,
- .offset = 13,
- .width = 3,
- },
- [VCAP_KF_8021Q_PCP0] = {
- .type = VCAP_FIELD_U32,
- .offset = 16,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI0] = {
- .type = VCAP_FIELD_BIT,
- .offset = 19,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID0] = {
- .type = VCAP_FIELD_U32,
- .offset = 20,
- .width = 12,
- },
- [VCAP_KF_8021Q_TPID1] = {
- .type = VCAP_FIELD_U32,
- .offset = 32,
- .width = 3,
- },
- [VCAP_KF_8021Q_PCP1] = {
- .type = VCAP_FIELD_U32,
- .offset = 35,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI1] = {
- .type = VCAP_FIELD_BIT,
- .offset = 38,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID1] = {
- .type = VCAP_FIELD_U32,
- .offset = 39,
- .width = 12,
- },
- [VCAP_KF_8021Q_TPID2] = {
- .type = VCAP_FIELD_U32,
- .offset = 51,
- .width = 3,
- },
- [VCAP_KF_8021Q_PCP2] = {
- .type = VCAP_FIELD_U32,
- .offset = 54,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI2] = {
- .type = VCAP_FIELD_BIT,
- .offset = 57,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID2] = {
- .type = VCAP_FIELD_U32,
- .offset = 58,
- .width = 12,
- },
- [VCAP_KF_L2_DMAC] = {
- .type = VCAP_FIELD_U48,
- .offset = 70,
- .width = 48,
- },
- [VCAP_KF_L2_SMAC] = {
- .type = VCAP_FIELD_U48,
- .offset = 118,
- .width = 48,
- },
- [VCAP_KF_ETYPE_LEN_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 166,
- .width = 1,
- },
- [VCAP_KF_ETYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 167,
- .width = 16,
- },
- [VCAP_KF_IP_SNAP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 183,
- .width = 1,
- },
- [VCAP_KF_IP4_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 184,
- .width = 1,
- },
- [VCAP_KF_L3_FRAGMENT_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 185,
- .width = 2,
- },
- [VCAP_KF_L3_FRAG_INVLD_L4_LEN] = {
- .type = VCAP_FIELD_BIT,
- .offset = 187,
- .width = 1,
- },
- [VCAP_KF_L3_OPTIONS_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 188,
- .width = 1,
- },
- [VCAP_KF_L3_DSCP] = {
- .type = VCAP_FIELD_U32,
- .offset = 189,
- .width = 6,
- },
- [VCAP_KF_L3_IP4_DIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 195,
- .width = 32,
- },
- [VCAP_KF_L3_IP4_SIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 227,
- .width = 32,
- },
- [VCAP_KF_TCP_UDP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 259,
- .width = 1,
- },
- [VCAP_KF_TCP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 260,
- .width = 1,
- },
- [VCAP_KF_L4_SPORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 261,
- .width = 16,
- },
- [VCAP_KF_L4_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 277,
- .width = 8,
- },
- };
- static const struct vcap_field is0_normal_7tuple_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_BIT,
- .offset = 0,
- .width = 1,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 1,
- .width = 1,
- },
- [VCAP_KF_LOOKUP_GEN_IDX_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 2,
- .width = 2,
- },
- [VCAP_KF_LOOKUP_GEN_IDX] = {
- .type = VCAP_FIELD_U32,
- .offset = 4,
- .width = 12,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 16,
- .width = 2,
- },
- [VCAP_KF_IF_IGR_PORT_MASK] = {
- .type = VCAP_FIELD_U72,
- .offset = 18,
- .width = 65,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 83,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 84,
- .width = 1,
- },
- [VCAP_KF_8021Q_VLAN_TAGS] = {
- .type = VCAP_FIELD_U32,
- .offset = 85,
- .width = 3,
- },
- [VCAP_KF_8021Q_TPID0] = {
- .type = VCAP_FIELD_U32,
- .offset = 88,
- .width = 3,
- },
- [VCAP_KF_8021Q_PCP0] = {
- .type = VCAP_FIELD_U32,
- .offset = 91,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI0] = {
- .type = VCAP_FIELD_BIT,
- .offset = 94,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID0] = {
- .type = VCAP_FIELD_U32,
- .offset = 95,
- .width = 12,
- },
- [VCAP_KF_8021Q_TPID1] = {
- .type = VCAP_FIELD_U32,
- .offset = 107,
- .width = 3,
- },
- [VCAP_KF_8021Q_PCP1] = {
- .type = VCAP_FIELD_U32,
- .offset = 110,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI1] = {
- .type = VCAP_FIELD_BIT,
- .offset = 113,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID1] = {
- .type = VCAP_FIELD_U32,
- .offset = 114,
- .width = 12,
- },
- [VCAP_KF_8021Q_TPID2] = {
- .type = VCAP_FIELD_U32,
- .offset = 126,
- .width = 3,
- },
- [VCAP_KF_8021Q_PCP2] = {
- .type = VCAP_FIELD_U32,
- .offset = 129,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI2] = {
- .type = VCAP_FIELD_BIT,
- .offset = 132,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID2] = {
- .type = VCAP_FIELD_U32,
- .offset = 133,
- .width = 12,
- },
- [VCAP_KF_L2_DMAC] = {
- .type = VCAP_FIELD_U48,
- .offset = 145,
- .width = 48,
- },
- [VCAP_KF_L2_SMAC] = {
- .type = VCAP_FIELD_U48,
- .offset = 193,
- .width = 48,
- },
- [VCAP_KF_IP_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 241,
- .width = 1,
- },
- [VCAP_KF_ETYPE_LEN_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 242,
- .width = 1,
- },
- [VCAP_KF_ETYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 243,
- .width = 16,
- },
- [VCAP_KF_IP_SNAP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 259,
- .width = 1,
- },
- [VCAP_KF_IP4_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 260,
- .width = 1,
- },
- [VCAP_KF_L3_FRAGMENT_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 261,
- .width = 2,
- },
- [VCAP_KF_L3_FRAG_INVLD_L4_LEN] = {
- .type = VCAP_FIELD_BIT,
- .offset = 263,
- .width = 1,
- },
- [VCAP_KF_L3_OPTIONS_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 264,
- .width = 1,
- },
- [VCAP_KF_L3_DSCP] = {
- .type = VCAP_FIELD_U32,
- .offset = 265,
- .width = 6,
- },
- [VCAP_KF_L3_IP6_DIP] = {
- .type = VCAP_FIELD_U128,
- .offset = 271,
- .width = 128,
- },
- [VCAP_KF_L3_IP6_SIP] = {
- .type = VCAP_FIELD_U128,
- .offset = 399,
- .width = 128,
- },
- [VCAP_KF_TCP_UDP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 527,
- .width = 1,
- },
- [VCAP_KF_TCP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 528,
- .width = 1,
- },
- [VCAP_KF_L4_SPORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 529,
- .width = 16,
- },
- [VCAP_KF_L4_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 545,
- .width = 8,
- },
- };
- static const struct vcap_field is0_normal_5tuple_ip4_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 2,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 2,
- .width = 1,
- },
- [VCAP_KF_LOOKUP_GEN_IDX_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 3,
- .width = 2,
- },
- [VCAP_KF_LOOKUP_GEN_IDX] = {
- .type = VCAP_FIELD_U32,
- .offset = 5,
- .width = 12,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 17,
- .width = 2,
- },
- [VCAP_KF_IF_IGR_PORT_MASK] = {
- .type = VCAP_FIELD_U72,
- .offset = 19,
- .width = 65,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 84,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 85,
- .width = 1,
- },
- [VCAP_KF_8021Q_VLAN_TAGS] = {
- .type = VCAP_FIELD_U32,
- .offset = 86,
- .width = 3,
- },
- [VCAP_KF_8021Q_TPID0] = {
- .type = VCAP_FIELD_U32,
- .offset = 89,
- .width = 3,
- },
- [VCAP_KF_8021Q_PCP0] = {
- .type = VCAP_FIELD_U32,
- .offset = 92,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI0] = {
- .type = VCAP_FIELD_BIT,
- .offset = 95,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID0] = {
- .type = VCAP_FIELD_U32,
- .offset = 96,
- .width = 12,
- },
- [VCAP_KF_8021Q_TPID1] = {
- .type = VCAP_FIELD_U32,
- .offset = 108,
- .width = 3,
- },
- [VCAP_KF_8021Q_PCP1] = {
- .type = VCAP_FIELD_U32,
- .offset = 111,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI1] = {
- .type = VCAP_FIELD_BIT,
- .offset = 114,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID1] = {
- .type = VCAP_FIELD_U32,
- .offset = 115,
- .width = 12,
- },
- [VCAP_KF_8021Q_TPID2] = {
- .type = VCAP_FIELD_U32,
- .offset = 127,
- .width = 3,
- },
- [VCAP_KF_8021Q_PCP2] = {
- .type = VCAP_FIELD_U32,
- .offset = 130,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI2] = {
- .type = VCAP_FIELD_BIT,
- .offset = 133,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID2] = {
- .type = VCAP_FIELD_U32,
- .offset = 134,
- .width = 12,
- },
- [VCAP_KF_IP_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 146,
- .width = 1,
- },
- [VCAP_KF_IP4_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 147,
- .width = 1,
- },
- [VCAP_KF_L3_FRAGMENT_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 148,
- .width = 2,
- },
- [VCAP_KF_L3_FRAG_INVLD_L4_LEN] = {
- .type = VCAP_FIELD_BIT,
- .offset = 150,
- .width = 1,
- },
- [VCAP_KF_L3_OPTIONS_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 151,
- .width = 1,
- },
- [VCAP_KF_L3_DSCP] = {
- .type = VCAP_FIELD_U32,
- .offset = 152,
- .width = 6,
- },
- [VCAP_KF_L3_IP4_DIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 158,
- .width = 32,
- },
- [VCAP_KF_L3_IP4_SIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 190,
- .width = 32,
- },
- [VCAP_KF_L3_IP_PROTO] = {
- .type = VCAP_FIELD_U32,
- .offset = 222,
- .width = 8,
- },
- [VCAP_KF_TCP_UDP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 230,
- .width = 1,
- },
- [VCAP_KF_TCP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 231,
- .width = 1,
- },
- [VCAP_KF_L4_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 232,
- .width = 8,
- },
- [VCAP_KF_IP_PAYLOAD_5TUPLE] = {
- .type = VCAP_FIELD_U32,
- .offset = 240,
- .width = 32,
- },
- };
- static const struct vcap_field is0_pure_5tuple_ip4_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 2,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 2,
- .width = 1,
- },
- [VCAP_KF_LOOKUP_GEN_IDX_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 3,
- .width = 2,
- },
- [VCAP_KF_LOOKUP_GEN_IDX] = {
- .type = VCAP_FIELD_U32,
- .offset = 5,
- .width = 12,
- },
- [VCAP_KF_L3_FRAGMENT_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 17,
- .width = 2,
- },
- [VCAP_KF_L3_FRAG_INVLD_L4_LEN] = {
- .type = VCAP_FIELD_BIT,
- .offset = 19,
- .width = 1,
- },
- [VCAP_KF_L3_OPTIONS_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 20,
- .width = 1,
- },
- [VCAP_KF_L3_DSCP] = {
- .type = VCAP_FIELD_U32,
- .offset = 21,
- .width = 6,
- },
- [VCAP_KF_L3_IP4_DIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 27,
- .width = 32,
- },
- [VCAP_KF_L3_IP4_SIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 59,
- .width = 32,
- },
- [VCAP_KF_L3_IP_PROTO] = {
- .type = VCAP_FIELD_U32,
- .offset = 91,
- .width = 8,
- },
- [VCAP_KF_L4_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 99,
- .width = 8,
- },
- [VCAP_KF_IP_PAYLOAD_5TUPLE] = {
- .type = VCAP_FIELD_U32,
- .offset = 107,
- .width = 32,
- },
- };
- static const struct vcap_field is0_etag_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 2,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 2,
- .width = 1,
- },
- [VCAP_KF_IF_IGR_PORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 3,
- .width = 7,
- },
- [VCAP_KF_8021BR_E_TAGGED] = {
- .type = VCAP_FIELD_BIT,
- .offset = 10,
- .width = 1,
- },
- [VCAP_KF_8021BR_GRP] = {
- .type = VCAP_FIELD_U32,
- .offset = 11,
- .width = 2,
- },
- [VCAP_KF_8021BR_ECID_EXT] = {
- .type = VCAP_FIELD_U32,
- .offset = 13,
- .width = 8,
- },
- [VCAP_KF_8021BR_ECID_BASE] = {
- .type = VCAP_FIELD_U32,
- .offset = 21,
- .width = 12,
- },
- [VCAP_KF_8021BR_IGR_ECID_EXT] = {
- .type = VCAP_FIELD_U32,
- .offset = 33,
- .width = 8,
- },
- [VCAP_KF_8021BR_IGR_ECID_BASE] = {
- .type = VCAP_FIELD_U32,
- .offset = 41,
- .width = 12,
- },
- };
- static const struct vcap_field is2_mac_etype_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 4,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 4,
- .width = 1,
- },
- [VCAP_KF_LOOKUP_PAG] = {
- .type = VCAP_FIELD_U32,
- .offset = 5,
- .width = 8,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_L3] = {
- .type = VCAP_FIELD_BIT,
- .offset = 13,
- .width = 1,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 14,
- .width = 4,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 18,
- .width = 2,
- },
- [VCAP_KF_IF_IGR_PORT_MASK] = {
- .type = VCAP_FIELD_U32,
- .offset = 20,
- .width = 32,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 52,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 53,
- .width = 1,
- },
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 54,
- .width = 1,
- },
- [VCAP_KF_ISDX_GT0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 55,
- .width = 1,
- },
- [VCAP_KF_ISDX_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 56,
- .width = 12,
- },
- [VCAP_KF_8021Q_VID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 68,
- .width = 13,
- },
- [VCAP_KF_8021Q_DEI_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 81,
- .width = 1,
- },
- [VCAP_KF_8021Q_PCP_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 82,
- .width = 3,
- },
- [VCAP_KF_L2_FWD_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 85,
- .width = 1,
- },
- [VCAP_KF_L3_RT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 88,
- .width = 1,
- },
- [VCAP_KF_L3_DST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 89,
- .width = 1,
- },
- [VCAP_KF_L2_DMAC] = {
- .type = VCAP_FIELD_U48,
- .offset = 90,
- .width = 48,
- },
- [VCAP_KF_L2_SMAC] = {
- .type = VCAP_FIELD_U48,
- .offset = 138,
- .width = 48,
- },
- [VCAP_KF_ETYPE_LEN_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 186,
- .width = 1,
- },
- [VCAP_KF_ETYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 187,
- .width = 16,
- },
- [VCAP_KF_L2_PAYLOAD_ETYPE] = {
- .type = VCAP_FIELD_U64,
- .offset = 203,
- .width = 64,
- },
- [VCAP_KF_L4_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 267,
- .width = 16,
- },
- [VCAP_KF_OAM_CCM_CNTS_EQ0] = {
- .type = VCAP_FIELD_BIT,
- .offset = 283,
- .width = 1,
- },
- [VCAP_KF_OAM_Y1731_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 284,
- .width = 1,
- },
- };
- static const struct vcap_field is2_arp_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 4,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 4,
- .width = 1,
- },
- [VCAP_KF_LOOKUP_PAG] = {
- .type = VCAP_FIELD_U32,
- .offset = 5,
- .width = 8,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_L3] = {
- .type = VCAP_FIELD_BIT,
- .offset = 13,
- .width = 1,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 14,
- .width = 4,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 18,
- .width = 2,
- },
- [VCAP_KF_IF_IGR_PORT_MASK] = {
- .type = VCAP_FIELD_U32,
- .offset = 20,
- .width = 32,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 52,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 53,
- .width = 1,
- },
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 54,
- .width = 1,
- },
- [VCAP_KF_ISDX_GT0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 55,
- .width = 1,
- },
- [VCAP_KF_ISDX_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 56,
- .width = 12,
- },
- [VCAP_KF_8021Q_VID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 68,
- .width = 13,
- },
- [VCAP_KF_8021Q_DEI_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 81,
- .width = 1,
- },
- [VCAP_KF_8021Q_PCP_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 82,
- .width = 3,
- },
- [VCAP_KF_L2_FWD_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 85,
- .width = 1,
- },
- [VCAP_KF_L2_SMAC] = {
- .type = VCAP_FIELD_U48,
- .offset = 86,
- .width = 48,
- },
- [VCAP_KF_ARP_ADDR_SPACE_OK_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 134,
- .width = 1,
- },
- [VCAP_KF_ARP_PROTO_SPACE_OK_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 135,
- .width = 1,
- },
- [VCAP_KF_ARP_LEN_OK_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 136,
- .width = 1,
- },
- [VCAP_KF_ARP_TGT_MATCH_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 137,
- .width = 1,
- },
- [VCAP_KF_ARP_SENDER_MATCH_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 138,
- .width = 1,
- },
- [VCAP_KF_ARP_OPCODE_UNKNOWN_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 139,
- .width = 1,
- },
- [VCAP_KF_ARP_OPCODE] = {
- .type = VCAP_FIELD_U32,
- .offset = 140,
- .width = 2,
- },
- [VCAP_KF_L3_IP4_DIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 142,
- .width = 32,
- },
- [VCAP_KF_L3_IP4_SIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 174,
- .width = 32,
- },
- [VCAP_KF_L3_DIP_EQ_SIP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 206,
- .width = 1,
- },
- [VCAP_KF_L4_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 207,
- .width = 16,
- },
- };
- static const struct vcap_field is2_ip4_tcp_udp_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 4,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 4,
- .width = 1,
- },
- [VCAP_KF_LOOKUP_PAG] = {
- .type = VCAP_FIELD_U32,
- .offset = 5,
- .width = 8,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_L3] = {
- .type = VCAP_FIELD_BIT,
- .offset = 13,
- .width = 1,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 14,
- .width = 4,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 18,
- .width = 2,
- },
- [VCAP_KF_IF_IGR_PORT_MASK] = {
- .type = VCAP_FIELD_U32,
- .offset = 20,
- .width = 32,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 52,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 53,
- .width = 1,
- },
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 54,
- .width = 1,
- },
- [VCAP_KF_ISDX_GT0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 55,
- .width = 1,
- },
- [VCAP_KF_ISDX_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 56,
- .width = 12,
- },
- [VCAP_KF_8021Q_VID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 68,
- .width = 13,
- },
- [VCAP_KF_8021Q_DEI_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 81,
- .width = 1,
- },
- [VCAP_KF_8021Q_PCP_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 82,
- .width = 3,
- },
- [VCAP_KF_L2_FWD_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 85,
- .width = 1,
- },
- [VCAP_KF_L3_RT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 88,
- .width = 1,
- },
- [VCAP_KF_L3_DST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 89,
- .width = 1,
- },
- [VCAP_KF_IP4_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 90,
- .width = 1,
- },
- [VCAP_KF_L3_FRAGMENT_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 91,
- .width = 2,
- },
- [VCAP_KF_L3_FRAG_INVLD_L4_LEN] = {
- .type = VCAP_FIELD_BIT,
- .offset = 93,
- .width = 1,
- },
- [VCAP_KF_L3_OPTIONS_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 94,
- .width = 1,
- },
- [VCAP_KF_L3_TTL_GT0] = {
- .type = VCAP_FIELD_BIT,
- .offset = 95,
- .width = 1,
- },
- [VCAP_KF_L3_TOS] = {
- .type = VCAP_FIELD_U32,
- .offset = 96,
- .width = 8,
- },
- [VCAP_KF_L3_IP4_DIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 104,
- .width = 32,
- },
- [VCAP_KF_L3_IP4_SIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 136,
- .width = 32,
- },
- [VCAP_KF_L3_DIP_EQ_SIP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 168,
- .width = 1,
- },
- [VCAP_KF_TCP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 169,
- .width = 1,
- },
- [VCAP_KF_L4_DPORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 170,
- .width = 16,
- },
- [VCAP_KF_L4_SPORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 186,
- .width = 16,
- },
- [VCAP_KF_L4_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 202,
- .width = 16,
- },
- [VCAP_KF_L4_SPORT_EQ_DPORT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 218,
- .width = 1,
- },
- [VCAP_KF_L4_SEQUENCE_EQ0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 219,
- .width = 1,
- },
- [VCAP_KF_L4_FIN] = {
- .type = VCAP_FIELD_BIT,
- .offset = 220,
- .width = 1,
- },
- [VCAP_KF_L4_SYN] = {
- .type = VCAP_FIELD_BIT,
- .offset = 221,
- .width = 1,
- },
- [VCAP_KF_L4_RST] = {
- .type = VCAP_FIELD_BIT,
- .offset = 222,
- .width = 1,
- },
- [VCAP_KF_L4_PSH] = {
- .type = VCAP_FIELD_BIT,
- .offset = 223,
- .width = 1,
- },
- [VCAP_KF_L4_ACK] = {
- .type = VCAP_FIELD_BIT,
- .offset = 224,
- .width = 1,
- },
- [VCAP_KF_L4_URG] = {
- .type = VCAP_FIELD_BIT,
- .offset = 225,
- .width = 1,
- },
- [VCAP_KF_L4_PAYLOAD] = {
- .type = VCAP_FIELD_U64,
- .offset = 226,
- .width = 64,
- },
- };
- static const struct vcap_field is2_ip4_other_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 4,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 4,
- .width = 1,
- },
- [VCAP_KF_LOOKUP_PAG] = {
- .type = VCAP_FIELD_U32,
- .offset = 5,
- .width = 8,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_L3] = {
- .type = VCAP_FIELD_BIT,
- .offset = 13,
- .width = 1,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 14,
- .width = 4,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 18,
- .width = 2,
- },
- [VCAP_KF_IF_IGR_PORT_MASK] = {
- .type = VCAP_FIELD_U32,
- .offset = 20,
- .width = 32,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 52,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 53,
- .width = 1,
- },
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 54,
- .width = 1,
- },
- [VCAP_KF_ISDX_GT0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 55,
- .width = 1,
- },
- [VCAP_KF_ISDX_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 56,
- .width = 12,
- },
- [VCAP_KF_8021Q_VID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 68,
- .width = 13,
- },
- [VCAP_KF_8021Q_DEI_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 81,
- .width = 1,
- },
- [VCAP_KF_8021Q_PCP_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 82,
- .width = 3,
- },
- [VCAP_KF_L2_FWD_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 85,
- .width = 1,
- },
- [VCAP_KF_L3_RT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 88,
- .width = 1,
- },
- [VCAP_KF_L3_DST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 89,
- .width = 1,
- },
- [VCAP_KF_IP4_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 90,
- .width = 1,
- },
- [VCAP_KF_L3_FRAGMENT_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 91,
- .width = 2,
- },
- [VCAP_KF_L3_FRAG_INVLD_L4_LEN] = {
- .type = VCAP_FIELD_BIT,
- .offset = 93,
- .width = 1,
- },
- [VCAP_KF_L3_OPTIONS_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 94,
- .width = 1,
- },
- [VCAP_KF_L3_TTL_GT0] = {
- .type = VCAP_FIELD_BIT,
- .offset = 95,
- .width = 1,
- },
- [VCAP_KF_L3_TOS] = {
- .type = VCAP_FIELD_U32,
- .offset = 96,
- .width = 8,
- },
- [VCAP_KF_L3_IP4_DIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 104,
- .width = 32,
- },
- [VCAP_KF_L3_IP4_SIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 136,
- .width = 32,
- },
- [VCAP_KF_L3_DIP_EQ_SIP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 168,
- .width = 1,
- },
- [VCAP_KF_L3_IP_PROTO] = {
- .type = VCAP_FIELD_U32,
- .offset = 169,
- .width = 8,
- },
- [VCAP_KF_L4_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 177,
- .width = 16,
- },
- [VCAP_KF_L3_PAYLOAD] = {
- .type = VCAP_FIELD_U112,
- .offset = 193,
- .width = 96,
- },
- };
- static const struct vcap_field is2_ip6_std_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 4,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 4,
- .width = 1,
- },
- [VCAP_KF_LOOKUP_PAG] = {
- .type = VCAP_FIELD_U32,
- .offset = 5,
- .width = 8,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_L3] = {
- .type = VCAP_FIELD_BIT,
- .offset = 13,
- .width = 1,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 14,
- .width = 4,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 18,
- .width = 2,
- },
- [VCAP_KF_IF_IGR_PORT_MASK] = {
- .type = VCAP_FIELD_U32,
- .offset = 20,
- .width = 32,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 52,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 53,
- .width = 1,
- },
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 54,
- .width = 1,
- },
- [VCAP_KF_ISDX_GT0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 55,
- .width = 1,
- },
- [VCAP_KF_ISDX_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 56,
- .width = 12,
- },
- [VCAP_KF_8021Q_VID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 68,
- .width = 13,
- },
- [VCAP_KF_8021Q_DEI_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 81,
- .width = 1,
- },
- [VCAP_KF_8021Q_PCP_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 82,
- .width = 3,
- },
- [VCAP_KF_L2_FWD_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 85,
- .width = 1,
- },
- [VCAP_KF_L3_RT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 88,
- .width = 1,
- },
- [VCAP_KF_L3_TTL_GT0] = {
- .type = VCAP_FIELD_BIT,
- .offset = 90,
- .width = 1,
- },
- [VCAP_KF_L3_IP6_SIP] = {
- .type = VCAP_FIELD_U128,
- .offset = 91,
- .width = 128,
- },
- [VCAP_KF_L3_DIP_EQ_SIP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 219,
- .width = 1,
- },
- [VCAP_KF_L3_IP_PROTO] = {
- .type = VCAP_FIELD_U32,
- .offset = 220,
- .width = 8,
- },
- [VCAP_KF_L4_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 228,
- .width = 16,
- },
- [VCAP_KF_L3_PAYLOAD] = {
- .type = VCAP_FIELD_U48,
- .offset = 244,
- .width = 40,
- },
- };
- static const struct vcap_field is2_ip_7tuple_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 2,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 2,
- .width = 1,
- },
- [VCAP_KF_LOOKUP_PAG] = {
- .type = VCAP_FIELD_U32,
- .offset = 3,
- .width = 8,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_L3] = {
- .type = VCAP_FIELD_BIT,
- .offset = 11,
- .width = 1,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 12,
- .width = 4,
- },
- [VCAP_KF_IF_IGR_PORT_MASK_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 16,
- .width = 2,
- },
- [VCAP_KF_IF_IGR_PORT_MASK] = {
- .type = VCAP_FIELD_U72,
- .offset = 18,
- .width = 65,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 83,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 84,
- .width = 1,
- },
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 85,
- .width = 1,
- },
- [VCAP_KF_ISDX_GT0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 86,
- .width = 1,
- },
- [VCAP_KF_ISDX_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 87,
- .width = 12,
- },
- [VCAP_KF_8021Q_VID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 99,
- .width = 13,
- },
- [VCAP_KF_8021Q_DEI_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 112,
- .width = 1,
- },
- [VCAP_KF_8021Q_PCP_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 113,
- .width = 3,
- },
- [VCAP_KF_L2_FWD_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 116,
- .width = 1,
- },
- [VCAP_KF_L3_RT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 119,
- .width = 1,
- },
- [VCAP_KF_L3_DST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 120,
- .width = 1,
- },
- [VCAP_KF_L2_DMAC] = {
- .type = VCAP_FIELD_U48,
- .offset = 121,
- .width = 48,
- },
- [VCAP_KF_L2_SMAC] = {
- .type = VCAP_FIELD_U48,
- .offset = 169,
- .width = 48,
- },
- [VCAP_KF_IP4_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 217,
- .width = 1,
- },
- [VCAP_KF_L3_TTL_GT0] = {
- .type = VCAP_FIELD_BIT,
- .offset = 218,
- .width = 1,
- },
- [VCAP_KF_L3_TOS] = {
- .type = VCAP_FIELD_U32,
- .offset = 219,
- .width = 8,
- },
- [VCAP_KF_L3_IP6_DIP] = {
- .type = VCAP_FIELD_U128,
- .offset = 227,
- .width = 128,
- },
- [VCAP_KF_L3_IP6_SIP] = {
- .type = VCAP_FIELD_U128,
- .offset = 355,
- .width = 128,
- },
- [VCAP_KF_L3_DIP_EQ_SIP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 483,
- .width = 1,
- },
- [VCAP_KF_TCP_UDP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 484,
- .width = 1,
- },
- [VCAP_KF_TCP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 485,
- .width = 1,
- },
- [VCAP_KF_L4_DPORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 486,
- .width = 16,
- },
- [VCAP_KF_L4_SPORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 502,
- .width = 16,
- },
- [VCAP_KF_L4_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 518,
- .width = 16,
- },
- [VCAP_KF_L4_SPORT_EQ_DPORT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 534,
- .width = 1,
- },
- [VCAP_KF_L4_SEQUENCE_EQ0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 535,
- .width = 1,
- },
- [VCAP_KF_L4_FIN] = {
- .type = VCAP_FIELD_BIT,
- .offset = 536,
- .width = 1,
- },
- [VCAP_KF_L4_SYN] = {
- .type = VCAP_FIELD_BIT,
- .offset = 537,
- .width = 1,
- },
- [VCAP_KF_L4_RST] = {
- .type = VCAP_FIELD_BIT,
- .offset = 538,
- .width = 1,
- },
- [VCAP_KF_L4_PSH] = {
- .type = VCAP_FIELD_BIT,
- .offset = 539,
- .width = 1,
- },
- [VCAP_KF_L4_ACK] = {
- .type = VCAP_FIELD_BIT,
- .offset = 540,
- .width = 1,
- },
- [VCAP_KF_L4_URG] = {
- .type = VCAP_FIELD_BIT,
- .offset = 541,
- .width = 1,
- },
- [VCAP_KF_L4_PAYLOAD] = {
- .type = VCAP_FIELD_U64,
- .offset = 542,
- .width = 64,
- },
- };
- static const struct vcap_field es2_mac_etype_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 3,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 3,
- .width = 1,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 13,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 14,
- .width = 1,
- },
- [VCAP_KF_ISDX_GT0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 15,
- .width = 1,
- },
- [VCAP_KF_ISDX_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 16,
- .width = 12,
- },
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 28,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 29,
- .width = 13,
- },
- [VCAP_KF_IF_EGR_PORT_MASK_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 42,
- .width = 3,
- },
- [VCAP_KF_IF_EGR_PORT_MASK] = {
- .type = VCAP_FIELD_U32,
- .offset = 45,
- .width = 32,
- },
- [VCAP_KF_IF_IGR_PORT_SEL] = {
- .type = VCAP_FIELD_BIT,
- .offset = 77,
- .width = 1,
- },
- [VCAP_KF_IF_IGR_PORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 78,
- .width = 9,
- },
- [VCAP_KF_8021Q_PCP_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 87,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 90,
- .width = 1,
- },
- [VCAP_KF_COSID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 91,
- .width = 3,
- },
- [VCAP_KF_L3_DPL_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 94,
- .width = 1,
- },
- [VCAP_KF_L3_RT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 95,
- .width = 1,
- },
- [VCAP_KF_L2_DMAC] = {
- .type = VCAP_FIELD_U48,
- .offset = 99,
- .width = 48,
- },
- [VCAP_KF_L2_SMAC] = {
- .type = VCAP_FIELD_U48,
- .offset = 147,
- .width = 48,
- },
- [VCAP_KF_ETYPE_LEN_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 195,
- .width = 1,
- },
- [VCAP_KF_ETYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 196,
- .width = 16,
- },
- [VCAP_KF_L2_PAYLOAD_ETYPE] = {
- .type = VCAP_FIELD_U64,
- .offset = 212,
- .width = 64,
- },
- [VCAP_KF_OAM_CCM_CNTS_EQ0] = {
- .type = VCAP_FIELD_BIT,
- .offset = 276,
- .width = 1,
- },
- [VCAP_KF_OAM_Y1731_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 277,
- .width = 1,
- },
- };
- static const struct vcap_field es2_arp_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 3,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 3,
- .width = 1,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 13,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 14,
- .width = 1,
- },
- [VCAP_KF_ISDX_GT0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 15,
- .width = 1,
- },
- [VCAP_KF_ISDX_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 16,
- .width = 12,
- },
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 28,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 29,
- .width = 13,
- },
- [VCAP_KF_IF_EGR_PORT_MASK_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 42,
- .width = 3,
- },
- [VCAP_KF_IF_EGR_PORT_MASK] = {
- .type = VCAP_FIELD_U32,
- .offset = 45,
- .width = 32,
- },
- [VCAP_KF_IF_IGR_PORT_SEL] = {
- .type = VCAP_FIELD_BIT,
- .offset = 77,
- .width = 1,
- },
- [VCAP_KF_IF_IGR_PORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 78,
- .width = 9,
- },
- [VCAP_KF_8021Q_PCP_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 87,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 90,
- .width = 1,
- },
- [VCAP_KF_COSID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 91,
- .width = 3,
- },
- [VCAP_KF_L3_DPL_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 94,
- .width = 1,
- },
- [VCAP_KF_L2_SMAC] = {
- .type = VCAP_FIELD_U48,
- .offset = 98,
- .width = 48,
- },
- [VCAP_KF_ARP_ADDR_SPACE_OK_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 146,
- .width = 1,
- },
- [VCAP_KF_ARP_PROTO_SPACE_OK_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 147,
- .width = 1,
- },
- [VCAP_KF_ARP_LEN_OK_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 148,
- .width = 1,
- },
- [VCAP_KF_ARP_TGT_MATCH_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 149,
- .width = 1,
- },
- [VCAP_KF_ARP_SENDER_MATCH_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 150,
- .width = 1,
- },
- [VCAP_KF_ARP_OPCODE_UNKNOWN_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 151,
- .width = 1,
- },
- [VCAP_KF_ARP_OPCODE] = {
- .type = VCAP_FIELD_U32,
- .offset = 152,
- .width = 2,
- },
- [VCAP_KF_L3_IP4_DIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 154,
- .width = 32,
- },
- [VCAP_KF_L3_IP4_SIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 186,
- .width = 32,
- },
- [VCAP_KF_L3_DIP_EQ_SIP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 218,
- .width = 1,
- },
- };
- static const struct vcap_field es2_ip4_tcp_udp_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 3,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 3,
- .width = 1,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 13,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 14,
- .width = 1,
- },
- [VCAP_KF_ISDX_GT0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 15,
- .width = 1,
- },
- [VCAP_KF_ISDX_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 16,
- .width = 12,
- },
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 28,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 29,
- .width = 13,
- },
- [VCAP_KF_IF_EGR_PORT_MASK_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 42,
- .width = 3,
- },
- [VCAP_KF_IF_EGR_PORT_MASK] = {
- .type = VCAP_FIELD_U32,
- .offset = 45,
- .width = 32,
- },
- [VCAP_KF_IF_IGR_PORT_SEL] = {
- .type = VCAP_FIELD_BIT,
- .offset = 77,
- .width = 1,
- },
- [VCAP_KF_IF_IGR_PORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 78,
- .width = 9,
- },
- [VCAP_KF_8021Q_PCP_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 87,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 90,
- .width = 1,
- },
- [VCAP_KF_COSID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 91,
- .width = 3,
- },
- [VCAP_KF_L3_DPL_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 94,
- .width = 1,
- },
- [VCAP_KF_L3_RT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 95,
- .width = 1,
- },
- [VCAP_KF_IP4_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 99,
- .width = 1,
- },
- [VCAP_KF_L3_FRAGMENT_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 100,
- .width = 2,
- },
- [VCAP_KF_L3_OPTIONS_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 102,
- .width = 1,
- },
- [VCAP_KF_L3_TTL_GT0] = {
- .type = VCAP_FIELD_BIT,
- .offset = 103,
- .width = 1,
- },
- [VCAP_KF_L3_TOS] = {
- .type = VCAP_FIELD_U32,
- .offset = 104,
- .width = 8,
- },
- [VCAP_KF_L3_IP4_DIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 112,
- .width = 32,
- },
- [VCAP_KF_L3_IP4_SIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 144,
- .width = 32,
- },
- [VCAP_KF_L3_DIP_EQ_SIP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 176,
- .width = 1,
- },
- [VCAP_KF_TCP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 177,
- .width = 1,
- },
- [VCAP_KF_L4_DPORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 178,
- .width = 16,
- },
- [VCAP_KF_L4_SPORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 194,
- .width = 16,
- },
- [VCAP_KF_L4_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 210,
- .width = 16,
- },
- [VCAP_KF_L4_SPORT_EQ_DPORT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 226,
- .width = 1,
- },
- [VCAP_KF_L4_SEQUENCE_EQ0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 227,
- .width = 1,
- },
- [VCAP_KF_L4_FIN] = {
- .type = VCAP_FIELD_BIT,
- .offset = 228,
- .width = 1,
- },
- [VCAP_KF_L4_SYN] = {
- .type = VCAP_FIELD_BIT,
- .offset = 229,
- .width = 1,
- },
- [VCAP_KF_L4_RST] = {
- .type = VCAP_FIELD_BIT,
- .offset = 230,
- .width = 1,
- },
- [VCAP_KF_L4_PSH] = {
- .type = VCAP_FIELD_BIT,
- .offset = 231,
- .width = 1,
- },
- [VCAP_KF_L4_ACK] = {
- .type = VCAP_FIELD_BIT,
- .offset = 232,
- .width = 1,
- },
- [VCAP_KF_L4_URG] = {
- .type = VCAP_FIELD_BIT,
- .offset = 233,
- .width = 1,
- },
- [VCAP_KF_L4_PAYLOAD] = {
- .type = VCAP_FIELD_U64,
- .offset = 234,
- .width = 64,
- },
- };
- static const struct vcap_field es2_ip4_other_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 3,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 3,
- .width = 1,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 13,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 14,
- .width = 1,
- },
- [VCAP_KF_ISDX_GT0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 15,
- .width = 1,
- },
- [VCAP_KF_ISDX_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 16,
- .width = 12,
- },
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 28,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 29,
- .width = 13,
- },
- [VCAP_KF_IF_EGR_PORT_MASK_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 42,
- .width = 3,
- },
- [VCAP_KF_IF_EGR_PORT_MASK] = {
- .type = VCAP_FIELD_U32,
- .offset = 45,
- .width = 32,
- },
- [VCAP_KF_IF_IGR_PORT_SEL] = {
- .type = VCAP_FIELD_BIT,
- .offset = 77,
- .width = 1,
- },
- [VCAP_KF_IF_IGR_PORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 78,
- .width = 9,
- },
- [VCAP_KF_8021Q_PCP_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 87,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 90,
- .width = 1,
- },
- [VCAP_KF_COSID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 91,
- .width = 3,
- },
- [VCAP_KF_L3_DPL_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 94,
- .width = 1,
- },
- [VCAP_KF_L3_RT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 95,
- .width = 1,
- },
- [VCAP_KF_IP4_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 99,
- .width = 1,
- },
- [VCAP_KF_L3_FRAGMENT_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 100,
- .width = 2,
- },
- [VCAP_KF_L3_OPTIONS_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 102,
- .width = 1,
- },
- [VCAP_KF_L3_TTL_GT0] = {
- .type = VCAP_FIELD_BIT,
- .offset = 103,
- .width = 1,
- },
- [VCAP_KF_L3_TOS] = {
- .type = VCAP_FIELD_U32,
- .offset = 104,
- .width = 8,
- },
- [VCAP_KF_L3_IP4_DIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 112,
- .width = 32,
- },
- [VCAP_KF_L3_IP4_SIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 144,
- .width = 32,
- },
- [VCAP_KF_L3_DIP_EQ_SIP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 176,
- .width = 1,
- },
- [VCAP_KF_L3_IP_PROTO] = {
- .type = VCAP_FIELD_U32,
- .offset = 177,
- .width = 8,
- },
- [VCAP_KF_L3_PAYLOAD] = {
- .type = VCAP_FIELD_U112,
- .offset = 185,
- .width = 96,
- },
- };
- static const struct vcap_field es2_ip_7tuple_keyfield[] = {
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 0,
- .width = 1,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 10,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 11,
- .width = 1,
- },
- [VCAP_KF_ISDX_GT0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 12,
- .width = 1,
- },
- [VCAP_KF_ISDX_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 13,
- .width = 12,
- },
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 25,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 26,
- .width = 13,
- },
- [VCAP_KF_IF_EGR_PORT_MASK_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 39,
- .width = 3,
- },
- [VCAP_KF_IF_EGR_PORT_MASK] = {
- .type = VCAP_FIELD_U32,
- .offset = 42,
- .width = 32,
- },
- [VCAP_KF_IF_IGR_PORT_SEL] = {
- .type = VCAP_FIELD_BIT,
- .offset = 74,
- .width = 1,
- },
- [VCAP_KF_IF_IGR_PORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 75,
- .width = 9,
- },
- [VCAP_KF_8021Q_PCP_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 84,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 87,
- .width = 1,
- },
- [VCAP_KF_COSID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 88,
- .width = 3,
- },
- [VCAP_KF_L3_DPL_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 91,
- .width = 1,
- },
- [VCAP_KF_L3_RT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 92,
- .width = 1,
- },
- [VCAP_KF_L2_DMAC] = {
- .type = VCAP_FIELD_U48,
- .offset = 96,
- .width = 48,
- },
- [VCAP_KF_L2_SMAC] = {
- .type = VCAP_FIELD_U48,
- .offset = 144,
- .width = 48,
- },
- [VCAP_KF_IP4_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 192,
- .width = 1,
- },
- [VCAP_KF_L3_TTL_GT0] = {
- .type = VCAP_FIELD_BIT,
- .offset = 193,
- .width = 1,
- },
- [VCAP_KF_L3_TOS] = {
- .type = VCAP_FIELD_U32,
- .offset = 194,
- .width = 8,
- },
- [VCAP_KF_L3_IP6_DIP] = {
- .type = VCAP_FIELD_U128,
- .offset = 202,
- .width = 128,
- },
- [VCAP_KF_L3_IP6_SIP] = {
- .type = VCAP_FIELD_U128,
- .offset = 330,
- .width = 128,
- },
- [VCAP_KF_L3_DIP_EQ_SIP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 458,
- .width = 1,
- },
- [VCAP_KF_TCP_UDP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 459,
- .width = 1,
- },
- [VCAP_KF_TCP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 460,
- .width = 1,
- },
- [VCAP_KF_L4_DPORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 461,
- .width = 16,
- },
- [VCAP_KF_L4_SPORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 477,
- .width = 16,
- },
- [VCAP_KF_L4_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 493,
- .width = 16,
- },
- [VCAP_KF_L4_SPORT_EQ_DPORT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 509,
- .width = 1,
- },
- [VCAP_KF_L4_SEQUENCE_EQ0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 510,
- .width = 1,
- },
- [VCAP_KF_L4_FIN] = {
- .type = VCAP_FIELD_BIT,
- .offset = 511,
- .width = 1,
- },
- [VCAP_KF_L4_SYN] = {
- .type = VCAP_FIELD_BIT,
- .offset = 512,
- .width = 1,
- },
- [VCAP_KF_L4_RST] = {
- .type = VCAP_FIELD_BIT,
- .offset = 513,
- .width = 1,
- },
- [VCAP_KF_L4_PSH] = {
- .type = VCAP_FIELD_BIT,
- .offset = 514,
- .width = 1,
- },
- [VCAP_KF_L4_ACK] = {
- .type = VCAP_FIELD_BIT,
- .offset = 515,
- .width = 1,
- },
- [VCAP_KF_L4_URG] = {
- .type = VCAP_FIELD_BIT,
- .offset = 516,
- .width = 1,
- },
- [VCAP_KF_L4_PAYLOAD] = {
- .type = VCAP_FIELD_U64,
- .offset = 517,
- .width = 64,
- },
- };
- static const struct vcap_field es2_ip6_std_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 3,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 3,
- .width = 1,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 13,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 14,
- .width = 1,
- },
- [VCAP_KF_ISDX_GT0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 15,
- .width = 1,
- },
- [VCAP_KF_ISDX_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 16,
- .width = 12,
- },
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 28,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 29,
- .width = 13,
- },
- [VCAP_KF_IF_EGR_PORT_MASK_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 42,
- .width = 3,
- },
- [VCAP_KF_IF_EGR_PORT_MASK] = {
- .type = VCAP_FIELD_U32,
- .offset = 45,
- .width = 32,
- },
- [VCAP_KF_IF_IGR_PORT_SEL] = {
- .type = VCAP_FIELD_BIT,
- .offset = 77,
- .width = 1,
- },
- [VCAP_KF_IF_IGR_PORT] = {
- .type = VCAP_FIELD_U32,
- .offset = 78,
- .width = 9,
- },
- [VCAP_KF_8021Q_PCP_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 87,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 90,
- .width = 1,
- },
- [VCAP_KF_COSID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 91,
- .width = 3,
- },
- [VCAP_KF_L3_DPL_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 94,
- .width = 1,
- },
- [VCAP_KF_L3_RT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 95,
- .width = 1,
- },
- [VCAP_KF_L3_TTL_GT0] = {
- .type = VCAP_FIELD_BIT,
- .offset = 99,
- .width = 1,
- },
- [VCAP_KF_L3_IP6_SIP] = {
- .type = VCAP_FIELD_U128,
- .offset = 100,
- .width = 128,
- },
- [VCAP_KF_L3_DIP_EQ_SIP_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 228,
- .width = 1,
- },
- [VCAP_KF_L3_IP_PROTO] = {
- .type = VCAP_FIELD_U32,
- .offset = 229,
- .width = 8,
- },
- [VCAP_KF_L4_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 237,
- .width = 16,
- },
- [VCAP_KF_L3_PAYLOAD] = {
- .type = VCAP_FIELD_U48,
- .offset = 253,
- .width = 40,
- },
- };
- static const struct vcap_field es2_ip4_vid_keyfield[] = {
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 0,
- .width = 1,
- },
- [VCAP_KF_ACL_GRP_ID] = {
- .type = VCAP_FIELD_U32,
- .offset = 1,
- .width = 8,
- },
- [VCAP_KF_PROT_ACTIVE] = {
- .type = VCAP_FIELD_BIT,
- .offset = 9,
- .width = 1,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 10,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 11,
- .width = 1,
- },
- [VCAP_KF_ISDX_GT0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 12,
- .width = 1,
- },
- [VCAP_KF_ISDX_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 13,
- .width = 12,
- },
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 25,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 26,
- .width = 13,
- },
- [VCAP_KF_8021Q_PCP_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 39,
- .width = 3,
- },
- [VCAP_KF_8021Q_DEI_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 42,
- .width = 1,
- },
- [VCAP_KF_COSID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 43,
- .width = 3,
- },
- [VCAP_KF_L3_DPL_CLS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 46,
- .width = 1,
- },
- [VCAP_KF_L3_RT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 47,
- .width = 1,
- },
- [VCAP_KF_ES0_ISDX_KEY_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 48,
- .width = 1,
- },
- [VCAP_KF_MIRROR_PROBE] = {
- .type = VCAP_FIELD_U32,
- .offset = 49,
- .width = 2,
- },
- [VCAP_KF_IP4_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 51,
- .width = 1,
- },
- [VCAP_KF_L3_IP4_DIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 52,
- .width = 32,
- },
- [VCAP_KF_L3_IP4_SIP] = {
- .type = VCAP_FIELD_U32,
- .offset = 84,
- .width = 32,
- },
- [VCAP_KF_L4_RNG] = {
- .type = VCAP_FIELD_U32,
- .offset = 116,
- .width = 16,
- },
- };
- static const struct vcap_field es2_ip6_vid_keyfield[] = {
- [VCAP_KF_TYPE] = {
- .type = VCAP_FIELD_U32,
- .offset = 0,
- .width = 3,
- },
- [VCAP_KF_LOOKUP_FIRST_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 3,
- .width = 1,
- },
- [VCAP_KF_ACL_GRP_ID] = {
- .type = VCAP_FIELD_U32,
- .offset = 4,
- .width = 8,
- },
- [VCAP_KF_PROT_ACTIVE] = {
- .type = VCAP_FIELD_BIT,
- .offset = 12,
- .width = 1,
- },
- [VCAP_KF_L2_MC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 13,
- .width = 1,
- },
- [VCAP_KF_L2_BC_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 14,
- .width = 1,
- },
- [VCAP_KF_ISDX_GT0_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 15,
- .width = 1,
- },
- [VCAP_KF_ISDX_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 16,
- .width = 12,
- },
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 28,
- .width = 1,
- },
- [VCAP_KF_8021Q_VID_CLS] = {
- .type = VCAP_FIELD_U32,
- .offset = 29,
- .width = 13,
- },
- [VCAP_KF_L3_RT_IS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 42,
- .width = 1,
- },
- [VCAP_KF_L3_IP6_DIP] = {
- .type = VCAP_FIELD_U128,
- .offset = 43,
- .width = 128,
- },
- [VCAP_KF_L3_IP6_SIP] = {
- .type = VCAP_FIELD_U128,
- .offset = 171,
- .width = 128,
- },
- };
- /* keyfield_set */
- static const struct vcap_set is0_keyfield_set[] = {
- [VCAP_KFS_LL_FULL] = {
- .type_id = 0,
- .sw_per_item = 6,
- .sw_cnt = 2,
- },
- [VCAP_KFS_NORMAL_7TUPLE] = {
- .type_id = 0,
- .sw_per_item = 12,
- .sw_cnt = 1,
- },
- [VCAP_KFS_NORMAL_5TUPLE_IP4] = {
- .type_id = 2,
- .sw_per_item = 6,
- .sw_cnt = 2,
- },
- [VCAP_KFS_PURE_5TUPLE_IP4] = {
- .type_id = 2,
- .sw_per_item = 3,
- .sw_cnt = 4,
- },
- [VCAP_KFS_ETAG] = {
- .type_id = 3,
- .sw_per_item = 2,
- .sw_cnt = 6,
- },
- };
- static const struct vcap_set is2_keyfield_set[] = {
- [VCAP_KFS_MAC_ETYPE] = {
- .type_id = 0,
- .sw_per_item = 6,
- .sw_cnt = 2,
- },
- [VCAP_KFS_ARP] = {
- .type_id = 3,
- .sw_per_item = 6,
- .sw_cnt = 2,
- },
- [VCAP_KFS_IP4_TCP_UDP] = {
- .type_id = 4,
- .sw_per_item = 6,
- .sw_cnt = 2,
- },
- [VCAP_KFS_IP4_OTHER] = {
- .type_id = 5,
- .sw_per_item = 6,
- .sw_cnt = 2,
- },
- [VCAP_KFS_IP6_STD] = {
- .type_id = 6,
- .sw_per_item = 6,
- .sw_cnt = 2,
- },
- [VCAP_KFS_IP_7TUPLE] = {
- .type_id = 1,
- .sw_per_item = 12,
- .sw_cnt = 1,
- },
- };
- static const struct vcap_set es2_keyfield_set[] = {
- [VCAP_KFS_MAC_ETYPE] = {
- .type_id = 0,
- .sw_per_item = 6,
- .sw_cnt = 2,
- },
- [VCAP_KFS_ARP] = {
- .type_id = 1,
- .sw_per_item = 6,
- .sw_cnt = 2,
- },
- [VCAP_KFS_IP4_TCP_UDP] = {
- .type_id = 2,
- .sw_per_item = 6,
- .sw_cnt = 2,
- },
- [VCAP_KFS_IP4_OTHER] = {
- .type_id = 3,
- .sw_per_item = 6,
- .sw_cnt = 2,
- },
- [VCAP_KFS_IP_7TUPLE] = {
- .type_id = -1,
- .sw_per_item = 12,
- .sw_cnt = 1,
- },
- [VCAP_KFS_IP6_STD] = {
- .type_id = 4,
- .sw_per_item = 6,
- .sw_cnt = 2,
- },
- [VCAP_KFS_IP4_VID] = {
- .type_id = -1,
- .sw_per_item = 3,
- .sw_cnt = 4,
- },
- [VCAP_KFS_IP6_VID] = {
- .type_id = 5,
- .sw_per_item = 6,
- .sw_cnt = 2,
- },
- };
- /* keyfield_set map */
- static const struct vcap_field *is0_keyfield_set_map[] = {
- [VCAP_KFS_LL_FULL] = is0_ll_full_keyfield,
- [VCAP_KFS_NORMAL_7TUPLE] = is0_normal_7tuple_keyfield,
- [VCAP_KFS_NORMAL_5TUPLE_IP4] = is0_normal_5tuple_ip4_keyfield,
- [VCAP_KFS_PURE_5TUPLE_IP4] = is0_pure_5tuple_ip4_keyfield,
- [VCAP_KFS_ETAG] = is0_etag_keyfield,
- };
- static const struct vcap_field *is2_keyfield_set_map[] = {
- [VCAP_KFS_MAC_ETYPE] = is2_mac_etype_keyfield,
- [VCAP_KFS_ARP] = is2_arp_keyfield,
- [VCAP_KFS_IP4_TCP_UDP] = is2_ip4_tcp_udp_keyfield,
- [VCAP_KFS_IP4_OTHER] = is2_ip4_other_keyfield,
- [VCAP_KFS_IP6_STD] = is2_ip6_std_keyfield,
- [VCAP_KFS_IP_7TUPLE] = is2_ip_7tuple_keyfield,
- };
- static const struct vcap_field *es2_keyfield_set_map[] = {
- [VCAP_KFS_MAC_ETYPE] = es2_mac_etype_keyfield,
- [VCAP_KFS_ARP] = es2_arp_keyfield,
- [VCAP_KFS_IP4_TCP_UDP] = es2_ip4_tcp_udp_keyfield,
- [VCAP_KFS_IP4_OTHER] = es2_ip4_other_keyfield,
- [VCAP_KFS_IP_7TUPLE] = es2_ip_7tuple_keyfield,
- [VCAP_KFS_IP6_STD] = es2_ip6_std_keyfield,
- [VCAP_KFS_IP4_VID] = es2_ip4_vid_keyfield,
- [VCAP_KFS_IP6_VID] = es2_ip6_vid_keyfield,
- };
- /* keyfield_set map sizes */
- static int is0_keyfield_set_map_size[] = {
- [VCAP_KFS_LL_FULL] = ARRAY_SIZE(is0_ll_full_keyfield),
- [VCAP_KFS_NORMAL_7TUPLE] = ARRAY_SIZE(is0_normal_7tuple_keyfield),
- [VCAP_KFS_NORMAL_5TUPLE_IP4] = ARRAY_SIZE(is0_normal_5tuple_ip4_keyfield),
- [VCAP_KFS_PURE_5TUPLE_IP4] = ARRAY_SIZE(is0_pure_5tuple_ip4_keyfield),
- [VCAP_KFS_ETAG] = ARRAY_SIZE(is0_etag_keyfield),
- };
- static int is2_keyfield_set_map_size[] = {
- [VCAP_KFS_MAC_ETYPE] = ARRAY_SIZE(is2_mac_etype_keyfield),
- [VCAP_KFS_ARP] = ARRAY_SIZE(is2_arp_keyfield),
- [VCAP_KFS_IP4_TCP_UDP] = ARRAY_SIZE(is2_ip4_tcp_udp_keyfield),
- [VCAP_KFS_IP4_OTHER] = ARRAY_SIZE(is2_ip4_other_keyfield),
- [VCAP_KFS_IP6_STD] = ARRAY_SIZE(is2_ip6_std_keyfield),
- [VCAP_KFS_IP_7TUPLE] = ARRAY_SIZE(is2_ip_7tuple_keyfield),
- };
- static int es2_keyfield_set_map_size[] = {
- [VCAP_KFS_MAC_ETYPE] = ARRAY_SIZE(es2_mac_etype_keyfield),
- [VCAP_KFS_ARP] = ARRAY_SIZE(es2_arp_keyfield),
- [VCAP_KFS_IP4_TCP_UDP] = ARRAY_SIZE(es2_ip4_tcp_udp_keyfield),
- [VCAP_KFS_IP4_OTHER] = ARRAY_SIZE(es2_ip4_other_keyfield),
- [VCAP_KFS_IP_7TUPLE] = ARRAY_SIZE(es2_ip_7tuple_keyfield),
- [VCAP_KFS_IP6_STD] = ARRAY_SIZE(es2_ip6_std_keyfield),
- [VCAP_KFS_IP4_VID] = ARRAY_SIZE(es2_ip4_vid_keyfield),
- [VCAP_KFS_IP6_VID] = ARRAY_SIZE(es2_ip6_vid_keyfield),
- };
- /* actionfields */
- static const struct vcap_field is0_classification_actionfield[] = {
- [VCAP_AF_TYPE] = {
- .type = VCAP_FIELD_BIT,
- .offset = 0,
- .width = 1,
- },
- [VCAP_AF_DSCP_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 1,
- .width = 1,
- },
- [VCAP_AF_DSCP_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 2,
- .width = 6,
- },
- [VCAP_AF_QOS_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 12,
- .width = 1,
- },
- [VCAP_AF_QOS_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 13,
- .width = 3,
- },
- [VCAP_AF_DP_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 16,
- .width = 1,
- },
- [VCAP_AF_DP_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 17,
- .width = 2,
- },
- [VCAP_AF_DEI_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 19,
- .width = 1,
- },
- [VCAP_AF_DEI_VAL] = {
- .type = VCAP_FIELD_BIT,
- .offset = 20,
- .width = 1,
- },
- [VCAP_AF_PCP_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 21,
- .width = 1,
- },
- [VCAP_AF_PCP_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 22,
- .width = 3,
- },
- [VCAP_AF_MAP_LOOKUP_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 25,
- .width = 2,
- },
- [VCAP_AF_MAP_KEY] = {
- .type = VCAP_FIELD_U32,
- .offset = 27,
- .width = 3,
- },
- [VCAP_AF_MAP_IDX] = {
- .type = VCAP_FIELD_U32,
- .offset = 30,
- .width = 9,
- },
- [VCAP_AF_CLS_VID_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 39,
- .width = 3,
- },
- [VCAP_AF_VID_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 45,
- .width = 13,
- },
- [VCAP_AF_ISDX_ADD_REPLACE_SEL] = {
- .type = VCAP_FIELD_BIT,
- .offset = 68,
- .width = 1,
- },
- [VCAP_AF_ISDX_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 69,
- .width = 12,
- },
- [VCAP_AF_PAG_OVERRIDE_MASK] = {
- .type = VCAP_FIELD_U32,
- .offset = 109,
- .width = 8,
- },
- [VCAP_AF_PAG_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 117,
- .width = 8,
- },
- [VCAP_AF_NXT_IDX_CTRL] = {
- .type = VCAP_FIELD_U32,
- .offset = 171,
- .width = 3,
- },
- [VCAP_AF_NXT_IDX] = {
- .type = VCAP_FIELD_U32,
- .offset = 174,
- .width = 12,
- },
- };
- static const struct vcap_field is0_full_actionfield[] = {
- [VCAP_AF_DSCP_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 0,
- .width = 1,
- },
- [VCAP_AF_DSCP_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 1,
- .width = 6,
- },
- [VCAP_AF_QOS_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 11,
- .width = 1,
- },
- [VCAP_AF_QOS_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 12,
- .width = 3,
- },
- [VCAP_AF_DP_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 15,
- .width = 1,
- },
- [VCAP_AF_DP_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 16,
- .width = 2,
- },
- [VCAP_AF_DEI_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 18,
- .width = 1,
- },
- [VCAP_AF_DEI_VAL] = {
- .type = VCAP_FIELD_BIT,
- .offset = 19,
- .width = 1,
- },
- [VCAP_AF_PCP_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 20,
- .width = 1,
- },
- [VCAP_AF_PCP_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 21,
- .width = 3,
- },
- [VCAP_AF_MAP_LOOKUP_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 24,
- .width = 2,
- },
- [VCAP_AF_MAP_KEY] = {
- .type = VCAP_FIELD_U32,
- .offset = 26,
- .width = 3,
- },
- [VCAP_AF_MAP_IDX] = {
- .type = VCAP_FIELD_U32,
- .offset = 29,
- .width = 9,
- },
- [VCAP_AF_CLS_VID_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 38,
- .width = 3,
- },
- [VCAP_AF_VID_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 44,
- .width = 13,
- },
- [VCAP_AF_ISDX_ADD_REPLACE_SEL] = {
- .type = VCAP_FIELD_BIT,
- .offset = 67,
- .width = 1,
- },
- [VCAP_AF_ISDX_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 68,
- .width = 12,
- },
- [VCAP_AF_MASK_MODE] = {
- .type = VCAP_FIELD_U32,
- .offset = 80,
- .width = 3,
- },
- [VCAP_AF_PORT_MASK] = {
- .type = VCAP_FIELD_U72,
- .offset = 83,
- .width = 65,
- },
- [VCAP_AF_PAG_OVERRIDE_MASK] = {
- .type = VCAP_FIELD_U32,
- .offset = 204,
- .width = 8,
- },
- [VCAP_AF_PAG_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 212,
- .width = 8,
- },
- [VCAP_AF_NXT_IDX_CTRL] = {
- .type = VCAP_FIELD_U32,
- .offset = 298,
- .width = 3,
- },
- [VCAP_AF_NXT_IDX] = {
- .type = VCAP_FIELD_U32,
- .offset = 301,
- .width = 12,
- },
- };
- static const struct vcap_field is0_class_reduced_actionfield[] = {
- [VCAP_AF_TYPE] = {
- .type = VCAP_FIELD_BIT,
- .offset = 0,
- .width = 1,
- },
- [VCAP_AF_QOS_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 5,
- .width = 1,
- },
- [VCAP_AF_QOS_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 6,
- .width = 3,
- },
- [VCAP_AF_DP_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 9,
- .width = 1,
- },
- [VCAP_AF_DP_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 10,
- .width = 2,
- },
- [VCAP_AF_MAP_LOOKUP_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 12,
- .width = 2,
- },
- [VCAP_AF_MAP_KEY] = {
- .type = VCAP_FIELD_U32,
- .offset = 14,
- .width = 3,
- },
- [VCAP_AF_CLS_VID_SEL] = {
- .type = VCAP_FIELD_U32,
- .offset = 17,
- .width = 3,
- },
- [VCAP_AF_VID_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 23,
- .width = 13,
- },
- [VCAP_AF_ISDX_ADD_REPLACE_SEL] = {
- .type = VCAP_FIELD_BIT,
- .offset = 46,
- .width = 1,
- },
- [VCAP_AF_ISDX_VAL] = {
- .type = VCAP_FIELD_U32,
- .offset = 47,
- .width = 12,
- },
- [VCAP_AF_NXT_IDX_CTRL] = {
- .type = VCAP_FIELD_U32,
- .offset = 90,
- .width = 3,
- },
- [VCAP_AF_NXT_IDX] = {
- .type = VCAP_FIELD_U32,
- .offset = 93,
- .width = 12,
- },
- };
- static const struct vcap_field is2_base_type_actionfield[] = {
- [VCAP_AF_PIPELINE_FORCE_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 1,
- .width = 1,
- },
- [VCAP_AF_PIPELINE_PT] = {
- .type = VCAP_FIELD_U32,
- .offset = 2,
- .width = 5,
- },
- [VCAP_AF_HIT_ME_ONCE] = {
- .type = VCAP_FIELD_BIT,
- .offset = 7,
- .width = 1,
- },
- [VCAP_AF_INTR_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 8,
- .width = 1,
- },
- [VCAP_AF_CPU_COPY_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 9,
- .width = 1,
- },
- [VCAP_AF_CPU_QUEUE_NUM] = {
- .type = VCAP_FIELD_U32,
- .offset = 10,
- .width = 3,
- },
- [VCAP_AF_LRN_DIS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 14,
- .width = 1,
- },
- [VCAP_AF_RT_DIS] = {
- .type = VCAP_FIELD_BIT,
- .offset = 15,
- .width = 1,
- },
- [VCAP_AF_POLICE_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 16,
- .width = 1,
- },
- [VCAP_AF_POLICE_IDX] = {
- .type = VCAP_FIELD_U32,
- .offset = 17,
- .width = 6,
- },
- [VCAP_AF_IGNORE_PIPELINE_CTRL] = {
- .type = VCAP_FIELD_BIT,
- .offset = 23,
- .width = 1,
- },
- [VCAP_AF_MASK_MODE] = {
- .type = VCAP_FIELD_U32,
- .offset = 27,
- .width = 3,
- },
- [VCAP_AF_PORT_MASK] = {
- .type = VCAP_FIELD_U72,
- .offset = 30,
- .width = 68,
- },
- [VCAP_AF_MIRROR_PROBE] = {
- .type = VCAP_FIELD_U32,
- .offset = 111,
- .width = 2,
- },
- [VCAP_AF_MATCH_ID] = {
- .type = VCAP_FIELD_U32,
- .offset = 159,
- .width = 16,
- },
- [VCAP_AF_MATCH_ID_MASK] = {
- .type = VCAP_FIELD_U32,
- .offset = 175,
- .width = 16,
- },
- [VCAP_AF_CNT_ID] = {
- .type = VCAP_FIELD_U32,
- .offset = 191,
- .width = 12,
- },
- };
- static const struct vcap_field es2_base_type_actionfield[] = {
- [VCAP_AF_HIT_ME_ONCE] = {
- .type = VCAP_FIELD_BIT,
- .offset = 0,
- .width = 1,
- },
- [VCAP_AF_INTR_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 1,
- .width = 1,
- },
- [VCAP_AF_FWD_MODE] = {
- .type = VCAP_FIELD_U32,
- .offset = 2,
- .width = 2,
- },
- [VCAP_AF_COPY_QUEUE_NUM] = {
- .type = VCAP_FIELD_U32,
- .offset = 4,
- .width = 16,
- },
- [VCAP_AF_COPY_PORT_NUM] = {
- .type = VCAP_FIELD_U32,
- .offset = 20,
- .width = 7,
- },
- [VCAP_AF_MIRROR_PROBE_ID] = {
- .type = VCAP_FIELD_U32,
- .offset = 27,
- .width = 2,
- },
- [VCAP_AF_CPU_COPY_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 29,
- .width = 1,
- },
- [VCAP_AF_CPU_QUEUE_NUM] = {
- .type = VCAP_FIELD_U32,
- .offset = 30,
- .width = 3,
- },
- [VCAP_AF_POLICE_ENA] = {
- .type = VCAP_FIELD_BIT,
- .offset = 33,
- .width = 1,
- },
- [VCAP_AF_POLICE_REMARK] = {
- .type = VCAP_FIELD_BIT,
- .offset = 34,
- .width = 1,
- },
- [VCAP_AF_POLICE_IDX] = {
- .type = VCAP_FIELD_U32,
- .offset = 35,
- .width = 6,
- },
- [VCAP_AF_ES2_REW_CMD] = {
- .type = VCAP_FIELD_U32,
- .offset = 41,
- .width = 3,
- },
- [VCAP_AF_CNT_ID] = {
- .type = VCAP_FIELD_U32,
- .offset = 44,
- .width = 11,
- },
- [VCAP_AF_IGNORE_PIPELINE_CTRL] = {
- .type = VCAP_FIELD_BIT,
- .offset = 55,
- .width = 1,
- },
- };
- /* actionfield_set */
- static const struct vcap_set is0_actionfield_set[] = {
- [VCAP_AFS_CLASSIFICATION] = {
- .type_id = 1,
- .sw_per_item = 2,
- .sw_cnt = 6,
- },
- [VCAP_AFS_FULL] = {
- .type_id = -1,
- .sw_per_item = 3,
- .sw_cnt = 4,
- },
- [VCAP_AFS_CLASS_REDUCED] = {
- .type_id = 1,
- .sw_per_item = 1,
- .sw_cnt = 12,
- },
- };
- static const struct vcap_set is2_actionfield_set[] = {
- [VCAP_AFS_BASE_TYPE] = {
- .type_id = -1,
- .sw_per_item = 3,
- .sw_cnt = 4,
- },
- };
- static const struct vcap_set es2_actionfield_set[] = {
- [VCAP_AFS_BASE_TYPE] = {
- .type_id = -1,
- .sw_per_item = 3,
- .sw_cnt = 4,
- },
- };
- /* actionfield_set map */
- static const struct vcap_field *is0_actionfield_set_map[] = {
- [VCAP_AFS_CLASSIFICATION] = is0_classification_actionfield,
- [VCAP_AFS_FULL] = is0_full_actionfield,
- [VCAP_AFS_CLASS_REDUCED] = is0_class_reduced_actionfield,
- };
- static const struct vcap_field *is2_actionfield_set_map[] = {
- [VCAP_AFS_BASE_TYPE] = is2_base_type_actionfield,
- };
- static const struct vcap_field *es2_actionfield_set_map[] = {
- [VCAP_AFS_BASE_TYPE] = es2_base_type_actionfield,
- };
- /* actionfield_set map size */
- static int is0_actionfield_set_map_size[] = {
- [VCAP_AFS_CLASSIFICATION] = ARRAY_SIZE(is0_classification_actionfield),
- [VCAP_AFS_FULL] = ARRAY_SIZE(is0_full_actionfield),
- [VCAP_AFS_CLASS_REDUCED] = ARRAY_SIZE(is0_class_reduced_actionfield),
- };
- static int is2_actionfield_set_map_size[] = {
- [VCAP_AFS_BASE_TYPE] = ARRAY_SIZE(is2_base_type_actionfield),
- };
- static int es2_actionfield_set_map_size[] = {
- [VCAP_AFS_BASE_TYPE] = ARRAY_SIZE(es2_base_type_actionfield),
- };
- /* Type Groups */
- static const struct vcap_typegroup is0_x12_keyfield_set_typegroups[] = {
- {
- .offset = 0,
- .width = 5,
- .value = 16,
- },
- {
- .offset = 52,
- .width = 1,
- .value = 0,
- },
- {
- .offset = 104,
- .width = 2,
- .value = 0,
- },
- {
- .offset = 156,
- .width = 3,
- .value = 0,
- },
- {
- .offset = 208,
- .width = 2,
- .value = 0,
- },
- {
- .offset = 260,
- .width = 1,
- .value = 0,
- },
- {
- .offset = 312,
- .width = 4,
- .value = 0,
- },
- {
- .offset = 364,
- .width = 1,
- .value = 0,
- },
- {
- .offset = 416,
- .width = 2,
- .value = 0,
- },
- {
- .offset = 468,
- .width = 3,
- .value = 0,
- },
- {
- .offset = 520,
- .width = 2,
- .value = 0,
- },
- {
- .offset = 572,
- .width = 1,
- .value = 0,
- },
- {}
- };
- static const struct vcap_typegroup is0_x6_keyfield_set_typegroups[] = {
- {
- .offset = 0,
- .width = 4,
- .value = 8,
- },
- {
- .offset = 52,
- .width = 1,
- .value = 0,
- },
- {
- .offset = 104,
- .width = 2,
- .value = 0,
- },
- {
- .offset = 156,
- .width = 3,
- .value = 0,
- },
- {
- .offset = 208,
- .width = 2,
- .value = 0,
- },
- {
- .offset = 260,
- .width = 1,
- .value = 0,
- },
- {}
- };
- static const struct vcap_typegroup is0_x3_keyfield_set_typegroups[] = {
- {
- .offset = 0,
- .width = 3,
- .value = 4,
- },
- {
- .offset = 52,
- .width = 2,
- .value = 0,
- },
- {
- .offset = 104,
- .width = 2,
- .value = 0,
- },
- {}
- };
- static const struct vcap_typegroup is0_x2_keyfield_set_typegroups[] = {
- {
- .offset = 0,
- .width = 2,
- .value = 2,
- },
- {
- .offset = 52,
- .width = 1,
- .value = 0,
- },
- {}
- };
- static const struct vcap_typegroup is0_x1_keyfield_set_typegroups[] = {
- {}
- };
- static const struct vcap_typegroup is2_x12_keyfield_set_typegroups[] = {
- {
- .offset = 0,
- .width = 3,
- .value = 4,
- },
- {
- .offset = 156,
- .width = 1,
- .value = 0,
- },
- {
- .offset = 312,
- .width = 2,
- .value = 0,
- },
- {
- .offset = 468,
- .width = 1,
- .value = 0,
- },
- {}
- };
- static const struct vcap_typegroup is2_x6_keyfield_set_typegroups[] = {
- {
- .offset = 0,
- .width = 2,
- .value = 2,
- },
- {
- .offset = 156,
- .width = 1,
- .value = 0,
- },
- {}
- };
- static const struct vcap_typegroup is2_x3_keyfield_set_typegroups[] = {
- {}
- };
- static const struct vcap_typegroup is2_x1_keyfield_set_typegroups[] = {
- {}
- };
- static const struct vcap_typegroup es2_x12_keyfield_set_typegroups[] = {
- {
- .offset = 0,
- .width = 3,
- .value = 4,
- },
- {
- .offset = 156,
- .width = 1,
- .value = 0,
- },
- {
- .offset = 312,
- .width = 2,
- .value = 0,
- },
- {
- .offset = 468,
- .width = 1,
- .value = 0,
- },
- {}
- };
- static const struct vcap_typegroup es2_x6_keyfield_set_typegroups[] = {
- {
- .offset = 0,
- .width = 2,
- .value = 2,
- },
- {
- .offset = 156,
- .width = 1,
- .value = 0,
- },
- {}
- };
- static const struct vcap_typegroup es2_x3_keyfield_set_typegroups[] = {
- {
- .offset = 0,
- .width = 1,
- .value = 1,
- },
- {}
- };
- static const struct vcap_typegroup es2_x1_keyfield_set_typegroups[] = {
- {}
- };
- static const struct vcap_typegroup *is0_keyfield_set_typegroups[] = {
- [12] = is0_x12_keyfield_set_typegroups,
- [6] = is0_x6_keyfield_set_typegroups,
- [3] = is0_x3_keyfield_set_typegroups,
- [2] = is0_x2_keyfield_set_typegroups,
- [1] = is0_x1_keyfield_set_typegroups,
- [13] = NULL,
- };
- static const struct vcap_typegroup *is2_keyfield_set_typegroups[] = {
- [12] = is2_x12_keyfield_set_typegroups,
- [6] = is2_x6_keyfield_set_typegroups,
- [3] = is2_x3_keyfield_set_typegroups,
- [1] = is2_x1_keyfield_set_typegroups,
- [13] = NULL,
- };
- static const struct vcap_typegroup *es2_keyfield_set_typegroups[] = {
- [12] = es2_x12_keyfield_set_typegroups,
- [6] = es2_x6_keyfield_set_typegroups,
- [3] = es2_x3_keyfield_set_typegroups,
- [1] = es2_x1_keyfield_set_typegroups,
- [13] = NULL,
- };
- static const struct vcap_typegroup is0_x3_actionfield_set_typegroups[] = {
- {
- .offset = 0,
- .width = 3,
- .value = 4,
- },
- {
- .offset = 110,
- .width = 2,
- .value = 0,
- },
- {
- .offset = 220,
- .width = 2,
- .value = 0,
- },
- {}
- };
- static const struct vcap_typegroup is0_x2_actionfield_set_typegroups[] = {
- {
- .offset = 0,
- .width = 2,
- .value = 2,
- },
- {
- .offset = 110,
- .width = 1,
- .value = 0,
- },
- {}
- };
- static const struct vcap_typegroup is0_x1_actionfield_set_typegroups[] = {
- {
- .offset = 0,
- .width = 1,
- .value = 1,
- },
- {}
- };
- static const struct vcap_typegroup is2_x3_actionfield_set_typegroups[] = {
- {
- .offset = 0,
- .width = 2,
- .value = 2,
- },
- {
- .offset = 110,
- .width = 1,
- .value = 0,
- },
- {
- .offset = 220,
- .width = 1,
- .value = 0,
- },
- {}
- };
- static const struct vcap_typegroup is2_x1_actionfield_set_typegroups[] = {
- {}
- };
- static const struct vcap_typegroup es2_x3_actionfield_set_typegroups[] = {
- {
- .offset = 0,
- .width = 2,
- .value = 2,
- },
- {
- .offset = 21,
- .width = 1,
- .value = 0,
- },
- {
- .offset = 42,
- .width = 1,
- .value = 0,
- },
- {}
- };
- static const struct vcap_typegroup es2_x1_actionfield_set_typegroups[] = {
- {}
- };
- static const struct vcap_typegroup *is0_actionfield_set_typegroups[] = {
- [3] = is0_x3_actionfield_set_typegroups,
- [2] = is0_x2_actionfield_set_typegroups,
- [1] = is0_x1_actionfield_set_typegroups,
- [13] = NULL,
- };
- static const struct vcap_typegroup *is2_actionfield_set_typegroups[] = {
- [3] = is2_x3_actionfield_set_typegroups,
- [1] = is2_x1_actionfield_set_typegroups,
- [13] = NULL,
- };
- static const struct vcap_typegroup *es2_actionfield_set_typegroups[] = {
- [3] = es2_x3_actionfield_set_typegroups,
- [1] = es2_x1_actionfield_set_typegroups,
- [13] = NULL,
- };
- /* Keyfieldset names */
- static const char * const vcap_keyfield_set_names[] = {
- [VCAP_KFS_NO_VALUE] = "(None)",
- [VCAP_KFS_ARP] = "VCAP_KFS_ARP",
- [VCAP_KFS_ETAG] = "VCAP_KFS_ETAG",
- [VCAP_KFS_IP4_OTHER] = "VCAP_KFS_IP4_OTHER",
- [VCAP_KFS_IP4_TCP_UDP] = "VCAP_KFS_IP4_TCP_UDP",
- [VCAP_KFS_IP4_VID] = "VCAP_KFS_IP4_VID",
- [VCAP_KFS_IP6_OTHER] = "VCAP_KFS_IP6_OTHER",
- [VCAP_KFS_IP6_STD] = "VCAP_KFS_IP6_STD",
- [VCAP_KFS_IP6_TCP_UDP] = "VCAP_KFS_IP6_TCP_UDP",
- [VCAP_KFS_IP6_VID] = "VCAP_KFS_IP6_VID",
- [VCAP_KFS_IP_7TUPLE] = "VCAP_KFS_IP_7TUPLE",
- [VCAP_KFS_ISDX] = "VCAP_KFS_ISDX",
- [VCAP_KFS_LL_FULL] = "VCAP_KFS_LL_FULL",
- [VCAP_KFS_MAC_ETYPE] = "VCAP_KFS_MAC_ETYPE",
- [VCAP_KFS_MAC_LLC] = "VCAP_KFS_MAC_LLC",
- [VCAP_KFS_MAC_SNAP] = "VCAP_KFS_MAC_SNAP",
- [VCAP_KFS_NORMAL_5TUPLE_IP4] = "VCAP_KFS_NORMAL_5TUPLE_IP4",
- [VCAP_KFS_NORMAL_7TUPLE] = "VCAP_KFS_NORMAL_7TUPLE",
- [VCAP_KFS_OAM] = "VCAP_KFS_OAM",
- [VCAP_KFS_PURE_5TUPLE_IP4] = "VCAP_KFS_PURE_5TUPLE_IP4",
- [VCAP_KFS_SMAC_SIP4] = "VCAP_KFS_SMAC_SIP4",
- [VCAP_KFS_SMAC_SIP6] = "VCAP_KFS_SMAC_SIP6",
- };
- /* Actionfieldset names */
- static const char * const vcap_actionfield_set_names[] = {
- [VCAP_AFS_NO_VALUE] = "(None)",
- [VCAP_AFS_BASE_TYPE] = "VCAP_AFS_BASE_TYPE",
- [VCAP_AFS_CLASSIFICATION] = "VCAP_AFS_CLASSIFICATION",
- [VCAP_AFS_CLASS_REDUCED] = "VCAP_AFS_CLASS_REDUCED",
- [VCAP_AFS_ES0] = "VCAP_AFS_ES0",
- [VCAP_AFS_FULL] = "VCAP_AFS_FULL",
- [VCAP_AFS_SMAC_SIP] = "VCAP_AFS_SMAC_SIP",
- };
- /* Keyfield names */
- static const char * const vcap_keyfield_names[] = {
- [VCAP_KF_NO_VALUE] = "(None)",
- [VCAP_KF_8021BR_ECID_BASE] = "8021BR_ECID_BASE",
- [VCAP_KF_8021BR_ECID_EXT] = "8021BR_ECID_EXT",
- [VCAP_KF_8021BR_E_TAGGED] = "8021BR_E_TAGGED",
- [VCAP_KF_8021BR_GRP] = "8021BR_GRP",
- [VCAP_KF_8021BR_IGR_ECID_BASE] = "8021BR_IGR_ECID_BASE",
- [VCAP_KF_8021BR_IGR_ECID_EXT] = "8021BR_IGR_ECID_EXT",
- [VCAP_KF_8021Q_DEI0] = "8021Q_DEI0",
- [VCAP_KF_8021Q_DEI1] = "8021Q_DEI1",
- [VCAP_KF_8021Q_DEI2] = "8021Q_DEI2",
- [VCAP_KF_8021Q_DEI_CLS] = "8021Q_DEI_CLS",
- [VCAP_KF_8021Q_PCP0] = "8021Q_PCP0",
- [VCAP_KF_8021Q_PCP1] = "8021Q_PCP1",
- [VCAP_KF_8021Q_PCP2] = "8021Q_PCP2",
- [VCAP_KF_8021Q_PCP_CLS] = "8021Q_PCP_CLS",
- [VCAP_KF_8021Q_TPID] = "8021Q_TPID",
- [VCAP_KF_8021Q_TPID0] = "8021Q_TPID0",
- [VCAP_KF_8021Q_TPID1] = "8021Q_TPID1",
- [VCAP_KF_8021Q_TPID2] = "8021Q_TPID2",
- [VCAP_KF_8021Q_VID0] = "8021Q_VID0",
- [VCAP_KF_8021Q_VID1] = "8021Q_VID1",
- [VCAP_KF_8021Q_VID2] = "8021Q_VID2",
- [VCAP_KF_8021Q_VID_CLS] = "8021Q_VID_CLS",
- [VCAP_KF_8021Q_VLAN_TAGGED_IS] = "8021Q_VLAN_TAGGED_IS",
- [VCAP_KF_8021Q_VLAN_TAGS] = "8021Q_VLAN_TAGS",
- [VCAP_KF_ACL_GRP_ID] = "ACL_GRP_ID",
- [VCAP_KF_ARP_ADDR_SPACE_OK_IS] = "ARP_ADDR_SPACE_OK_IS",
- [VCAP_KF_ARP_LEN_OK_IS] = "ARP_LEN_OK_IS",
- [VCAP_KF_ARP_OPCODE] = "ARP_OPCODE",
- [VCAP_KF_ARP_OPCODE_UNKNOWN_IS] = "ARP_OPCODE_UNKNOWN_IS",
- [VCAP_KF_ARP_PROTO_SPACE_OK_IS] = "ARP_PROTO_SPACE_OK_IS",
- [VCAP_KF_ARP_SENDER_MATCH_IS] = "ARP_SENDER_MATCH_IS",
- [VCAP_KF_ARP_TGT_MATCH_IS] = "ARP_TGT_MATCH_IS",
- [VCAP_KF_COSID_CLS] = "COSID_CLS",
- [VCAP_KF_ES0_ISDX_KEY_ENA] = "ES0_ISDX_KEY_ENA",
- [VCAP_KF_ETYPE] = "ETYPE",
- [VCAP_KF_ETYPE_LEN_IS] = "ETYPE_LEN_IS",
- [VCAP_KF_HOST_MATCH] = "HOST_MATCH",
- [VCAP_KF_IF_EGR_PORT_MASK] = "IF_EGR_PORT_MASK",
- [VCAP_KF_IF_EGR_PORT_MASK_RNG] = "IF_EGR_PORT_MASK_RNG",
- [VCAP_KF_IF_EGR_PORT_NO] = "IF_EGR_PORT_NO",
- [VCAP_KF_IF_IGR_PORT] = "IF_IGR_PORT",
- [VCAP_KF_IF_IGR_PORT_MASK] = "IF_IGR_PORT_MASK",
- [VCAP_KF_IF_IGR_PORT_MASK_L3] = "IF_IGR_PORT_MASK_L3",
- [VCAP_KF_IF_IGR_PORT_MASK_RNG] = "IF_IGR_PORT_MASK_RNG",
- [VCAP_KF_IF_IGR_PORT_MASK_SEL] = "IF_IGR_PORT_MASK_SEL",
- [VCAP_KF_IF_IGR_PORT_SEL] = "IF_IGR_PORT_SEL",
- [VCAP_KF_IP4_IS] = "IP4_IS",
- [VCAP_KF_IP_MC_IS] = "IP_MC_IS",
- [VCAP_KF_IP_PAYLOAD_5TUPLE] = "IP_PAYLOAD_5TUPLE",
- [VCAP_KF_IP_SNAP_IS] = "IP_SNAP_IS",
- [VCAP_KF_ISDX_CLS] = "ISDX_CLS",
- [VCAP_KF_ISDX_GT0_IS] = "ISDX_GT0_IS",
- [VCAP_KF_L2_BC_IS] = "L2_BC_IS",
- [VCAP_KF_L2_DMAC] = "L2_DMAC",
- [VCAP_KF_L2_FRM_TYPE] = "L2_FRM_TYPE",
- [VCAP_KF_L2_FWD_IS] = "L2_FWD_IS",
- [VCAP_KF_L2_LLC] = "L2_LLC",
- [VCAP_KF_L2_MC_IS] = "L2_MC_IS",
- [VCAP_KF_L2_PAYLOAD0] = "L2_PAYLOAD0",
- [VCAP_KF_L2_PAYLOAD1] = "L2_PAYLOAD1",
- [VCAP_KF_L2_PAYLOAD2] = "L2_PAYLOAD2",
- [VCAP_KF_L2_PAYLOAD_ETYPE] = "L2_PAYLOAD_ETYPE",
- [VCAP_KF_L2_SMAC] = "L2_SMAC",
- [VCAP_KF_L2_SNAP] = "L2_SNAP",
- [VCAP_KF_L3_DIP_EQ_SIP_IS] = "L3_DIP_EQ_SIP_IS",
- [VCAP_KF_L3_DPL_CLS] = "L3_DPL_CLS",
- [VCAP_KF_L3_DSCP] = "L3_DSCP",
- [VCAP_KF_L3_DST_IS] = "L3_DST_IS",
- [VCAP_KF_L3_FRAGMENT] = "L3_FRAGMENT",
- [VCAP_KF_L3_FRAGMENT_TYPE] = "L3_FRAGMENT_TYPE",
- [VCAP_KF_L3_FRAG_INVLD_L4_LEN] = "L3_FRAG_INVLD_L4_LEN",
- [VCAP_KF_L3_FRAG_OFS_GT0] = "L3_FRAG_OFS_GT0",
- [VCAP_KF_L3_IP4_DIP] = "L3_IP4_DIP",
- [VCAP_KF_L3_IP4_SIP] = "L3_IP4_SIP",
- [VCAP_KF_L3_IP6_DIP] = "L3_IP6_DIP",
- [VCAP_KF_L3_IP6_SIP] = "L3_IP6_SIP",
- [VCAP_KF_L3_IP_PROTO] = "L3_IP_PROTO",
- [VCAP_KF_L3_OPTIONS_IS] = "L3_OPTIONS_IS",
- [VCAP_KF_L3_PAYLOAD] = "L3_PAYLOAD",
- [VCAP_KF_L3_RT_IS] = "L3_RT_IS",
- [VCAP_KF_L3_TOS] = "L3_TOS",
- [VCAP_KF_L3_TTL_GT0] = "L3_TTL_GT0",
- [VCAP_KF_L4_1588_DOM] = "L4_1588_DOM",
- [VCAP_KF_L4_1588_VER] = "L4_1588_VER",
- [VCAP_KF_L4_ACK] = "L4_ACK",
- [VCAP_KF_L4_DPORT] = "L4_DPORT",
- [VCAP_KF_L4_FIN] = "L4_FIN",
- [VCAP_KF_L4_PAYLOAD] = "L4_PAYLOAD",
- [VCAP_KF_L4_PSH] = "L4_PSH",
- [VCAP_KF_L4_RNG] = "L4_RNG",
- [VCAP_KF_L4_RST] = "L4_RST",
- [VCAP_KF_L4_SEQUENCE_EQ0_IS] = "L4_SEQUENCE_EQ0_IS",
- [VCAP_KF_L4_SPORT] = "L4_SPORT",
- [VCAP_KF_L4_SPORT_EQ_DPORT_IS] = "L4_SPORT_EQ_DPORT_IS",
- [VCAP_KF_L4_SYN] = "L4_SYN",
- [VCAP_KF_L4_URG] = "L4_URG",
- [VCAP_KF_LOOKUP_FIRST_IS] = "LOOKUP_FIRST_IS",
- [VCAP_KF_LOOKUP_GEN_IDX] = "LOOKUP_GEN_IDX",
- [VCAP_KF_LOOKUP_GEN_IDX_SEL] = "LOOKUP_GEN_IDX_SEL",
- [VCAP_KF_LOOKUP_PAG] = "LOOKUP_PAG",
- [VCAP_KF_MIRROR_PROBE] = "MIRROR_PROBE",
- [VCAP_KF_OAM_CCM_CNTS_EQ0] = "OAM_CCM_CNTS_EQ0",
- [VCAP_KF_OAM_DETECTED] = "OAM_DETECTED",
- [VCAP_KF_OAM_FLAGS] = "OAM_FLAGS",
- [VCAP_KF_OAM_MEL_FLAGS] = "OAM_MEL_FLAGS",
- [VCAP_KF_OAM_MEPID] = "OAM_MEPID",
- [VCAP_KF_OAM_OPCODE] = "OAM_OPCODE",
- [VCAP_KF_OAM_VER] = "OAM_VER",
- [VCAP_KF_OAM_Y1731_IS] = "OAM_Y1731_IS",
- [VCAP_KF_PROT_ACTIVE] = "PROT_ACTIVE",
- [VCAP_KF_TCP_IS] = "TCP_IS",
- [VCAP_KF_TCP_UDP_IS] = "TCP_UDP_IS",
- [VCAP_KF_TYPE] = "TYPE",
- };
- /* Actionfield names */
- static const char * const vcap_actionfield_names[] = {
- [VCAP_AF_NO_VALUE] = "(None)",
- [VCAP_AF_ACL_ID] = "ACL_ID",
- [VCAP_AF_CLS_VID_SEL] = "CLS_VID_SEL",
- [VCAP_AF_CNT_ID] = "CNT_ID",
- [VCAP_AF_COPY_PORT_NUM] = "COPY_PORT_NUM",
- [VCAP_AF_COPY_QUEUE_NUM] = "COPY_QUEUE_NUM",
- [VCAP_AF_CPU_COPY_ENA] = "CPU_COPY_ENA",
- [VCAP_AF_CPU_QU] = "CPU_QU",
- [VCAP_AF_CPU_QUEUE_NUM] = "CPU_QUEUE_NUM",
- [VCAP_AF_DEI_A_VAL] = "DEI_A_VAL",
- [VCAP_AF_DEI_B_VAL] = "DEI_B_VAL",
- [VCAP_AF_DEI_C_VAL] = "DEI_C_VAL",
- [VCAP_AF_DEI_ENA] = "DEI_ENA",
- [VCAP_AF_DEI_VAL] = "DEI_VAL",
- [VCAP_AF_DP_ENA] = "DP_ENA",
- [VCAP_AF_DP_VAL] = "DP_VAL",
- [VCAP_AF_DSCP_ENA] = "DSCP_ENA",
- [VCAP_AF_DSCP_SEL] = "DSCP_SEL",
- [VCAP_AF_DSCP_VAL] = "DSCP_VAL",
- [VCAP_AF_ES2_REW_CMD] = "ES2_REW_CMD",
- [VCAP_AF_ESDX] = "ESDX",
- [VCAP_AF_FWD_KILL_ENA] = "FWD_KILL_ENA",
- [VCAP_AF_FWD_MODE] = "FWD_MODE",
- [VCAP_AF_FWD_SEL] = "FWD_SEL",
- [VCAP_AF_HIT_ME_ONCE] = "HIT_ME_ONCE",
- [VCAP_AF_HOST_MATCH] = "HOST_MATCH",
- [VCAP_AF_IGNORE_PIPELINE_CTRL] = "IGNORE_PIPELINE_CTRL",
- [VCAP_AF_INTR_ENA] = "INTR_ENA",
- [VCAP_AF_ISDX_ADD_REPLACE_SEL] = "ISDX_ADD_REPLACE_SEL",
- [VCAP_AF_ISDX_ENA] = "ISDX_ENA",
- [VCAP_AF_ISDX_VAL] = "ISDX_VAL",
- [VCAP_AF_LOOP_ENA] = "LOOP_ENA",
- [VCAP_AF_LRN_DIS] = "LRN_DIS",
- [VCAP_AF_MAP_IDX] = "MAP_IDX",
- [VCAP_AF_MAP_KEY] = "MAP_KEY",
- [VCAP_AF_MAP_LOOKUP_SEL] = "MAP_LOOKUP_SEL",
- [VCAP_AF_MASK_MODE] = "MASK_MODE",
- [VCAP_AF_MATCH_ID] = "MATCH_ID",
- [VCAP_AF_MATCH_ID_MASK] = "MATCH_ID_MASK",
- [VCAP_AF_MIRROR_ENA] = "MIRROR_ENA",
- [VCAP_AF_MIRROR_PROBE] = "MIRROR_PROBE",
- [VCAP_AF_MIRROR_PROBE_ID] = "MIRROR_PROBE_ID",
- [VCAP_AF_NXT_IDX] = "NXT_IDX",
- [VCAP_AF_NXT_IDX_CTRL] = "NXT_IDX_CTRL",
- [VCAP_AF_PAG_OVERRIDE_MASK] = "PAG_OVERRIDE_MASK",
- [VCAP_AF_PAG_VAL] = "PAG_VAL",
- [VCAP_AF_PCP_A_VAL] = "PCP_A_VAL",
- [VCAP_AF_PCP_B_VAL] = "PCP_B_VAL",
- [VCAP_AF_PCP_C_VAL] = "PCP_C_VAL",
- [VCAP_AF_PCP_ENA] = "PCP_ENA",
- [VCAP_AF_PCP_VAL] = "PCP_VAL",
- [VCAP_AF_PIPELINE_ACT] = "PIPELINE_ACT",
- [VCAP_AF_PIPELINE_FORCE_ENA] = "PIPELINE_FORCE_ENA",
- [VCAP_AF_PIPELINE_PT] = "PIPELINE_PT",
- [VCAP_AF_POLICE_ENA] = "POLICE_ENA",
- [VCAP_AF_POLICE_IDX] = "POLICE_IDX",
- [VCAP_AF_POLICE_REMARK] = "POLICE_REMARK",
- [VCAP_AF_POLICE_VCAP_ONLY] = "POLICE_VCAP_ONLY",
- [VCAP_AF_POP_VAL] = "POP_VAL",
- [VCAP_AF_PORT_MASK] = "PORT_MASK",
- [VCAP_AF_PUSH_CUSTOMER_TAG] = "PUSH_CUSTOMER_TAG",
- [VCAP_AF_PUSH_INNER_TAG] = "PUSH_INNER_TAG",
- [VCAP_AF_PUSH_OUTER_TAG] = "PUSH_OUTER_TAG",
- [VCAP_AF_QOS_ENA] = "QOS_ENA",
- [VCAP_AF_QOS_VAL] = "QOS_VAL",
- [VCAP_AF_REW_OP] = "REW_OP",
- [VCAP_AF_RT_DIS] = "RT_DIS",
- [VCAP_AF_SWAP_MACS_ENA] = "SWAP_MACS_ENA",
- [VCAP_AF_TAG_A_DEI_SEL] = "TAG_A_DEI_SEL",
- [VCAP_AF_TAG_A_PCP_SEL] = "TAG_A_PCP_SEL",
- [VCAP_AF_TAG_A_TPID_SEL] = "TAG_A_TPID_SEL",
- [VCAP_AF_TAG_A_VID_SEL] = "TAG_A_VID_SEL",
- [VCAP_AF_TAG_B_DEI_SEL] = "TAG_B_DEI_SEL",
- [VCAP_AF_TAG_B_PCP_SEL] = "TAG_B_PCP_SEL",
- [VCAP_AF_TAG_B_TPID_SEL] = "TAG_B_TPID_SEL",
- [VCAP_AF_TAG_B_VID_SEL] = "TAG_B_VID_SEL",
- [VCAP_AF_TAG_C_DEI_SEL] = "TAG_C_DEI_SEL",
- [VCAP_AF_TAG_C_PCP_SEL] = "TAG_C_PCP_SEL",
- [VCAP_AF_TAG_C_TPID_SEL] = "TAG_C_TPID_SEL",
- [VCAP_AF_TAG_C_VID_SEL] = "TAG_C_VID_SEL",
- [VCAP_AF_TYPE] = "TYPE",
- [VCAP_AF_UNTAG_VID_ENA] = "UNTAG_VID_ENA",
- [VCAP_AF_VID_A_VAL] = "VID_A_VAL",
- [VCAP_AF_VID_B_VAL] = "VID_B_VAL",
- [VCAP_AF_VID_C_VAL] = "VID_C_VAL",
- [VCAP_AF_VID_VAL] = "VID_VAL",
- };
- /* VCAPs */
- const struct vcap_info kunit_test_vcaps[] = {
- [VCAP_TYPE_IS0] = {
- .name = "is0",
- .rows = 1024,
- .sw_count = 12,
- .sw_width = 52,
- .sticky_width = 1,
- .act_width = 110,
- .default_cnt = 140,
- .require_cnt_dis = 0,
- .version = 1,
- .keyfield_set = is0_keyfield_set,
- .keyfield_set_size = ARRAY_SIZE(is0_keyfield_set),
- .actionfield_set = is0_actionfield_set,
- .actionfield_set_size = ARRAY_SIZE(is0_actionfield_set),
- .keyfield_set_map = is0_keyfield_set_map,
- .keyfield_set_map_size = is0_keyfield_set_map_size,
- .actionfield_set_map = is0_actionfield_set_map,
- .actionfield_set_map_size = is0_actionfield_set_map_size,
- .keyfield_set_typegroups = is0_keyfield_set_typegroups,
- .actionfield_set_typegroups = is0_actionfield_set_typegroups,
- },
- [VCAP_TYPE_IS2] = {
- .name = "is2",
- .rows = 256,
- .sw_count = 12,
- .sw_width = 52,
- .sticky_width = 1,
- .act_width = 110,
- .default_cnt = 73,
- .require_cnt_dis = 0,
- .version = 1,
- .keyfield_set = is2_keyfield_set,
- .keyfield_set_size = ARRAY_SIZE(is2_keyfield_set),
- .actionfield_set = is2_actionfield_set,
- .actionfield_set_size = ARRAY_SIZE(is2_actionfield_set),
- .keyfield_set_map = is2_keyfield_set_map,
- .keyfield_set_map_size = is2_keyfield_set_map_size,
- .actionfield_set_map = is2_actionfield_set_map,
- .actionfield_set_map_size = is2_actionfield_set_map_size,
- .keyfield_set_typegroups = is2_keyfield_set_typegroups,
- .actionfield_set_typegroups = is2_actionfield_set_typegroups,
- },
- [VCAP_TYPE_ES2] = {
- .name = "es2",
- .rows = 1024,
- .sw_count = 12,
- .sw_width = 52,
- .sticky_width = 1,
- .act_width = 21,
- .default_cnt = 74,
- .require_cnt_dis = 0,
- .version = 1,
- .keyfield_set = es2_keyfield_set,
- .keyfield_set_size = ARRAY_SIZE(es2_keyfield_set),
- .actionfield_set = es2_actionfield_set,
- .actionfield_set_size = ARRAY_SIZE(es2_actionfield_set),
- .keyfield_set_map = es2_keyfield_set_map,
- .keyfield_set_map_size = es2_keyfield_set_map_size,
- .actionfield_set_map = es2_actionfield_set_map,
- .actionfield_set_map_size = es2_actionfield_set_map_size,
- .keyfield_set_typegroups = es2_keyfield_set_typegroups,
- .actionfield_set_typegroups = es2_actionfield_set_typegroups,
- },
- };
- const struct vcap_statistics kunit_test_vcap_stats = {
- .name = "kunit_test",
- .count = 3,
- .keyfield_set_names = vcap_keyfield_set_names,
- .actionfield_set_names = vcap_actionfield_set_names,
- .keyfield_names = vcap_keyfield_names,
- .actionfield_names = vcap_actionfield_names,
- };
|