tomahawk3_dispatch.c (1262351B)
1 /* 2 * 3 * 4 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 5 * 6 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 7 * 8 * DO NOT EDIT THIS FILE! 9 * This file is auto-generated. 10 * Edits to this file will be lost when it is regenerated. 11 */ 12 13 int _bcm_tomahawk3_dispatch_not_empty; 14 15 #include <bcm_int/control.h> 16 #include <bcm_int/api_xlate_port.h> 17 #include <bcm/error.h> 18 #include <bcm/debug.h> 19 #include <bcm/auth.h> 20 #include <bcm/collector.h> 21 #include <bcm/cosq.h> 22 #include <bcm/cpri.h> 23 #include <bcm/custom.h> 24 #include <bcm/eav.h> 25 #include <bcm/ecn.h> 26 #include <bcm/fabric.h> 27 #include <bcm/failover.h> 28 #include <bcm/fcoe.h> 29 #include <bcm/field.h> 30 #include <bcm/flow.h> 31 #include <bcm/flowtracker.h> 32 #include <bcm/hash.h> 33 #include <bcm/ifa.h> 34 #include <bcm/init.h> 35 #include <bcm/instru.h> 36 #include <bcm/ipfix.h> 37 #include <bcm/ipsec.h> 38 #include <bcm/knet.h> 39 #include <bcm/l2.h> 40 #include <bcm/lb.h> 41 #include <bcm/link.h> 42 #include <bcm/mcast.h> 43 #include <bcm/mirror.h> 44 #include <bcm/mpls.h> 45 #include <bcm/multicast.h> 46 #include <bcm/oam.h> 47 #include <bcm/oob.h> 48 #include <bcm/policer.h> 49 #include <bcm/port.h> 50 #include <bcm/qos.h> 51 #include <bcm/range.h> 52 #include <bcm/rate.h> 53 #include <bcm/rx.h> 54 #include <bcm/sat.h> 55 #include <bcm/srv6.h> 56 #include <bcm/stack.h> 57 #include <bcm/stat.h> 58 #include <bcm/stg.h> 59 #include <bcm/subport.h> 60 #include <bcm/switch.h> 61 #include <bcm/telemetry.h> 62 #include <bcm/time.h> 63 #include <bcm/topo.h> 64 #include <bcm/trunk.h> 65 #include <bcm/tsn.h> 66 #include <bcm/tx.h> 67 #include <bcm/txbeacon.h> 68 #include <bcm/udf.h> 69 #include <bcm/vlan.h> 70 #include <bcm/vswitch.h> 71 #include <bcm_int/tomahawk3_dispatch.h> 72 #include <bcm_int/esw_dispatch.h> 73 #if defined(INCLUDE_BFD) 74 #include <bcm/bfd.h> 75 #endif 76 #if defined(INCLUDE_FCMAP) 77 #include <bcm/fcmap.h> 78 #endif 79 #if defined(INCLUDE_GDPLL) 80 #include <bcm/gdpll.h> 81 #endif 82 #if defined(INCLUDE_I2C) 83 #include <bcm/bcmi2c.h> 84 #endif 85 #if defined(INCLUDE_L3) 86 #include <bcm/extender.h> 87 #include <bcm/ipmc.h> 88 #include <bcm/l2gre.h> 89 #include <bcm/l3.h> 90 #include <bcm/mim.h> 91 #include <bcm/nat.h> 92 #include <bcm/niv.h> 93 #include <bcm/proxy.h> 94 #include <bcm/trill.h> 95 #include <bcm/tunnel.h> 96 #include <bcm/vxlan.h> 97 #include <bcm/wlan.h> 98 #endif 99 #if defined(INCLUDE_MACSEC) 100 #include <bcm/macsec.h> 101 #endif 102 #if defined(INCLUDE_PSTATS) 103 #include <bcm/pstats.h> 104 #endif 105 #if defined(INCLUDE_PTP) 106 #include <bcm/ptp.h> 107 #endif 108 #if defined(INCLUDE_REGEX) 109 #include <bcm/bregex.h> 110 #endif 111 #if defined(INCLUDE_XFLOW_MACSEC) 112 #include <bcm/xflow_macsec.h> 113 #endif 114 115 #ifdef BCM_TOMAHAWK3_SUPPORT 116 int 117 bcm_tomahawk3_auth_detach( 118 int unit) 119 { 120 return bcm_esw_auth_detach(unit); 121 } 122 #endif 123 124 #ifdef BCM_TOMAHAWK3_SUPPORT 125 int 126 bcm_tomahawk3_auth_egress_get( 127 int unit, 128 int port, 129 int *enable) 130 { 131 return bcm_esw_auth_egress_get(unit, port, enable); 132 } 133 #endif 134 135 #ifdef BCM_TOMAHAWK3_SUPPORT 136 int 137 bcm_tomahawk3_auth_egress_set( 138 int unit, 139 int port, 140 int enable) 141 { 142 return bcm_esw_auth_egress_set(unit, port, enable); 143 } 144 #endif 145 146 #ifdef BCM_TOMAHAWK3_SUPPORT 147 int 148 bcm_tomahawk3_auth_init( 149 int unit) 150 { 151 return bcm_esw_auth_init(unit); 152 } 153 #endif 154 155 #ifdef BCM_TOMAHAWK3_SUPPORT 156 int 157 bcm_tomahawk3_auth_mac_add( 158 int unit, 159 int port, 160 bcm_mac_t mac) 161 { 162 return bcm_esw_auth_mac_add(unit, port, mac); 163 } 164 #endif 165 166 int 167 bcm_tomahawk3_auth_mac_control_get( 168 int unit, 169 bcm_auth_mac_control_t type, 170 uint32 *value) 171 { 172 return BCM_E_UNAVAIL; 173 } 174 175 int 176 bcm_tomahawk3_auth_mac_control_set( 177 int unit, 178 bcm_auth_mac_control_t type, 179 uint32 value) 180 { 181 return BCM_E_UNAVAIL; 182 } 183 184 #ifdef BCM_TOMAHAWK3_SUPPORT 185 int 186 bcm_tomahawk3_auth_mac_delete( 187 int unit, 188 int port, 189 bcm_mac_t mac) 190 { 191 return bcm_esw_auth_mac_delete(unit, port, mac); 192 } 193 #endif 194 195 #ifdef BCM_TOMAHAWK3_SUPPORT 196 int 197 bcm_tomahawk3_auth_mac_delete_all( 198 int unit, 199 int port) 200 { 201 return bcm_esw_auth_mac_delete_all(unit, port); 202 } 203 #endif 204 205 #ifdef BCM_TOMAHAWK3_SUPPORT 206 int 207 bcm_tomahawk3_auth_mode_get( 208 int unit, 209 int port, 210 uint32 *modep) 211 { 212 return bcm_esw_auth_mode_get(unit, port, modep); 213 } 214 #endif 215 216 #ifdef BCM_TOMAHAWK3_SUPPORT 217 int 218 bcm_tomahawk3_auth_mode_set( 219 int unit, 220 int port, 221 uint32 mode) 222 { 223 return bcm_esw_auth_mode_set(unit, port, mode); 224 } 225 #endif 226 227 #ifdef BCM_TOMAHAWK3_SUPPORT 228 int 229 bcm_tomahawk3_auth_unauth_callback( 230 int unit, 231 bcm_auth_cb_t func, 232 void *cookie) 233 { 234 return bcm_esw_auth_unauth_callback(unit, func, cookie); 235 } 236 #endif 237 238 #if defined(INCLUDE_BFD) 239 #ifdef BCM_TOMAHAWK3_SUPPORT 240 int 241 bcm_tomahawk3_bfd_auth_sha1_get( 242 int unit, 243 int index, 244 bcm_bfd_auth_sha1_t *sha1) 245 { 246 return bcm_esw_bfd_auth_sha1_get(unit, index, sha1); 247 } 248 #endif 249 #endif 250 251 #if defined(INCLUDE_BFD) 252 #ifdef BCM_TOMAHAWK3_SUPPORT 253 int 254 bcm_tomahawk3_bfd_auth_sha1_set( 255 int unit, 256 int index, 257 bcm_bfd_auth_sha1_t *sha1) 258 { 259 return bcm_esw_bfd_auth_sha1_set(unit, index, sha1); 260 } 261 #endif 262 #endif 263 264 #if defined(INCLUDE_BFD) 265 #ifdef BCM_TOMAHAWK3_SUPPORT 266 int 267 bcm_tomahawk3_bfd_auth_simple_password_get( 268 int unit, 269 int index, 270 bcm_bfd_auth_simple_password_t *sp) 271 { 272 return bcm_esw_bfd_auth_simple_password_get(unit, index, sp); 273 } 274 #endif 275 #endif 276 277 #if defined(INCLUDE_BFD) 278 #ifdef BCM_TOMAHAWK3_SUPPORT 279 int 280 bcm_tomahawk3_bfd_auth_simple_password_set( 281 int unit, 282 int index, 283 bcm_bfd_auth_simple_password_t *sp) 284 { 285 return bcm_esw_bfd_auth_simple_password_set(unit, index, sp); 286 } 287 #endif 288 #endif 289 290 #if defined(INCLUDE_BFD) 291 #ifdef BCM_TOMAHAWK3_SUPPORT 292 int 293 bcm_tomahawk3_bfd_detach( 294 int unit) 295 { 296 return bcm_esw_bfd_detach(unit); 297 } 298 #endif 299 #endif 300 301 #if defined(INCLUDE_BFD) 302 #ifdef BCM_TOMAHAWK3_SUPPORT 303 int 304 bcm_tomahawk3_bfd_discard_stat_get( 305 int unit, 306 bcm_bfd_discard_stat_t *discarded_info) 307 { 308 return bcm_esw_bfd_discard_stat_get(unit, discarded_info); 309 } 310 #endif 311 #endif 312 313 #if defined(INCLUDE_BFD) 314 #ifdef BCM_TOMAHAWK3_SUPPORT 315 int 316 bcm_tomahawk3_bfd_discard_stat_set( 317 int unit, 318 bcm_bfd_discard_stat_t *discarded_info) 319 { 320 return bcm_esw_bfd_discard_stat_set(unit, discarded_info); 321 } 322 #endif 323 #endif 324 325 #if defined(INCLUDE_BFD) 326 #ifdef BCM_TOMAHAWK3_SUPPORT 327 int 328 bcm_tomahawk3_bfd_endpoint_create( 329 int unit, 330 bcm_bfd_endpoint_info_t *endpoint_info) 331 { 332 return bcm_esw_bfd_endpoint_create(unit, endpoint_info); 333 } 334 #endif 335 #endif 336 337 #if defined(INCLUDE_BFD) 338 #ifdef BCM_TOMAHAWK3_SUPPORT 339 int 340 bcm_tomahawk3_bfd_endpoint_destroy( 341 int unit, 342 bcm_bfd_endpoint_t endpoint) 343 { 344 return bcm_esw_bfd_endpoint_destroy(unit, endpoint); 345 } 346 #endif 347 #endif 348 349 #if defined(INCLUDE_BFD) 350 #ifdef BCM_TOMAHAWK3_SUPPORT 351 int 352 bcm_tomahawk3_bfd_endpoint_destroy_all( 353 int unit) 354 { 355 return bcm_esw_bfd_endpoint_destroy_all(unit); 356 } 357 #endif 358 #endif 359 360 #if defined(INCLUDE_BFD) 361 #ifdef BCM_TOMAHAWK3_SUPPORT 362 int 363 bcm_tomahawk3_bfd_endpoint_get( 364 int unit, 365 bcm_bfd_endpoint_t endpoint, 366 bcm_bfd_endpoint_info_t *endpoint_info) 367 { 368 return bcm_esw_bfd_endpoint_get(unit, endpoint, endpoint_info); 369 } 370 #endif 371 #endif 372 373 #if defined(INCLUDE_BFD) 374 #ifdef BCM_TOMAHAWK3_SUPPORT 375 int 376 bcm_tomahawk3_bfd_endpoint_poll( 377 int unit, 378 bcm_bfd_endpoint_t endpoint) 379 { 380 return bcm_esw_bfd_endpoint_poll(unit, endpoint); 381 } 382 #endif 383 #endif 384 385 #if defined(INCLUDE_BFD) 386 #ifdef BCM_TOMAHAWK3_SUPPORT 387 int 388 bcm_tomahawk3_bfd_endpoint_stat_get( 389 int unit, 390 bcm_bfd_endpoint_t endpoint, 391 bcm_bfd_endpoint_stat_t *ctr_info, 392 uint32 options) 393 { 394 return bcm_esw_bfd_endpoint_stat_get(unit, endpoint, ctr_info, options); 395 } 396 #endif 397 #endif 398 399 #if defined(INCLUDE_BFD) 400 #ifdef BCM_TOMAHAWK3_SUPPORT 401 int 402 bcm_tomahawk3_bfd_event_register( 403 int unit, 404 bcm_bfd_event_types_t event_types, 405 bcm_bfd_event_cb cb, 406 void *user_data) 407 { 408 return bcm_esw_bfd_event_register(unit, event_types, cb, user_data); 409 } 410 #endif 411 #endif 412 413 #if defined(INCLUDE_BFD) 414 #ifdef BCM_TOMAHAWK3_SUPPORT 415 int 416 bcm_tomahawk3_bfd_event_unregister( 417 int unit, 418 bcm_bfd_event_types_t event_types, 419 bcm_bfd_event_cb cb) 420 { 421 return bcm_esw_bfd_event_unregister(unit, event_types, cb); 422 } 423 #endif 424 #endif 425 426 #if defined(INCLUDE_BFD) 427 #ifdef BCM_TOMAHAWK3_SUPPORT 428 int 429 bcm_tomahawk3_bfd_init( 430 int unit) 431 { 432 return bcm_esw_bfd_init(unit); 433 } 434 #endif 435 #endif 436 437 #if defined(INCLUDE_BFD) 438 #ifdef BCM_TOMAHAWK3_SUPPORT 439 int 440 bcm_tomahawk3_bfd_status_multi_get( 441 int unit, 442 int max_endpoints, 443 bcm_bfd_status_t *status_arr, 444 int *count) 445 { 446 return bcm_esw_bfd_status_multi_get(unit, max_endpoints, status_arr, count); 447 } 448 #endif 449 #endif 450 451 #if defined(INCLUDE_BFD) 452 #ifdef BCM_TOMAHAWK3_SUPPORT 453 int 454 bcm_tomahawk3_bfd_tx_start( 455 int unit) 456 { 457 return bcm_esw_bfd_tx_start(unit); 458 } 459 #endif 460 #endif 461 462 #if defined(INCLUDE_BFD) 463 #ifdef BCM_TOMAHAWK3_SUPPORT 464 int 465 bcm_tomahawk3_bfd_tx_stop( 466 int unit) 467 { 468 return bcm_esw_bfd_tx_stop(unit); 469 } 470 #endif 471 #endif 472 473 #ifdef BCM_TOMAHAWK3_SUPPORT 474 int 475 bcm_tomahawk3_collector_create( 476 int unit, 477 uint32 options, 478 bcm_collector_t *collector_id, 479 bcm_collector_info_t *collector_info) 480 { 481 return bcm_esw_collector_create(unit, options, collector_id, collector_info); 482 } 483 #endif 484 485 #ifdef BCM_TOMAHAWK3_SUPPORT 486 int 487 bcm_tomahawk3_collector_destroy( 488 int unit, 489 bcm_collector_t id) 490 { 491 return bcm_esw_collector_destroy(unit, id); 492 } 493 #endif 494 495 #ifdef BCM_TOMAHAWK3_SUPPORT 496 int 497 bcm_tomahawk3_collector_detach( 498 int unit) 499 { 500 return bcm_esw_collector_detach(unit); 501 } 502 #endif 503 504 #ifdef BCM_TOMAHAWK3_SUPPORT 505 int 506 bcm_tomahawk3_collector_export_profile_create( 507 int unit, 508 uint32 options, 509 int *export_profile_id, 510 bcm_collector_export_profile_t *export_profile_info) 511 { 512 return bcm_esw_collector_export_profile_create(unit, options, export_profile_id, export_profile_info); 513 } 514 #endif 515 516 #ifdef BCM_TOMAHAWK3_SUPPORT 517 int 518 bcm_tomahawk3_collector_export_profile_destroy( 519 int unit, 520 int export_profile_id) 521 { 522 return bcm_esw_collector_export_profile_destroy(unit, export_profile_id); 523 } 524 #endif 525 526 #ifdef BCM_TOMAHAWK3_SUPPORT 527 int 528 bcm_tomahawk3_collector_export_profile_get( 529 int unit, 530 int export_profile_id, 531 bcm_collector_export_profile_t *export_profile_info) 532 { 533 return bcm_esw_collector_export_profile_get(unit, export_profile_id, export_profile_info); 534 } 535 #endif 536 537 #ifdef BCM_TOMAHAWK3_SUPPORT 538 int 539 bcm_tomahawk3_collector_export_profile_ids_get_all( 540 int unit, 541 int max_size, 542 int *export_profile_ids_list, 543 int *list_size) 544 { 545 return bcm_esw_collector_export_profile_ids_get_all(unit, max_size, export_profile_ids_list, list_size); 546 } 547 #endif 548 549 #ifdef BCM_TOMAHAWK3_SUPPORT 550 int 551 bcm_tomahawk3_collector_export_record_register( 552 int unit, 553 bcm_collector_t collector_id, 554 bcm_collector_callback_options_t callback_options, 555 bcm_collector_export_record_cb_f callback_fn, 556 void *userdata) 557 { 558 return bcm_esw_collector_export_record_register(unit, collector_id, callback_options, callback_fn, userdata); 559 } 560 #endif 561 562 #ifdef BCM_TOMAHAWK3_SUPPORT 563 int 564 bcm_tomahawk3_collector_export_record_unregister( 565 int unit, 566 bcm_collector_t collector_id, 567 bcm_collector_callback_options_t callback_options, 568 bcm_collector_export_record_cb_f callback_fn) 569 { 570 return bcm_esw_collector_export_record_unregister(unit, collector_id, callback_options, callback_fn); 571 } 572 #endif 573 574 #ifdef BCM_TOMAHAWK3_SUPPORT 575 int 576 bcm_tomahawk3_collector_get( 577 int unit, 578 bcm_collector_t id, 579 bcm_collector_info_t *collector_info) 580 { 581 return bcm_esw_collector_get(unit, id, collector_info); 582 } 583 #endif 584 585 #ifdef BCM_TOMAHAWK3_SUPPORT 586 int 587 bcm_tomahawk3_collector_get_all( 588 int unit, 589 int max_size, 590 bcm_collector_t *collector_list, 591 int *list_size) 592 { 593 return bcm_esw_collector_get_all(unit, max_size, collector_list, list_size); 594 } 595 #endif 596 597 #ifdef BCM_TOMAHAWK3_SUPPORT 598 int 599 bcm_tomahawk3_collector_init( 600 int unit) 601 { 602 return bcm_esw_collector_init(unit); 603 } 604 #endif 605 606 #ifdef BCM_TOMAHAWK3_SUPPORT 607 int 608 bcm_tomahawk3_cosq_bandwidth_fabric_adjust_get( 609 int unit, 610 uint32 flags, 611 bcm_cosq_bandwidth_fabric_adjust_key_t *key, 612 uint32 *bandwidth) 613 { 614 return bcm_esw_cosq_bandwidth_fabric_adjust_get(unit, flags, key, bandwidth); 615 } 616 #endif 617 618 #ifdef BCM_TOMAHAWK3_SUPPORT 619 int 620 bcm_tomahawk3_cosq_bandwidth_fabric_adjust_set( 621 int unit, 622 uint32 flags, 623 bcm_cosq_bandwidth_fabric_adjust_key_t *key, 624 uint32 bandwidth) 625 { 626 return bcm_esw_cosq_bandwidth_fabric_adjust_set(unit, flags, key, bandwidth); 627 } 628 #endif 629 630 #ifdef BCM_TOMAHAWK3_SUPPORT 631 int 632 bcm_tomahawk3_cosq_bst_multi_profile_get( 633 int unit, 634 bcm_gport_t gport, 635 bcm_cos_queue_t cosq, 636 bcm_bst_stat_id_t bid, 637 int array_size, 638 bcm_cosq_bst_profile_t *profile_array, 639 int *count) 640 { 641 return bcm_esw_cosq_bst_multi_profile_get(unit, gport, cosq, bid, array_size, profile_array, count); 642 } 643 #endif 644 645 #ifdef BCM_TOMAHAWK3_SUPPORT 646 int 647 bcm_tomahawk3_cosq_bst_multi_profile_set( 648 int unit, 649 bcm_gport_t gport, 650 bcm_cos_queue_t cosq, 651 bcm_bst_stat_id_t bid, 652 int array_size, 653 bcm_cosq_bst_profile_t *profile_array) 654 { 655 return bcm_esw_cosq_bst_multi_profile_set(unit, gport, cosq, bid, array_size, profile_array); 656 } 657 #endif 658 659 #ifdef BCM_TOMAHAWK3_SUPPORT 660 int 661 bcm_tomahawk3_cosq_bst_profile_get( 662 int unit, 663 bcm_gport_t gport, 664 bcm_cos_queue_t cosq, 665 bcm_bst_stat_id_t bid, 666 bcm_cosq_bst_profile_t *profile) 667 { 668 return bcm_esw_cosq_bst_profile_get(unit, gport, cosq, bid, profile); 669 } 670 #endif 671 672 #ifdef BCM_TOMAHAWK3_SUPPORT 673 int 674 bcm_tomahawk3_cosq_bst_profile_set( 675 int unit, 676 bcm_gport_t gport, 677 bcm_cos_queue_t cosq, 678 bcm_bst_stat_id_t bid, 679 bcm_cosq_bst_profile_t *profile) 680 { 681 return bcm_esw_cosq_bst_profile_set(unit, gport, cosq, bid, profile); 682 } 683 #endif 684 685 #ifdef BCM_TOMAHAWK3_SUPPORT 686 int 687 bcm_tomahawk3_cosq_bst_stat_clear( 688 int unit, 689 bcm_gport_t gport, 690 bcm_cos_queue_t cosq, 691 bcm_bst_stat_id_t bid) 692 { 693 return bcm_esw_cosq_bst_stat_clear(unit, gport, cosq, bid); 694 } 695 #endif 696 697 #ifdef BCM_TOMAHAWK3_SUPPORT 698 int 699 bcm_tomahawk3_cosq_bst_stat_extended_clear( 700 int unit, 701 bcm_cosq_object_id_t *id, 702 bcm_bst_stat_id_t bid) 703 { 704 return bcm_esw_cosq_bst_stat_extended_clear(unit, id, bid); 705 } 706 #endif 707 708 #ifdef BCM_TOMAHAWK3_SUPPORT 709 int 710 bcm_tomahawk3_cosq_bst_stat_extended_get( 711 int unit, 712 bcm_cosq_object_id_t *id, 713 bcm_bst_stat_id_t bid, 714 uint32 options, 715 uint64 *value) 716 { 717 return bcm_esw_cosq_bst_stat_extended_get(unit, id, bid, options, value); 718 } 719 #endif 720 721 #ifdef BCM_TOMAHAWK3_SUPPORT 722 int 723 bcm_tomahawk3_cosq_bst_stat_extended_get32( 724 int unit, 725 bcm_cosq_object_id_t *id, 726 bcm_bst_stat_id_t bid, 727 uint32 options, 728 uint32 *value) 729 { 730 return bcm_esw_cosq_bst_stat_extended_get32(unit, id, bid, options, value); 731 } 732 #endif 733 734 #ifdef BCM_TOMAHAWK3_SUPPORT 735 int 736 bcm_tomahawk3_cosq_bst_stat_get( 737 int unit, 738 bcm_gport_t gport, 739 bcm_cos_queue_t cosq, 740 bcm_bst_stat_id_t bid, 741 uint32 options, 742 uint64 *value) 743 { 744 return bcm_esw_cosq_bst_stat_get(unit, gport, cosq, bid, options, value); 745 } 746 #endif 747 748 #ifdef BCM_TOMAHAWK3_SUPPORT 749 int 750 bcm_tomahawk3_cosq_bst_stat_get32( 751 int unit, 752 bcm_gport_t gport, 753 bcm_cos_queue_t cosq, 754 bcm_bst_stat_id_t bid, 755 uint32 options, 756 uint32 *value) 757 { 758 return bcm_esw_cosq_bst_stat_get32(unit, gport, cosq, bid, options, value); 759 } 760 #endif 761 762 #ifdef BCM_TOMAHAWK3_SUPPORT 763 int 764 bcm_tomahawk3_cosq_bst_stat_multi_get( 765 int unit, 766 bcm_gport_t gport, 767 bcm_cos_queue_t cosq, 768 uint32 options, 769 int max_values, 770 bcm_bst_stat_id_t *id_list, 771 uint64 *values) 772 { 773 return bcm_esw_cosq_bst_stat_multi_get(unit, gport, cosq, options, max_values, id_list, values); 774 } 775 #endif 776 777 #ifdef BCM_TOMAHAWK3_SUPPORT 778 int 779 bcm_tomahawk3_cosq_bst_stat_multi_get32( 780 int unit, 781 bcm_gport_t gport, 782 bcm_cos_queue_t cosq, 783 uint32 options, 784 int max_values, 785 bcm_bst_stat_id_t *id_list, 786 uint32 *values) 787 { 788 return bcm_esw_cosq_bst_stat_multi_get32(unit, gport, cosq, options, max_values, id_list, values); 789 } 790 #endif 791 792 #ifdef BCM_TOMAHAWK3_SUPPORT 793 int 794 bcm_tomahawk3_cosq_bst_stat_sync( 795 int unit, 796 bcm_bst_stat_id_t bid) 797 { 798 return bcm_esw_cosq_bst_stat_sync(unit, bid); 799 } 800 #endif 801 802 #ifdef BCM_TOMAHAWK3_SUPPORT 803 int 804 bcm_tomahawk3_cosq_buffer_id_multi_get( 805 int unit, 806 bcm_gport_t gport, 807 bcm_cos_queue_t cosq, 808 bcm_cosq_dir_t direction, 809 int array_max, 810 bcm_cosq_buffer_id_t *buf_id_array, 811 int *array_count) 812 { 813 return bcm_esw_cosq_buffer_id_multi_get(unit, gport, cosq, direction, array_max, buf_id_array, array_count); 814 } 815 #endif 816 817 #ifdef BCM_TOMAHAWK3_SUPPORT 818 int 819 bcm_tomahawk3_cosq_burst_monitor_dma_config_get( 820 int unit, 821 uint32 *host_mem_size, 822 uint32 **host_mem_add) 823 { 824 return bcm_esw_cosq_burst_monitor_dma_config_get(unit, host_mem_size, host_mem_add); 825 } 826 #endif 827 828 #ifdef BCM_TOMAHAWK3_SUPPORT 829 int 830 bcm_tomahawk3_cosq_burst_monitor_dma_config_set( 831 int unit, 832 uint32 host_mem_size, 833 uint32 **host_mem_add) 834 { 835 return bcm_esw_cosq_burst_monitor_dma_config_set(unit, host_mem_size, host_mem_add); 836 } 837 #endif 838 839 #ifdef BCM_TOMAHAWK3_SUPPORT 840 int 841 bcm_tomahawk3_cosq_burst_monitor_get( 842 int unit, 843 int max_gports, 844 bcm_gport_t *gport_list, 845 int *num_gports) 846 { 847 return bcm_esw_cosq_burst_monitor_get(unit, max_gports, gport_list, num_gports); 848 } 849 #endif 850 851 #ifdef BCM_TOMAHAWK3_SUPPORT 852 int 853 bcm_tomahawk3_cosq_burst_monitor_set( 854 int unit, 855 int num_gports, 856 bcm_gport_t *gport_list) 857 { 858 return bcm_esw_cosq_burst_monitor_set(unit, num_gports, gport_list); 859 } 860 #endif 861 862 #ifdef BCM_TOMAHAWK3_SUPPORT 863 int 864 bcm_tomahawk3_cosq_classifier_create( 865 int unit, 866 bcm_cosq_classifier_t *classifier, 867 int *classifier_id) 868 { 869 return bcm_esw_cosq_classifier_create(unit, classifier, classifier_id); 870 } 871 #endif 872 873 #ifdef BCM_TOMAHAWK3_SUPPORT 874 int 875 bcm_tomahawk3_cosq_classifier_destroy( 876 int unit, 877 int classifier_id) 878 { 879 return bcm_esw_cosq_classifier_destroy(unit, classifier_id); 880 } 881 #endif 882 883 #ifdef BCM_TOMAHAWK3_SUPPORT 884 int 885 bcm_tomahawk3_cosq_classifier_get( 886 int unit, 887 int classifier_id, 888 bcm_cosq_classifier_t *classifier) 889 { 890 return bcm_esw_cosq_classifier_get(unit, classifier_id, classifier); 891 } 892 #endif 893 894 #ifdef BCM_TOMAHAWK3_SUPPORT 895 int 896 bcm_tomahawk3_cosq_classifier_id_get( 897 int unit, 898 bcm_cosq_classifier_t *classifier, 899 int array_count, 900 bcm_cos_t *priority_array, 901 bcm_cos_queue_t *cosq_array, 902 int *classifier_id) 903 { 904 return bcm_esw_cosq_classifier_id_get(unit, classifier, array_count, priority_array, cosq_array, classifier_id); 905 } 906 #endif 907 908 #ifdef BCM_TOMAHAWK3_SUPPORT 909 int 910 bcm_tomahawk3_cosq_classifier_mapping_clear( 911 int unit, 912 bcm_gport_t port, 913 int classifier_id) 914 { 915 return bcm_esw_cosq_classifier_mapping_clear(unit, port, classifier_id); 916 } 917 #endif 918 919 #ifdef BCM_TOMAHAWK3_SUPPORT 920 int 921 bcm_tomahawk3_cosq_classifier_mapping_get( 922 int unit, 923 bcm_gport_t port, 924 int classifier_id, 925 bcm_gport_t *queue_group, 926 bcm_cos_t priority, 927 bcm_cos_queue_t *cosq) 928 { 929 return bcm_esw_cosq_classifier_mapping_get(unit, port, classifier_id, queue_group, priority, cosq); 930 } 931 #endif 932 933 #ifdef BCM_TOMAHAWK3_SUPPORT 934 int 935 bcm_tomahawk3_cosq_classifier_mapping_multi_get( 936 int unit, 937 bcm_gport_t port, 938 int classifier_id, 939 bcm_gport_t *queue_group, 940 int array_max, 941 bcm_cos_t *priority_array, 942 bcm_cos_queue_t *cosq_array, 943 int *array_count) 944 { 945 return bcm_esw_cosq_classifier_mapping_multi_get(unit, port, classifier_id, queue_group, array_max, priority_array, cosq_array, array_count); 946 } 947 #endif 948 949 #ifdef BCM_TOMAHAWK3_SUPPORT 950 int 951 bcm_tomahawk3_cosq_classifier_mapping_multi_set( 952 int unit, 953 bcm_gport_t port, 954 int classifier_id, 955 bcm_gport_t queue_group, 956 int array_count, 957 bcm_cos_t *priority_array, 958 bcm_cos_queue_t *cosq_array) 959 { 960 return bcm_esw_cosq_classifier_mapping_multi_set(unit, port, classifier_id, queue_group, array_count, priority_array, cosq_array); 961 } 962 #endif 963 964 #ifdef BCM_TOMAHAWK3_SUPPORT 965 int 966 bcm_tomahawk3_cosq_classifier_mapping_set( 967 int unit, 968 bcm_gport_t port, 969 int classifier_id, 970 bcm_gport_t queue_group, 971 bcm_cos_t priority, 972 bcm_cos_queue_t cosq) 973 { 974 return bcm_esw_cosq_classifier_mapping_set(unit, port, classifier_id, queue_group, priority, cosq); 975 } 976 #endif 977 978 #ifdef BCM_TOMAHAWK3_SUPPORT 979 int 980 bcm_tomahawk3_cosq_config_get( 981 int unit, 982 int *numq) 983 { 984 return bcm_esw_cosq_config_get(unit, numq); 985 } 986 #endif 987 988 #ifdef BCM_TOMAHAWK3_SUPPORT 989 int 990 bcm_tomahawk3_cosq_config_set( 991 int unit, 992 int numq) 993 { 994 return bcm_esw_cosq_config_set(unit, numq); 995 } 996 #endif 997 998 #ifdef BCM_TOMAHAWK3_SUPPORT 999 int 1000 bcm_tomahawk3_cosq_congestion_mapping_get( 1001 int unit, 1002 int fabric_modid, 1003 bcm_cosq_congestion_mapping_info_t *mapping_info) 1004 { 1005 return bcm_esw_cosq_congestion_mapping_get(unit, fabric_modid, mapping_info); 1006 } 1007 #endif 1008 1009 #ifdef BCM_TOMAHAWK3_SUPPORT 1010 int 1011 bcm_tomahawk3_cosq_congestion_mapping_set( 1012 int unit, 1013 int fabric_modid, 1014 bcm_cosq_congestion_mapping_info_t *mapping_info) 1015 { 1016 return bcm_esw_cosq_congestion_mapping_set(unit, fabric_modid, mapping_info); 1017 } 1018 #endif 1019 1020 #ifdef BCM_TOMAHAWK3_SUPPORT 1021 int 1022 bcm_tomahawk3_cosq_control_extended_get( 1023 int unit, 1024 bcm_cosq_object_id_t *id, 1025 bcm_cosq_control_data_t *control) 1026 { 1027 return bcm_esw_cosq_control_extended_get(unit, id, control); 1028 } 1029 #endif 1030 1031 #ifdef BCM_TOMAHAWK3_SUPPORT 1032 int 1033 bcm_tomahawk3_cosq_control_extended_set( 1034 int unit, 1035 bcm_cosq_object_id_t *id, 1036 bcm_cosq_control_data_t *control) 1037 { 1038 return bcm_esw_cosq_control_extended_set(unit, id, control); 1039 } 1040 #endif 1041 1042 #ifdef BCM_TOMAHAWK3_SUPPORT 1043 int 1044 bcm_tomahawk3_cosq_control_get( 1045 int unit, 1046 bcm_gport_t port, 1047 bcm_cos_queue_t cosq, 1048 bcm_cosq_control_t type, 1049 int *arg) 1050 { 1051 return bcm_esw_cosq_control_get(unit, port, cosq, type, arg); 1052 } 1053 #endif 1054 1055 int 1056 bcm_tomahawk3_cosq_control_range_get( 1057 int unit, 1058 bcm_gport_t port, 1059 uint32 flags, 1060 bcm_cosq_control_range_type_t type, 1061 bcm_cosq_range_t *range) 1062 { 1063 return BCM_E_UNAVAIL; 1064 } 1065 1066 int 1067 bcm_tomahawk3_cosq_control_range_set( 1068 int unit, 1069 bcm_gport_t port, 1070 uint32 flags, 1071 bcm_cosq_control_range_type_t type, 1072 bcm_cosq_range_t *range) 1073 { 1074 return BCM_E_UNAVAIL; 1075 } 1076 1077 #ifdef BCM_TOMAHAWK3_SUPPORT 1078 int 1079 bcm_tomahawk3_cosq_control_set( 1080 int unit, 1081 bcm_gport_t port, 1082 bcm_cos_queue_t cosq, 1083 bcm_cosq_control_t type, 1084 int arg) 1085 { 1086 return bcm_esw_cosq_control_set(unit, port, cosq, type, arg); 1087 } 1088 #endif 1089 1090 #ifdef BCM_TOMAHAWK3_SUPPORT 1091 int 1092 bcm_tomahawk3_cosq_cpu_cosq_enable_get( 1093 int unit, 1094 bcm_cos_queue_t cosq, 1095 int *enable) 1096 { 1097 return bcm_esw_cosq_cpu_cosq_enable_get(unit, cosq, enable); 1098 } 1099 #endif 1100 1101 #ifdef BCM_TOMAHAWK3_SUPPORT 1102 int 1103 bcm_tomahawk3_cosq_cpu_cosq_enable_set( 1104 int unit, 1105 bcm_cos_queue_t cosq, 1106 int enable) 1107 { 1108 return bcm_esw_cosq_cpu_cosq_enable_set(unit, cosq, enable); 1109 } 1110 #endif 1111 1112 #ifdef BCM_TOMAHAWK3_SUPPORT 1113 int 1114 bcm_tomahawk3_cosq_delay_tolerance_level_get( 1115 int unit, 1116 int delay_tolerance_level, 1117 bcm_cosq_delay_tolerance_t *delay_tolerance) 1118 { 1119 return bcm_esw_cosq_delay_tolerance_level_get(unit, delay_tolerance_level, delay_tolerance); 1120 } 1121 #endif 1122 1123 #ifdef BCM_TOMAHAWK3_SUPPORT 1124 int 1125 bcm_tomahawk3_cosq_delay_tolerance_level_set( 1126 int unit, 1127 int delay_tolerance_level, 1128 bcm_cosq_delay_tolerance_t *delay_tolerance) 1129 { 1130 return bcm_esw_cosq_delay_tolerance_level_set(unit, delay_tolerance_level, delay_tolerance); 1131 } 1132 #endif 1133 1134 #ifdef BCM_TOMAHAWK3_SUPPORT 1135 int 1136 bcm_tomahawk3_cosq_delay_tolerance_preset_get( 1137 int unit, 1138 bcm_cosq_delay_tolerance_preset_attr_t *preset_attr, 1139 bcm_cosq_delay_tolerance_t *delay_tolerance) 1140 { 1141 return bcm_esw_cosq_delay_tolerance_preset_get(unit, preset_attr, delay_tolerance); 1142 } 1143 #endif 1144 1145 int 1146 bcm_tomahawk3_cosq_dest_credit_size_get( 1147 int unit, 1148 bcm_module_t dest_modid, 1149 uint32 *credit_size) 1150 { 1151 return BCM_E_UNAVAIL; 1152 } 1153 1154 int 1155 bcm_tomahawk3_cosq_dest_credit_size_set( 1156 int unit, 1157 bcm_module_t dest_modid, 1158 uint32 credit_size) 1159 { 1160 return BCM_E_UNAVAIL; 1161 } 1162 1163 #ifdef BCM_TOMAHAWK3_SUPPORT 1164 int 1165 bcm_tomahawk3_cosq_detach( 1166 int unit) 1167 { 1168 return bcm_esw_cosq_detach(unit); 1169 } 1170 #endif 1171 1172 #ifdef BCM_TOMAHAWK3_SUPPORT 1173 int 1174 bcm_tomahawk3_cosq_discard_get( 1175 int unit, 1176 uint32 *flags) 1177 { 1178 return bcm_esw_cosq_discard_get(unit, flags); 1179 } 1180 #endif 1181 1182 #ifdef BCM_TOMAHAWK3_SUPPORT 1183 int 1184 bcm_tomahawk3_cosq_discard_port_get( 1185 int unit, 1186 bcm_port_t port, 1187 bcm_cos_queue_t cosq, 1188 uint32 color, 1189 int *drop_start, 1190 int *drop_slope, 1191 int *average_time) 1192 { 1193 return bcm_esw_cosq_discard_port_get(unit, port, cosq, color, drop_start, drop_slope, average_time); 1194 } 1195 #endif 1196 1197 #ifdef BCM_TOMAHAWK3_SUPPORT 1198 int 1199 bcm_tomahawk3_cosq_discard_port_set( 1200 int unit, 1201 bcm_port_t port, 1202 bcm_cos_queue_t cosq, 1203 uint32 color, 1204 int drop_start, 1205 int drop_slope, 1206 int average_time) 1207 { 1208 return bcm_esw_cosq_discard_port_set(unit, port, cosq, color, drop_start, drop_slope, average_time); 1209 } 1210 #endif 1211 1212 #ifdef BCM_TOMAHAWK3_SUPPORT 1213 int 1214 bcm_tomahawk3_cosq_discard_profile_create( 1215 int unit, 1216 int *profile_id) 1217 { 1218 return bcm_esw_cosq_discard_profile_create(unit, profile_id); 1219 } 1220 #endif 1221 1222 #ifdef BCM_TOMAHAWK3_SUPPORT 1223 int 1224 bcm_tomahawk3_cosq_discard_profile_destroy( 1225 int unit, 1226 int profile_id) 1227 { 1228 return bcm_esw_cosq_discard_profile_destroy(unit, profile_id); 1229 } 1230 #endif 1231 1232 #ifdef BCM_TOMAHAWK3_SUPPORT 1233 int 1234 bcm_tomahawk3_cosq_discard_profile_get( 1235 int unit, 1236 int profile_id, 1237 int max, 1238 bcm_cosq_discard_rule_t *rule_array, 1239 int *rule_count) 1240 { 1241 return bcm_esw_cosq_discard_profile_get(unit, profile_id, max, rule_array, rule_count); 1242 } 1243 #endif 1244 1245 #ifdef BCM_TOMAHAWK3_SUPPORT 1246 int 1247 bcm_tomahawk3_cosq_discard_profile_update( 1248 int unit, 1249 int profile_id, 1250 bcm_cosq_discard_rule_t *rule) 1251 { 1252 return bcm_esw_cosq_discard_profile_update(unit, profile_id, rule); 1253 } 1254 #endif 1255 1256 #ifdef BCM_TOMAHAWK3_SUPPORT 1257 int 1258 bcm_tomahawk3_cosq_discard_set( 1259 int unit, 1260 uint32 flags) 1261 { 1262 return bcm_esw_cosq_discard_set(unit, flags); 1263 } 1264 #endif 1265 1266 #ifdef BCM_TOMAHAWK3_SUPPORT 1267 int 1268 bcm_tomahawk3_cosq_event_register( 1269 int unit, 1270 bcm_cosq_event_types_t event_types, 1271 bcm_gport_t port, 1272 bcm_cos_queue_t cosq, 1273 bcm_cosq_event_cb cb, 1274 void *user_data) 1275 { 1276 return bcm_esw_cosq_event_register(unit, event_types, port, cosq, cb, user_data); 1277 } 1278 #endif 1279 1280 #ifdef BCM_TOMAHAWK3_SUPPORT 1281 int 1282 bcm_tomahawk3_cosq_event_unregister( 1283 int unit, 1284 bcm_cosq_event_types_t event_types, 1285 bcm_gport_t port, 1286 bcm_cos_queue_t cosq, 1287 bcm_cosq_event_cb cb) 1288 { 1289 return bcm_esw_cosq_event_unregister(unit, event_types, port, cosq, cb); 1290 } 1291 #endif 1292 1293 #ifdef BCM_TOMAHAWK3_SUPPORT 1294 int 1295 bcm_tomahawk3_cosq_fc_path_add( 1296 int unit, 1297 bcm_cosq_fc_direction_type_t fc_direction, 1298 bcm_cosq_fc_endpoint_t *source, 1299 bcm_cosq_fc_endpoint_t *target) 1300 { 1301 return bcm_esw_cosq_fc_path_add(unit, fc_direction, source, target); 1302 } 1303 #endif 1304 1305 #ifdef BCM_TOMAHAWK3_SUPPORT 1306 int 1307 bcm_tomahawk3_cosq_fc_path_delete( 1308 int unit, 1309 bcm_cosq_fc_direction_type_t fc_direction, 1310 bcm_cosq_fc_endpoint_t *source, 1311 bcm_cosq_fc_endpoint_t *target) 1312 { 1313 return bcm_esw_cosq_fc_path_delete(unit, fc_direction, source, target); 1314 } 1315 #endif 1316 1317 #ifdef BCM_TOMAHAWK3_SUPPORT 1318 int 1319 bcm_tomahawk3_cosq_fc_path_get( 1320 int unit, 1321 bcm_cosq_fc_direction_type_t fc_direction, 1322 bcm_cosq_fc_endpoint_t *source, 1323 int target_max, 1324 bcm_cosq_fc_endpoint_t *target, 1325 int *target_count) 1326 { 1327 return bcm_esw_cosq_fc_path_get(unit, fc_direction, source, target_max, target, target_count); 1328 } 1329 #endif 1330 1331 #ifdef BCM_TOMAHAWK3_SUPPORT 1332 int 1333 bcm_tomahawk3_cosq_generic_control_get( 1334 int unit, 1335 uint32 flags, 1336 bcm_gport_t gport, 1337 uint32 key, 1338 bcm_cosq_generic_control_t type, 1339 uint32 *arg) 1340 { 1341 return bcm_esw_cosq_generic_control_get(unit, flags, gport, key, type, arg); 1342 } 1343 #endif 1344 1345 #ifdef BCM_TOMAHAWK3_SUPPORT 1346 int 1347 bcm_tomahawk3_cosq_generic_control_set( 1348 int unit, 1349 uint32 flags, 1350 bcm_gport_t gport, 1351 uint32 key, 1352 bcm_cosq_generic_control_t type, 1353 uint32 arg) 1354 { 1355 return bcm_esw_cosq_generic_control_set(unit, flags, gport, key, type, arg); 1356 } 1357 #endif 1358 1359 #ifdef BCM_TOMAHAWK3_SUPPORT 1360 int 1361 bcm_tomahawk3_cosq_gport_add( 1362 int unit, 1363 bcm_gport_t port, 1364 int numq, 1365 uint32 flags, 1366 bcm_gport_t *gport) 1367 { 1368 return bcm_esw_cosq_gport_add(unit, port, numq, flags, gport); 1369 } 1370 #endif 1371 1372 #ifdef BCM_TOMAHAWK3_SUPPORT 1373 int 1374 bcm_tomahawk3_cosq_gport_attach( 1375 int unit, 1376 bcm_gport_t sched_port, 1377 bcm_gport_t input_port, 1378 bcm_cos_queue_t cosq) 1379 { 1380 return bcm_esw_cosq_gport_attach(unit, sched_port, input_port, cosq); 1381 } 1382 #endif 1383 1384 #ifdef BCM_TOMAHAWK3_SUPPORT 1385 int 1386 bcm_tomahawk3_cosq_gport_attach_get( 1387 int unit, 1388 bcm_gport_t sched_port, 1389 bcm_gport_t *input_port, 1390 bcm_cos_queue_t *cosq) 1391 { 1392 return bcm_esw_cosq_gport_attach_get(unit, sched_port, input_port, cosq); 1393 } 1394 #endif 1395 1396 #ifdef BCM_TOMAHAWK3_SUPPORT 1397 int 1398 bcm_tomahawk3_cosq_gport_bandwidth_get( 1399 int unit, 1400 bcm_gport_t gport, 1401 bcm_cos_queue_t cosq, 1402 uint32 *kbits_sec_min, 1403 uint32 *kbits_sec_max, 1404 uint32 *flags) 1405 { 1406 return bcm_esw_cosq_gport_bandwidth_get(unit, gport, cosq, kbits_sec_min, kbits_sec_max, flags); 1407 } 1408 #endif 1409 1410 #ifdef BCM_TOMAHAWK3_SUPPORT 1411 int 1412 bcm_tomahawk3_cosq_gport_bandwidth_set( 1413 int unit, 1414 bcm_gport_t gport, 1415 bcm_cos_queue_t cosq, 1416 uint32 kbits_sec_min, 1417 uint32 kbits_sec_max, 1418 uint32 flags) 1419 { 1420 return bcm_esw_cosq_gport_bandwidth_set(unit, gport, cosq, kbits_sec_min, kbits_sec_max, flags); 1421 } 1422 #endif 1423 1424 #ifdef BCM_TOMAHAWK3_SUPPORT 1425 int 1426 bcm_tomahawk3_cosq_gport_child_get( 1427 int unit, 1428 bcm_gport_t in_gport, 1429 bcm_cos_queue_t cosq, 1430 bcm_gport_t *out_gport) 1431 { 1432 return bcm_esw_cosq_gport_child_get(unit, in_gport, cosq, out_gport); 1433 } 1434 #endif 1435 1436 #ifdef BCM_TOMAHAWK3_SUPPORT 1437 int 1438 bcm_tomahawk3_cosq_gport_color_size_get( 1439 int unit, 1440 bcm_gport_t gport, 1441 bcm_cos_queue_t cosq, 1442 bcm_color_t color, 1443 uint32 flags, 1444 bcm_cosq_gport_size_t *gport_size) 1445 { 1446 return bcm_esw_cosq_gport_color_size_get(unit, gport, cosq, color, flags, gport_size); 1447 } 1448 #endif 1449 1450 #ifdef BCM_TOMAHAWK3_SUPPORT 1451 int 1452 bcm_tomahawk3_cosq_gport_color_size_set( 1453 int unit, 1454 bcm_gport_t gport, 1455 bcm_cos_queue_t cosq, 1456 bcm_color_t color, 1457 uint32 flags, 1458 bcm_cosq_gport_size_t *gport_size) 1459 { 1460 return bcm_esw_cosq_gport_color_size_set(unit, gport, cosq, color, flags, gport_size); 1461 } 1462 #endif 1463 1464 #ifdef BCM_TOMAHAWK3_SUPPORT 1465 int 1466 bcm_tomahawk3_cosq_gport_congestion_config_get( 1467 int unit, 1468 bcm_gport_t gport, 1469 bcm_cos_queue_t cosq, 1470 bcm_cosq_congestion_info_t *config) 1471 { 1472 return bcm_esw_cosq_gport_congestion_config_get(unit, gport, cosq, config); 1473 } 1474 #endif 1475 1476 #ifdef BCM_TOMAHAWK3_SUPPORT 1477 int 1478 bcm_tomahawk3_cosq_gport_congestion_config_set( 1479 int unit, 1480 bcm_gport_t gport, 1481 bcm_cos_queue_t cosq, 1482 bcm_cosq_congestion_info_t *config) 1483 { 1484 return bcm_esw_cosq_gport_congestion_config_set(unit, gport, cosq, config); 1485 } 1486 #endif 1487 1488 #ifdef BCM_TOMAHAWK3_SUPPORT 1489 int 1490 bcm_tomahawk3_cosq_gport_connection_get( 1491 int unit, 1492 bcm_cosq_gport_connection_t *gport_connect) 1493 { 1494 return bcm_esw_cosq_gport_connection_get(unit, gport_connect); 1495 } 1496 #endif 1497 1498 #ifdef BCM_TOMAHAWK3_SUPPORT 1499 int 1500 bcm_tomahawk3_cosq_gport_connection_set( 1501 int unit, 1502 bcm_cosq_gport_connection_t *gport_connect) 1503 { 1504 return bcm_esw_cosq_gport_connection_set(unit, gport_connect); 1505 } 1506 #endif 1507 1508 #ifdef BCM_TOMAHAWK3_SUPPORT 1509 int 1510 bcm_tomahawk3_cosq_gport_delete( 1511 int unit, 1512 bcm_gport_t gport) 1513 { 1514 return bcm_esw_cosq_gport_delete(unit, gport); 1515 } 1516 #endif 1517 1518 #ifdef BCM_TOMAHAWK3_SUPPORT 1519 int 1520 bcm_tomahawk3_cosq_gport_destmod_attach( 1521 int unit, 1522 bcm_gport_t gport, 1523 bcm_port_t ingress_port, 1524 bcm_module_t dest_modid, 1525 int fabric_egress_port) 1526 { 1527 return bcm_esw_cosq_gport_destmod_attach(unit, gport, ingress_port, dest_modid, fabric_egress_port); 1528 } 1529 #endif 1530 1531 #ifdef BCM_TOMAHAWK3_SUPPORT 1532 int 1533 bcm_tomahawk3_cosq_gport_destmod_detach( 1534 int unit, 1535 bcm_gport_t gport, 1536 bcm_port_t ingress_port, 1537 bcm_module_t dest_modid, 1538 int fabric_egress_port) 1539 { 1540 return bcm_esw_cosq_gport_destmod_detach(unit, gport, ingress_port, dest_modid, fabric_egress_port); 1541 } 1542 #endif 1543 1544 #ifdef BCM_TOMAHAWK3_SUPPORT 1545 int 1546 bcm_tomahawk3_cosq_gport_detach( 1547 int unit, 1548 bcm_gport_t sched_port, 1549 bcm_gport_t input_port, 1550 bcm_cos_queue_t cosq) 1551 { 1552 return bcm_esw_cosq_gport_detach(unit, sched_port, input_port, cosq); 1553 } 1554 #endif 1555 1556 #ifdef BCM_TOMAHAWK3_SUPPORT 1557 int 1558 bcm_tomahawk3_cosq_gport_discard_extended_get( 1559 int unit, 1560 bcm_cosq_object_id_t *id, 1561 bcm_cosq_gport_discard_t *discard) 1562 { 1563 return bcm_esw_cosq_gport_discard_extended_get(unit, id, discard); 1564 } 1565 #endif 1566 1567 #ifdef BCM_TOMAHAWK3_SUPPORT 1568 int 1569 bcm_tomahawk3_cosq_gport_discard_extended_set( 1570 int unit, 1571 bcm_cosq_object_id_t *id, 1572 bcm_cosq_gport_discard_t *discard) 1573 { 1574 return bcm_esw_cosq_gport_discard_extended_set(unit, id, discard); 1575 } 1576 #endif 1577 1578 #ifdef BCM_TOMAHAWK3_SUPPORT 1579 int 1580 bcm_tomahawk3_cosq_gport_discard_get( 1581 int unit, 1582 bcm_gport_t gport, 1583 bcm_cos_queue_t cosq, 1584 bcm_cosq_gport_discard_t *discard) 1585 { 1586 return bcm_esw_cosq_gport_discard_get(unit, gport, cosq, discard); 1587 } 1588 #endif 1589 1590 #ifdef BCM_TOMAHAWK3_SUPPORT 1591 int 1592 bcm_tomahawk3_cosq_gport_discard_set( 1593 int unit, 1594 bcm_gport_t gport, 1595 bcm_cos_queue_t cosq, 1596 bcm_cosq_gport_discard_t *discard) 1597 { 1598 return bcm_esw_cosq_gport_discard_set(unit, gport, cosq, discard); 1599 } 1600 #endif 1601 1602 int 1603 bcm_tomahawk3_cosq_gport_dynamic_sched_get( 1604 int unit, 1605 bcm_gport_t gport, 1606 bcm_cos_queue_t cosq, 1607 bcm_cosq_dynamic_state_t state, 1608 int *weight) 1609 { 1610 return BCM_E_UNAVAIL; 1611 } 1612 1613 int 1614 bcm_tomahawk3_cosq_gport_dynamic_sched_set( 1615 int unit, 1616 bcm_gport_t gport, 1617 bcm_cos_queue_t cosq, 1618 bcm_cosq_dynamic_state_t state, 1619 int weight) 1620 { 1621 return BCM_E_UNAVAIL; 1622 } 1623 1624 #ifdef BCM_TOMAHAWK3_SUPPORT 1625 int 1626 bcm_tomahawk3_cosq_gport_egress_map_get( 1627 int unit, 1628 bcm_gport_t gport, 1629 bcm_cos_t ingress_pri, 1630 bcm_color_t ingress_dp, 1631 bcm_cos_queue_t *offset) 1632 { 1633 return bcm_esw_cosq_gport_egress_map_get(unit, gport, ingress_pri, ingress_dp, offset); 1634 } 1635 #endif 1636 1637 #ifdef BCM_TOMAHAWK3_SUPPORT 1638 int 1639 bcm_tomahawk3_cosq_gport_egress_map_set( 1640 int unit, 1641 bcm_gport_t gport, 1642 bcm_cos_t ingress_pri, 1643 bcm_color_t ingress_dp, 1644 bcm_cos_queue_t offset) 1645 { 1646 return bcm_esw_cosq_gport_egress_map_set(unit, gport, ingress_pri, ingress_dp, offset); 1647 } 1648 #endif 1649 1650 #ifdef BCM_TOMAHAWK3_SUPPORT 1651 int 1652 bcm_tomahawk3_cosq_gport_egress_mapping_get( 1653 int unit, 1654 bcm_gport_t gport, 1655 bcm_cos_t *int_pri, 1656 bcm_cos_t *cos, 1657 uint32 flags) 1658 { 1659 return bcm_esw_cosq_gport_egress_mapping_get(unit, gport, int_pri, cos, flags); 1660 } 1661 #endif 1662 1663 #ifdef BCM_TOMAHAWK3_SUPPORT 1664 int 1665 bcm_tomahawk3_cosq_gport_egress_mapping_set( 1666 int unit, 1667 bcm_gport_t gport, 1668 bcm_cos_t int_pri, 1669 bcm_cos_t cos, 1670 uint32 flags) 1671 { 1672 return bcm_esw_cosq_gport_egress_mapping_set(unit, gport, int_pri, cos, flags); 1673 } 1674 #endif 1675 1676 #ifdef BCM_TOMAHAWK3_SUPPORT 1677 int 1678 bcm_tomahawk3_cosq_gport_egress_multicast_config_get( 1679 int unit, 1680 bcm_gport_t gport, 1681 bcm_cos_t ingress_pri, 1682 bcm_color_t ingress_dp, 1683 uint32 flags, 1684 bcm_cosq_egress_multicast_config_t *config) 1685 { 1686 return bcm_esw_cosq_gport_egress_multicast_config_get(unit, gport, ingress_pri, ingress_dp, flags, config); 1687 } 1688 #endif 1689 1690 #ifdef BCM_TOMAHAWK3_SUPPORT 1691 int 1692 bcm_tomahawk3_cosq_gport_egress_multicast_config_set( 1693 int unit, 1694 bcm_gport_t gport, 1695 bcm_cos_t ingress_pri, 1696 bcm_color_t ingress_dp, 1697 uint32 flags, 1698 bcm_cosq_egress_multicast_config_t *config) 1699 { 1700 return bcm_esw_cosq_gport_egress_multicast_config_set(unit, gport, ingress_pri, ingress_dp, flags, config); 1701 } 1702 #endif 1703 1704 #ifdef BCM_TOMAHAWK3_SUPPORT 1705 int 1706 bcm_tomahawk3_cosq_gport_enable_get( 1707 int unit, 1708 bcm_gport_t gport, 1709 bcm_cos_queue_t cosq, 1710 int *enable) 1711 { 1712 return bcm_esw_cosq_gport_enable_get(unit, gport, cosq, enable); 1713 } 1714 #endif 1715 1716 #ifdef BCM_TOMAHAWK3_SUPPORT 1717 int 1718 bcm_tomahawk3_cosq_gport_enable_set( 1719 int unit, 1720 bcm_gport_t gport, 1721 bcm_cos_queue_t cosq, 1722 int enable) 1723 { 1724 return bcm_esw_cosq_gport_enable_set(unit, gport, cosq, enable); 1725 } 1726 #endif 1727 1728 int 1729 bcm_tomahawk3_cosq_gport_fadt_threshold_get( 1730 int unit, 1731 uint32 flags, 1732 bcm_cosq_fadt_info_t *fadt_info, 1733 bcm_cosq_fadt_threshold_t *threshold) 1734 { 1735 return BCM_E_UNAVAIL; 1736 } 1737 1738 int 1739 bcm_tomahawk3_cosq_gport_fadt_threshold_set( 1740 int unit, 1741 uint32 flags, 1742 bcm_cosq_fadt_info_t *fadt_info, 1743 bcm_cosq_fadt_threshold_t *threshold) 1744 { 1745 return BCM_E_UNAVAIL; 1746 } 1747 1748 int 1749 bcm_tomahawk3_cosq_gport_flow_control_get( 1750 int unit, 1751 bcm_gport_t port, 1752 bcm_cos_t int_pri, 1753 uint32 *flow_control_mask) 1754 { 1755 return BCM_E_UNAVAIL; 1756 } 1757 1758 int 1759 bcm_tomahawk3_cosq_gport_flow_control_set( 1760 int unit, 1761 bcm_gport_t port, 1762 bcm_cos_t int_pri, 1763 uint32 flow_control_mask) 1764 { 1765 return BCM_E_UNAVAIL; 1766 } 1767 1768 #ifdef BCM_TOMAHAWK3_SUPPORT 1769 int 1770 bcm_tomahawk3_cosq_gport_get( 1771 int unit, 1772 bcm_gport_t gport, 1773 bcm_gport_t *physical_port, 1774 int *num_cos_levels, 1775 uint32 *flags) 1776 { 1777 return bcm_esw_cosq_gport_get(unit, gport, physical_port, num_cos_levels, flags); 1778 } 1779 #endif 1780 1781 #ifdef BCM_TOMAHAWK3_SUPPORT 1782 int 1783 bcm_tomahawk3_cosq_gport_handle_core_get( 1784 int unit, 1785 bcm_core_t core, 1786 bcm_cosq_gport_info_core_t *gport_info, 1787 bcm_gport_t *out_gport) 1788 { 1789 return bcm_esw_cosq_gport_handle_core_get(unit, core, gport_info, out_gport); 1790 } 1791 #endif 1792 1793 #ifdef BCM_TOMAHAWK3_SUPPORT 1794 int 1795 bcm_tomahawk3_cosq_gport_handle_get( 1796 int unit, 1797 bcm_cosq_gport_type_t gport_type, 1798 bcm_cosq_gport_info_t *gport_info) 1799 { 1800 return bcm_esw_cosq_gport_handle_get(unit, gport_type, gport_info); 1801 } 1802 #endif 1803 1804 #ifdef BCM_TOMAHAWK3_SUPPORT 1805 int 1806 bcm_tomahawk3_cosq_gport_info_get( 1807 int unit, 1808 bcm_gport_t gport, 1809 bcm_cosq_gport_level_info_t *info) 1810 { 1811 return bcm_esw_cosq_gport_info_get(unit, gport, info); 1812 } 1813 #endif 1814 1815 #ifdef BCM_TOMAHAWK3_SUPPORT 1816 int 1817 bcm_tomahawk3_cosq_gport_mapping_get( 1818 int unit, 1819 bcm_port_t ing_port, 1820 bcm_cos_t int_pri, 1821 uint32 flags, 1822 bcm_gport_t *gport, 1823 bcm_cos_queue_t *cosq) 1824 { 1825 return bcm_esw_cosq_gport_mapping_get(unit, ing_port, int_pri, flags, gport, cosq); 1826 } 1827 #endif 1828 1829 #ifdef BCM_TOMAHAWK3_SUPPORT 1830 int 1831 bcm_tomahawk3_cosq_gport_mapping_set( 1832 int unit, 1833 bcm_port_t ing_port, 1834 bcm_cos_t int_pri, 1835 uint32 flags, 1836 bcm_gport_t gport, 1837 bcm_cos_queue_t cosq) 1838 { 1839 return bcm_esw_cosq_gport_mapping_set(unit, ing_port, int_pri, flags, gport, cosq); 1840 } 1841 #endif 1842 1843 int 1844 bcm_tomahawk3_cosq_gport_multipath_add( 1845 int unit, 1846 bcm_gport_t multipath_gport, 1847 bcm_gport_t member_gport, 1848 bcm_cos_queue_t member_gport_cosq) 1849 { 1850 return BCM_E_UNAVAIL; 1851 } 1852 1853 int 1854 bcm_tomahawk3_cosq_gport_multipath_delete( 1855 int unit, 1856 bcm_gport_t multipath_gport, 1857 bcm_gport_t member_gport, 1858 bcm_cos_queue_t member_gport_cosq) 1859 { 1860 return BCM_E_UNAVAIL; 1861 } 1862 1863 int 1864 bcm_tomahawk3_cosq_gport_multipath_get( 1865 int unit, 1866 bcm_gport_t multipath_gport, 1867 int member_gport_max, 1868 bcm_gport_t *member_gport_array, 1869 bcm_cos_queue_t *member_gport_cosq_array, 1870 int *member_gport_count) 1871 { 1872 return BCM_E_UNAVAIL; 1873 } 1874 1875 #ifdef BCM_TOMAHAWK3_SUPPORT 1876 int 1877 bcm_tomahawk3_cosq_gport_parent_get( 1878 int unit, 1879 bcm_gport_t child_port, 1880 bcm_cos_queue_t cos, 1881 bcm_gport_t *parent_port) 1882 { 1883 return bcm_esw_cosq_gport_parent_get(unit, child_port, cos, parent_port); 1884 } 1885 #endif 1886 1887 int 1888 bcm_tomahawk3_cosq_gport_pkt_size_adjust_get( 1889 int unit, 1890 bcm_cosq_pkt_size_adjust_info_t *adjust_info, 1891 int *delta) 1892 { 1893 return BCM_E_UNAVAIL; 1894 } 1895 1896 int 1897 bcm_tomahawk3_cosq_gport_pkt_size_adjust_set( 1898 int unit, 1899 bcm_cosq_pkt_size_adjust_info_t *adjust_info, 1900 int delta) 1901 { 1902 return BCM_E_UNAVAIL; 1903 } 1904 1905 #ifdef BCM_TOMAHAWK3_SUPPORT 1906 int 1907 bcm_tomahawk3_cosq_gport_pon_link_sla_get( 1908 int unit, 1909 bcm_gport_t gport, 1910 bcm_cos_pon_link_sla_t *link_sla) 1911 { 1912 return bcm_esw_cosq_gport_pon_link_sla_get(unit, gport, link_sla); 1913 } 1914 #endif 1915 1916 #ifdef BCM_TOMAHAWK3_SUPPORT 1917 int 1918 bcm_tomahawk3_cosq_gport_pon_link_sla_set( 1919 int unit, 1920 bcm_gport_t gport, 1921 bcm_cos_pon_link_sla_t *link_sla) 1922 { 1923 return bcm_esw_cosq_gport_pon_link_sla_set(unit, gport, link_sla); 1924 } 1925 #endif 1926 1927 int 1928 bcm_tomahawk3_cosq_gport_queue_attach( 1929 int unit, 1930 uint32 flags, 1931 bcm_gport_t ingress_queue, 1932 bcm_cos_t ingress_int_pri, 1933 bcm_gport_t egress_queue, 1934 bcm_cos_t egress_int_pri, 1935 int *attach_id) 1936 { 1937 return BCM_E_UNAVAIL; 1938 } 1939 1940 int 1941 bcm_tomahawk3_cosq_gport_queue_attach_get( 1942 int unit, 1943 bcm_gport_t ingress_queue, 1944 bcm_cos_t ingress_int_pri, 1945 bcm_gport_t *egress_queue, 1946 bcm_cos_t *egress_int_pri, 1947 int attach_id) 1948 { 1949 return BCM_E_UNAVAIL; 1950 } 1951 1952 int 1953 bcm_tomahawk3_cosq_gport_queue_detach( 1954 int unit, 1955 bcm_gport_t ingress_queue, 1956 bcm_cos_t ingress_int_pri, 1957 int attach_id) 1958 { 1959 return BCM_E_UNAVAIL; 1960 } 1961 1962 int 1963 bcm_tomahawk3_cosq_gport_rate_class_create( 1964 int unit, 1965 bcm_gport_t gport, 1966 uint32 flags, 1967 bcm_cosq_rate_class_create_info_t *create_info) 1968 { 1969 return BCM_E_UNAVAIL; 1970 } 1971 1972 #ifdef BCM_TOMAHAWK3_SUPPORT 1973 int 1974 bcm_tomahawk3_cosq_gport_reattach( 1975 int unit, 1976 bcm_gport_t sched_port, 1977 bcm_gport_t input_port, 1978 bcm_cos_queue_t cosq) 1979 { 1980 return bcm_esw_cosq_gport_reattach(unit, sched_port, input_port, cosq); 1981 } 1982 #endif 1983 1984 int 1985 bcm_tomahawk3_cosq_gport_report_threshold_get( 1986 int unit, 1987 bcm_gport_t gport, 1988 bcm_cos_queue_t cosq, 1989 bcm_cosq_report_threshold_t *threshold) 1990 { 1991 return BCM_E_UNAVAIL; 1992 } 1993 1994 int 1995 bcm_tomahawk3_cosq_gport_report_threshold_set( 1996 int unit, 1997 bcm_gport_t gport, 1998 bcm_cos_queue_t cosq, 1999 bcm_cosq_report_threshold_t *threshold) 2000 { 2001 return BCM_E_UNAVAIL; 2002 } 2003 2004 int 2005 bcm_tomahawk3_cosq_gport_sched_config_get( 2006 int unit, 2007 bcm_gport_t gport, 2008 int sched_mode, 2009 int int_pri, 2010 uint32 *flags) 2011 { 2012 return BCM_E_UNAVAIL; 2013 } 2014 2015 int 2016 bcm_tomahawk3_cosq_gport_sched_config_set( 2017 int unit, 2018 bcm_gport_t gport, 2019 int sched_mode, 2020 int int_pri, 2021 uint32 flags) 2022 { 2023 return BCM_E_UNAVAIL; 2024 } 2025 2026 #ifdef BCM_TOMAHAWK3_SUPPORT 2027 int 2028 bcm_tomahawk3_cosq_gport_sched_get( 2029 int unit, 2030 bcm_gport_t gport, 2031 bcm_cos_queue_t cosq, 2032 int *mode, 2033 int *weight) 2034 { 2035 return bcm_esw_cosq_gport_sched_get(unit, gport, cosq, mode, weight); 2036 } 2037 #endif 2038 2039 #ifdef BCM_TOMAHAWK3_SUPPORT 2040 int 2041 bcm_tomahawk3_cosq_gport_sched_set( 2042 int unit, 2043 bcm_gport_t gport, 2044 bcm_cos_queue_t cosq, 2045 int mode, 2046 int weight) 2047 { 2048 return bcm_esw_cosq_gport_sched_set(unit, gport, cosq, mode, weight); 2049 } 2050 #endif 2051 2052 #ifdef BCM_TOMAHAWK3_SUPPORT 2053 int 2054 bcm_tomahawk3_cosq_gport_size_get( 2055 int unit, 2056 bcm_gport_t gport, 2057 bcm_cos_queue_t cosq, 2058 uint32 *bytes_min, 2059 uint32 *bytes_max) 2060 { 2061 return bcm_esw_cosq_gport_size_get(unit, gport, cosq, bytes_min, bytes_max); 2062 } 2063 #endif 2064 2065 #ifdef BCM_TOMAHAWK3_SUPPORT 2066 int 2067 bcm_tomahawk3_cosq_gport_size_set( 2068 int unit, 2069 bcm_gport_t gport, 2070 bcm_cos_queue_t cosq, 2071 uint32 bytes_min, 2072 uint32 bytes_max) 2073 { 2074 return bcm_esw_cosq_gport_size_set(unit, gport, cosq, bytes_min, bytes_max); 2075 } 2076 #endif 2077 2078 #ifdef BCM_TOMAHAWK3_SUPPORT 2079 int 2080 bcm_tomahawk3_cosq_gport_stat_enable_get( 2081 int unit, 2082 bcm_gport_t gport, 2083 int *enable) 2084 { 2085 return bcm_esw_cosq_gport_stat_enable_get(unit, gport, enable); 2086 } 2087 #endif 2088 2089 #ifdef BCM_TOMAHAWK3_SUPPORT 2090 int 2091 bcm_tomahawk3_cosq_gport_stat_enable_set( 2092 int unit, 2093 bcm_gport_t gport, 2094 int enable) 2095 { 2096 return bcm_esw_cosq_gport_stat_enable_set(unit, gport, enable); 2097 } 2098 #endif 2099 2100 #ifdef BCM_TOMAHAWK3_SUPPORT 2101 int 2102 bcm_tomahawk3_cosq_gport_stat_get( 2103 int unit, 2104 bcm_gport_t gport, 2105 bcm_cos_queue_t cosq, 2106 bcm_cosq_gport_stats_t stat, 2107 uint64 *value) 2108 { 2109 return bcm_esw_cosq_gport_stat_get(unit, gport, cosq, stat, value); 2110 } 2111 #endif 2112 2113 #ifdef BCM_TOMAHAWK3_SUPPORT 2114 int 2115 bcm_tomahawk3_cosq_gport_stat_set( 2116 int unit, 2117 bcm_gport_t gport, 2118 bcm_cos_queue_t cosq, 2119 bcm_cosq_gport_stats_t stat, 2120 uint64 value) 2121 { 2122 return bcm_esw_cosq_gport_stat_set(unit, gport, cosq, stat, value); 2123 } 2124 #endif 2125 2126 #ifdef BCM_TOMAHAWK3_SUPPORT 2127 int 2128 bcm_tomahawk3_cosq_gport_stat_sync_get( 2129 int unit, 2130 bcm_gport_t gport, 2131 bcm_cos_queue_t cosq, 2132 bcm_cosq_gport_stats_t stat, 2133 uint64 *value) 2134 { 2135 return bcm_esw_cosq_gport_stat_sync_get(unit, gport, cosq, stat, value); 2136 } 2137 #endif 2138 2139 #ifdef BCM_TOMAHAWK3_SUPPORT 2140 int 2141 bcm_tomahawk3_cosq_gport_static_threshold_get( 2142 int unit, 2143 uint32 flags, 2144 bcm_cosq_static_threshold_info_t *thresh_info, 2145 bcm_cosq_static_threshold_t *threshold) 2146 { 2147 return bcm_esw_cosq_gport_static_threshold_get(unit, flags, thresh_info, threshold); 2148 } 2149 #endif 2150 2151 #ifdef BCM_TOMAHAWK3_SUPPORT 2152 int 2153 bcm_tomahawk3_cosq_gport_static_threshold_set( 2154 int unit, 2155 uint32 flags, 2156 bcm_cosq_static_threshold_info_t *thresh_info, 2157 bcm_cosq_static_threshold_t *threshold) 2158 { 2159 return bcm_esw_cosq_gport_static_threshold_set(unit, flags, thresh_info, threshold); 2160 } 2161 #endif 2162 2163 int 2164 bcm_tomahawk3_cosq_gport_statistic_multi_get( 2165 int unit, 2166 bcm_gport_t gport, 2167 bcm_gport_t lgl_gport, 2168 bcm_cos_queue_t cosq, 2169 int stat_count, 2170 bcm_cosq_gport_stats_t *stats_array, 2171 int value_count, 2172 uint64 *value_array) 2173 { 2174 return BCM_E_UNAVAIL; 2175 } 2176 2177 int 2178 bcm_tomahawk3_cosq_gport_statistic_multi_set( 2179 int unit, 2180 bcm_gport_t gport, 2181 bcm_gport_t lgl_gport, 2182 bcm_cos_queue_t cosq, 2183 int stat_count, 2184 bcm_cosq_gport_stats_t *stats_array, 2185 uint64 value) 2186 { 2187 return BCM_E_UNAVAIL; 2188 } 2189 2190 #ifdef BCM_TOMAHAWK3_SUPPORT 2191 int 2192 bcm_tomahawk3_cosq_gport_threshold_get( 2193 int unit, 2194 bcm_gport_t gport, 2195 bcm_cos_queue_t cosq, 2196 bcm_cosq_threshold_t *threshold) 2197 { 2198 return bcm_esw_cosq_gport_threshold_get(unit, gport, cosq, threshold); 2199 } 2200 #endif 2201 2202 #ifdef BCM_TOMAHAWK3_SUPPORT 2203 int 2204 bcm_tomahawk3_cosq_gport_threshold_set( 2205 int unit, 2206 bcm_gport_t gport, 2207 bcm_cos_queue_t cosq, 2208 bcm_cosq_threshold_t *threshold) 2209 { 2210 return bcm_esw_cosq_gport_threshold_set(unit, gport, cosq, threshold); 2211 } 2212 #endif 2213 2214 #ifdef BCM_TOMAHAWK3_SUPPORT 2215 int 2216 bcm_tomahawk3_cosq_gport_traverse( 2217 int unit, 2218 bcm_cosq_gport_traverse_cb cb, 2219 void *user_data) 2220 { 2221 return bcm_esw_cosq_gport_traverse(unit, cb, user_data); 2222 } 2223 #endif 2224 2225 int 2226 bcm_tomahawk3_cosq_gport_traverse_by_port( 2227 int unit, 2228 bcm_gport_t port, 2229 bcm_cosq_gport_traverse_cb cb, 2230 void *user_data) 2231 { 2232 return BCM_E_UNAVAIL; 2233 } 2234 2235 #ifdef BCM_TOMAHAWK3_SUPPORT 2236 int 2237 bcm_tomahawk3_cosq_gport_vsq_add( 2238 int unit, 2239 bcm_gport_t vsq, 2240 bcm_gport_t queue, 2241 bcm_cos_queue_t cosq) 2242 { 2243 return bcm_esw_cosq_gport_vsq_add(unit, vsq, queue, cosq); 2244 } 2245 #endif 2246 2247 #ifdef BCM_TOMAHAWK3_SUPPORT 2248 int 2249 bcm_tomahawk3_cosq_gport_vsq_create( 2250 int unit, 2251 bcm_cosq_vsq_info_t *vsq_info, 2252 bcm_gport_t *vsq_gport) 2253 { 2254 return bcm_esw_cosq_gport_vsq_create(unit, vsq_info, vsq_gport); 2255 } 2256 #endif 2257 2258 #ifdef BCM_TOMAHAWK3_SUPPORT 2259 int 2260 bcm_tomahawk3_cosq_gport_vsq_delete( 2261 int unit, 2262 bcm_gport_t vsq, 2263 bcm_gport_t queue, 2264 bcm_cos_queue_t cosq) 2265 { 2266 return bcm_esw_cosq_gport_vsq_delete(unit, vsq, queue, cosq); 2267 } 2268 #endif 2269 2270 #ifdef BCM_TOMAHAWK3_SUPPORT 2271 int 2272 bcm_tomahawk3_cosq_gport_vsq_delete_all( 2273 int unit, 2274 bcm_gport_t vsq) 2275 { 2276 return bcm_esw_cosq_gport_vsq_delete_all(unit, vsq); 2277 } 2278 #endif 2279 2280 #ifdef BCM_TOMAHAWK3_SUPPORT 2281 int 2282 bcm_tomahawk3_cosq_gport_vsq_destroy( 2283 int unit, 2284 bcm_gport_t vsq_gport) 2285 { 2286 return bcm_esw_cosq_gport_vsq_destroy(unit, vsq_gport); 2287 } 2288 #endif 2289 2290 #ifdef BCM_TOMAHAWK3_SUPPORT 2291 int 2292 bcm_tomahawk3_cosq_gport_vsq_get( 2293 int unit, 2294 bcm_gport_t vsq, 2295 int queue_max, 2296 bcm_gport_t *queue_array, 2297 bcm_cos_queue_t *cosq_array, 2298 int *queue_count) 2299 { 2300 return bcm_esw_cosq_gport_vsq_get(unit, vsq, queue_max, queue_array, cosq_array, queue_count); 2301 } 2302 #endif 2303 2304 int 2305 bcm_tomahawk3_cosq_icgm_resource_stat_get( 2306 int unit, 2307 bcm_cosq_icgm_resource_stat_key_t *stat_key, 2308 uint64 *value) 2309 { 2310 return BCM_E_UNAVAIL; 2311 } 2312 2313 int 2314 bcm_tomahawk3_cosq_ingress_port_drop_control_frame_get( 2315 int unit, 2316 bcm_port_t port, 2317 uint32 flags, 2318 uint32 control_frame_index, 2319 bcm_cosq_ingress_drop_control_frame_config_t *control_frame_config) 2320 { 2321 return BCM_E_UNAVAIL; 2322 } 2323 2324 int 2325 bcm_tomahawk3_cosq_ingress_port_drop_control_frame_set( 2326 int unit, 2327 bcm_port_t port, 2328 uint32 flags, 2329 uint32 control_frame_index, 2330 bcm_cosq_ingress_drop_control_frame_config_t *control_frame_config) 2331 { 2332 return BCM_E_UNAVAIL; 2333 } 2334 2335 int 2336 bcm_tomahawk3_cosq_ingress_port_drop_custom_ether_type_get( 2337 int unit, 2338 bcm_port_t port, 2339 uint32 flags, 2340 uint32 ether_type_code, 2341 uint32 *ether_type_val) 2342 { 2343 return BCM_E_UNAVAIL; 2344 } 2345 2346 int 2347 bcm_tomahawk3_cosq_ingress_port_drop_custom_ether_type_set( 2348 int unit, 2349 bcm_port_t port, 2350 uint32 flags, 2351 uint32 ether_type_code, 2352 uint32 ether_type_val) 2353 { 2354 return BCM_E_UNAVAIL; 2355 } 2356 2357 int 2358 bcm_tomahawk3_cosq_ingress_port_drop_default_priority_get( 2359 int unit, 2360 bcm_port_t port, 2361 uint32 flags, 2362 uint32 *default_priority) 2363 { 2364 return BCM_E_UNAVAIL; 2365 } 2366 2367 int 2368 bcm_tomahawk3_cosq_ingress_port_drop_default_priority_set( 2369 int unit, 2370 bcm_port_t port, 2371 uint32 flags, 2372 uint32 default_priority) 2373 { 2374 return BCM_E_UNAVAIL; 2375 } 2376 2377 int 2378 bcm_tomahawk3_cosq_ingress_port_drop_enable_get( 2379 int unit, 2380 bcm_port_t port, 2381 uint32 flags, 2382 int *enable_mode) 2383 { 2384 return BCM_E_UNAVAIL; 2385 } 2386 2387 int 2388 bcm_tomahawk3_cosq_ingress_port_drop_enable_set( 2389 int unit, 2390 bcm_port_t port, 2391 uint32 flags, 2392 int enable_mode) 2393 { 2394 return BCM_E_UNAVAIL; 2395 } 2396 2397 int 2398 bcm_tomahawk3_cosq_ingress_port_drop_flex_key_construct_get( 2399 int unit, 2400 bcm_cosq_ingress_drop_flex_key_construct_id_t *key_id, 2401 uint32 flags, 2402 bcm_cosq_ingress_drop_flex_key_construct_t *flex_key_config) 2403 { 2404 return BCM_E_UNAVAIL; 2405 } 2406 2407 int 2408 bcm_tomahawk3_cosq_ingress_port_drop_flex_key_construct_set( 2409 int unit, 2410 bcm_cosq_ingress_drop_flex_key_construct_id_t *key_id, 2411 uint32 flags, 2412 bcm_cosq_ingress_drop_flex_key_construct_t *flex_key_config) 2413 { 2414 return BCM_E_UNAVAIL; 2415 } 2416 2417 int 2418 bcm_tomahawk3_cosq_ingress_port_drop_flex_key_entry_get( 2419 int unit, 2420 bcm_port_t port, 2421 uint32 flags, 2422 uint32 key_index, 2423 bcm_cosq_ingress_drop_flex_key_entry_t *flex_key_info) 2424 { 2425 return BCM_E_UNAVAIL; 2426 } 2427 2428 int 2429 bcm_tomahawk3_cosq_ingress_port_drop_flex_key_entry_set( 2430 int unit, 2431 bcm_port_t port, 2432 uint32 flags, 2433 uint32 key_index, 2434 bcm_cosq_ingress_drop_flex_key_entry_t *flex_key_info) 2435 { 2436 return BCM_E_UNAVAIL; 2437 } 2438 2439 int 2440 bcm_tomahawk3_cosq_ingress_port_drop_map_get( 2441 int unit, 2442 bcm_port_t port, 2443 uint32 flags, 2444 bcm_cosq_ingress_port_drop_map_t map, 2445 uint32 key, 2446 int *priority) 2447 { 2448 return BCM_E_UNAVAIL; 2449 } 2450 2451 int 2452 bcm_tomahawk3_cosq_ingress_port_drop_map_set( 2453 int unit, 2454 bcm_port_t port, 2455 uint32 flags, 2456 bcm_cosq_ingress_port_drop_map_t map, 2457 uint32 key, 2458 int priority) 2459 { 2460 return BCM_E_UNAVAIL; 2461 } 2462 2463 int 2464 bcm_tomahawk3_cosq_ingress_port_drop_mpls_special_label_get( 2465 int unit, 2466 bcm_port_t port, 2467 uint32 flags, 2468 uint32 label_index, 2469 bcm_cosq_ingress_port_drop_mpls_special_label_config_t *label_config) 2470 { 2471 return BCM_E_UNAVAIL; 2472 } 2473 2474 int 2475 bcm_tomahawk3_cosq_ingress_port_drop_mpls_special_label_set( 2476 int unit, 2477 bcm_port_t port, 2478 uint32 flags, 2479 uint32 label_index, 2480 bcm_cosq_ingress_port_drop_mpls_special_label_config_t *label_config) 2481 { 2482 return BCM_E_UNAVAIL; 2483 } 2484 2485 int 2486 bcm_tomahawk3_cosq_ingress_port_drop_threshold_get( 2487 int unit, 2488 bcm_port_t port, 2489 uint32 flags, 2490 int priority, 2491 uint32 *value) 2492 { 2493 return BCM_E_UNAVAIL; 2494 } 2495 2496 int 2497 bcm_tomahawk3_cosq_ingress_port_drop_threshold_set( 2498 int unit, 2499 bcm_port_t port, 2500 uint32 flags, 2501 int priority, 2502 uint32 value) 2503 { 2504 return BCM_E_UNAVAIL; 2505 } 2506 2507 int 2508 bcm_tomahawk3_cosq_ingress_queue_bundle_gport_add( 2509 int unit, 2510 bcm_cosq_ingress_queue_bundle_gport_config_t *config, 2511 bcm_gport_t *gport) 2512 { 2513 return BCM_E_UNAVAIL; 2514 } 2515 2516 #ifdef BCM_TOMAHAWK3_SUPPORT 2517 int 2518 bcm_tomahawk3_cosq_init( 2519 int unit) 2520 { 2521 return bcm_esw_cosq_init(unit); 2522 } 2523 #endif 2524 2525 int 2526 bcm_tomahawk3_cosq_latency_profile_create( 2527 int unit, 2528 int flags, 2529 bcm_gport_t *profile_gport) 2530 { 2531 return BCM_E_UNAVAIL; 2532 } 2533 2534 int 2535 bcm_tomahawk3_cosq_latency_profile_destroy( 2536 int unit, 2537 int flags, 2538 bcm_gport_t profile_gport) 2539 { 2540 return BCM_E_UNAVAIL; 2541 } 2542 2543 #ifdef BCM_TOMAHAWK3_SUPPORT 2544 int 2545 bcm_tomahawk3_cosq_mapping_get( 2546 int unit, 2547 bcm_cos_t priority, 2548 bcm_cos_queue_t *cosq) 2549 { 2550 return bcm_esw_cosq_mapping_get(unit, priority, cosq); 2551 } 2552 #endif 2553 2554 #ifdef BCM_TOMAHAWK3_SUPPORT 2555 int 2556 bcm_tomahawk3_cosq_mapping_set( 2557 int unit, 2558 bcm_cos_t priority, 2559 bcm_cos_queue_t cosq) 2560 { 2561 return bcm_esw_cosq_mapping_set(unit, priority, cosq); 2562 } 2563 #endif 2564 2565 int 2566 bcm_tomahawk3_cosq_max_latency_pkts_get( 2567 int unit, 2568 bcm_gport_t gport, 2569 uint32 flags, 2570 int max_count, 2571 bcm_cosq_max_latency_pkts_t *max_latency_pkts, 2572 int *actual_count) 2573 { 2574 return BCM_E_UNAVAIL; 2575 } 2576 2577 #ifdef BCM_TOMAHAWK3_SUPPORT 2578 int 2579 bcm_tomahawk3_cosq_mirror_on_drop_group_get( 2580 int unit, 2581 uint32 flags, 2582 int group_id, 2583 bcm_cosq_mirror_on_drop_group_info_t *group_info) 2584 { 2585 return bcm_esw_cosq_mirror_on_drop_group_get(unit, flags, group_id, group_info); 2586 } 2587 #endif 2588 2589 #ifdef BCM_TOMAHAWK3_SUPPORT 2590 int 2591 bcm_tomahawk3_cosq_mirror_on_drop_group_set( 2592 int unit, 2593 uint32 flags, 2594 int group_id, 2595 bcm_cosq_mirror_on_drop_group_info_t *group_info) 2596 { 2597 return bcm_esw_cosq_mirror_on_drop_group_set(unit, flags, group_id, group_info); 2598 } 2599 #endif 2600 2601 int 2602 bcm_tomahawk3_cosq_pfc_class_mapping_get( 2603 int unit, 2604 bcm_gport_t port, 2605 int array_max, 2606 bcm_cosq_pfc_class_mapping_t *mapping_array, 2607 int *array_count) 2608 { 2609 return BCM_E_UNAVAIL; 2610 } 2611 2612 int 2613 bcm_tomahawk3_cosq_pfc_class_mapping_set( 2614 int unit, 2615 bcm_gport_t port, 2616 int array_count, 2617 bcm_cosq_pfc_class_mapping_t *mapping_array) 2618 { 2619 return BCM_E_UNAVAIL; 2620 } 2621 2622 int 2623 bcm_tomahawk3_cosq_pfc_config_get( 2624 int unit, 2625 bcm_gport_t gport, 2626 bcm_cos_queue_t cosq, 2627 uint32 flags, 2628 bcm_cosq_pfc_config_t *config) 2629 { 2630 return BCM_E_UNAVAIL; 2631 } 2632 2633 int 2634 bcm_tomahawk3_cosq_pfc_config_set( 2635 int unit, 2636 bcm_gport_t gport, 2637 bcm_cos_queue_t cosq, 2638 uint32 flags, 2639 bcm_cosq_pfc_config_t *config) 2640 { 2641 return BCM_E_UNAVAIL; 2642 } 2643 2644 #ifdef BCM_TOMAHAWK3_SUPPORT 2645 int 2646 bcm_tomahawk3_cosq_pfc_deadlock_config_get( 2647 int unit, 2648 int priority, 2649 bcm_cosq_pfc_deadlock_config_t *config) 2650 { 2651 return bcm_esw_cosq_pfc_deadlock_config_get(unit, priority, config); 2652 } 2653 #endif 2654 2655 #ifdef BCM_TOMAHAWK3_SUPPORT 2656 int 2657 bcm_tomahawk3_cosq_pfc_deadlock_config_set( 2658 int unit, 2659 int priority, 2660 bcm_cosq_pfc_deadlock_config_t *config) 2661 { 2662 return bcm_esw_cosq_pfc_deadlock_config_set(unit, priority, config); 2663 } 2664 #endif 2665 2666 #ifdef BCM_TOMAHAWK3_SUPPORT 2667 int 2668 bcm_tomahawk3_cosq_pfc_deadlock_info_get( 2669 int unit, 2670 int priority, 2671 bcm_cosq_pfc_deadlock_info_t *pfc_deadlock_info) 2672 { 2673 return bcm_esw_cosq_pfc_deadlock_info_get(unit, priority, pfc_deadlock_info); 2674 } 2675 #endif 2676 2677 #ifdef BCM_TOMAHAWK3_SUPPORT 2678 int 2679 bcm_tomahawk3_cosq_pfc_deadlock_queue_config_get( 2680 int unit, 2681 bcm_gport_t gport, 2682 bcm_cosq_pfc_deadlock_queue_config_t *q_config) 2683 { 2684 return bcm_esw_cosq_pfc_deadlock_queue_config_get(unit, gport, q_config); 2685 } 2686 #endif 2687 2688 #ifdef BCM_TOMAHAWK3_SUPPORT 2689 int 2690 bcm_tomahawk3_cosq_pfc_deadlock_queue_config_set( 2691 int unit, 2692 bcm_gport_t gport, 2693 bcm_cosq_pfc_deadlock_queue_config_t *q_config) 2694 { 2695 return bcm_esw_cosq_pfc_deadlock_queue_config_set(unit, gport, q_config); 2696 } 2697 #endif 2698 2699 #ifdef BCM_TOMAHAWK3_SUPPORT 2700 int 2701 bcm_tomahawk3_cosq_pfc_deadlock_queue_status_get( 2702 int unit, 2703 bcm_gport_t gport, 2704 uint8 *deadlock_status) 2705 { 2706 return bcm_esw_cosq_pfc_deadlock_queue_status_get(unit, gport, deadlock_status); 2707 } 2708 #endif 2709 2710 #ifdef BCM_TOMAHAWK3_SUPPORT 2711 int 2712 bcm_tomahawk3_cosq_pfc_deadlock_recovery_event_register( 2713 int unit, 2714 bcm_cosq_pfc_deadlock_recovery_event_cb_t callback, 2715 void *userdata) 2716 { 2717 return bcm_esw_cosq_pfc_deadlock_recovery_event_register(unit, callback, userdata); 2718 } 2719 #endif 2720 2721 #ifdef BCM_TOMAHAWK3_SUPPORT 2722 int 2723 bcm_tomahawk3_cosq_pfc_deadlock_recovery_event_unregister( 2724 int unit, 2725 bcm_cosq_pfc_deadlock_recovery_event_cb_t callback, 2726 void *userdata) 2727 { 2728 return bcm_esw_cosq_pfc_deadlock_recovery_event_unregister(unit, callback, userdata); 2729 } 2730 #endif 2731 2732 #ifdef BCM_TOMAHAWK3_SUPPORT 2733 int 2734 bcm_tomahawk3_cosq_pfc_deadlock_recovery_exit( 2735 int unit, 2736 bcm_port_t port, 2737 bcm_cos_t cosq) 2738 { 2739 return bcm_esw_cosq_pfc_deadlock_recovery_exit(unit, port, cosq); 2740 } 2741 #endif 2742 2743 #ifdef BCM_TOMAHAWK3_SUPPORT 2744 int 2745 bcm_tomahawk3_cosq_pfc_deadlock_recovery_start( 2746 int unit, 2747 bcm_port_t port, 2748 bcm_cos_t cosq) 2749 { 2750 return bcm_esw_cosq_pfc_deadlock_recovery_start(unit, port, cosq); 2751 } 2752 #endif 2753 2754 int 2755 bcm_tomahawk3_cosq_pkt_size_adjust_delta_map_get( 2756 int unit, 2757 int delta, 2758 int *final_delta) 2759 { 2760 return BCM_E_UNAVAIL; 2761 } 2762 2763 int 2764 bcm_tomahawk3_cosq_pkt_size_adjust_delta_map_set( 2765 int unit, 2766 int delta, 2767 int final_delta) 2768 { 2769 return BCM_E_UNAVAIL; 2770 } 2771 2772 #ifdef BCM_TOMAHAWK3_SUPPORT 2773 int 2774 bcm_tomahawk3_cosq_port_bandwidth_get( 2775 int unit, 2776 bcm_port_t port, 2777 bcm_cos_queue_t cosq, 2778 uint32 *kbits_sec_min, 2779 uint32 *kbits_sec_max, 2780 uint32 *flags) 2781 { 2782 return bcm_esw_cosq_port_bandwidth_get(unit, port, cosq, kbits_sec_min, kbits_sec_max, flags); 2783 } 2784 #endif 2785 2786 #ifdef BCM_TOMAHAWK3_SUPPORT 2787 int 2788 bcm_tomahawk3_cosq_port_bandwidth_set( 2789 int unit, 2790 bcm_port_t port, 2791 bcm_cos_queue_t cosq, 2792 uint32 kbits_sec_min, 2793 uint32 kbits_sec_max, 2794 uint32 flags) 2795 { 2796 return bcm_esw_cosq_port_bandwidth_set(unit, port, cosq, kbits_sec_min, kbits_sec_max, flags); 2797 } 2798 #endif 2799 2800 #ifdef BCM_TOMAHAWK3_SUPPORT 2801 int 2802 bcm_tomahawk3_cosq_port_mapping_get( 2803 int unit, 2804 bcm_port_t port, 2805 bcm_cos_t priority, 2806 bcm_cos_queue_t *cosq) 2807 { 2808 return bcm_esw_cosq_port_mapping_get(unit, port, priority, cosq); 2809 } 2810 #endif 2811 2812 #ifdef BCM_TOMAHAWK3_SUPPORT 2813 int 2814 bcm_tomahawk3_cosq_port_mapping_multi_get( 2815 int unit, 2816 bcm_port_t port, 2817 int count, 2818 bcm_cos_t *priority_array, 2819 bcm_cos_queue_t *cosq_array) 2820 { 2821 return bcm_esw_cosq_port_mapping_multi_get(unit, port, count, priority_array, cosq_array); 2822 } 2823 #endif 2824 2825 #ifdef BCM_TOMAHAWK3_SUPPORT 2826 int 2827 bcm_tomahawk3_cosq_port_mapping_multi_set( 2828 int unit, 2829 bcm_port_t port, 2830 int count, 2831 bcm_cos_t *priority_array, 2832 bcm_cos_queue_t *cosq_array) 2833 { 2834 return bcm_esw_cosq_port_mapping_multi_set(unit, port, count, priority_array, cosq_array); 2835 } 2836 #endif 2837 2838 #ifdef BCM_TOMAHAWK3_SUPPORT 2839 int 2840 bcm_tomahawk3_cosq_port_mapping_set( 2841 int unit, 2842 bcm_port_t port, 2843 bcm_cos_t priority, 2844 bcm_cos_queue_t cosq) 2845 { 2846 return bcm_esw_cosq_port_mapping_set(unit, port, priority, cosq); 2847 } 2848 #endif 2849 2850 #ifdef BCM_TOMAHAWK3_SUPPORT 2851 int 2852 bcm_tomahawk3_cosq_port_sched_get( 2853 int unit, 2854 bcm_pbmp_t pbm, 2855 int *mode, 2856 int weights[BCM_COS_COUNT], 2857 int *delay) 2858 { 2859 return bcm_esw_cosq_port_sched_get(unit, pbm, mode, weights, delay); 2860 } 2861 #endif 2862 2863 #ifdef BCM_TOMAHAWK3_SUPPORT 2864 int 2865 bcm_tomahawk3_cosq_port_sched_set( 2866 int unit, 2867 bcm_pbmp_t pbm, 2868 int mode, 2869 const int weights[BCM_COS_COUNT], 2870 int delay) 2871 { 2872 return bcm_esw_cosq_port_sched_set(unit, pbm, mode, weights, delay); 2873 } 2874 #endif 2875 2876 int 2877 bcm_tomahawk3_cosq_priority_get( 2878 int unit, 2879 int start_queue, 2880 int end_queue, 2881 int *pri_profile_id) 2882 { 2883 return BCM_E_UNAVAIL; 2884 } 2885 2886 int 2887 bcm_tomahawk3_cosq_priority_mapping_get_all( 2888 int unit, 2889 bcm_gport_t gport, 2890 int index, 2891 bcm_cosq_priority_mapping_t type, 2892 int pri_max, 2893 int *pri_array, 2894 int *pri_count) 2895 { 2896 return BCM_E_UNAVAIL; 2897 } 2898 2899 int 2900 bcm_tomahawk3_cosq_priority_profile_get( 2901 int unit, 2902 int pri_profile_id, 2903 int *count, 2904 bcm_cosq_gport_priority_profile_t *pri_profile) 2905 { 2906 return BCM_E_UNAVAIL; 2907 } 2908 2909 int 2910 bcm_tomahawk3_cosq_priority_profile_set( 2911 int unit, 2912 int pri_profile_id, 2913 int count, 2914 bcm_cosq_gport_priority_profile_t *pri_profile) 2915 { 2916 return BCM_E_UNAVAIL; 2917 } 2918 2919 int 2920 bcm_tomahawk3_cosq_priority_set( 2921 int unit, 2922 int start_queue, 2923 int end_queue, 2924 int pri_profile_id) 2925 { 2926 return BCM_E_UNAVAIL; 2927 } 2928 2929 int 2930 bcm_tomahawk3_cosq_profile_mapping_get( 2931 int unit, 2932 bcm_gport_t gport_to_map, 2933 bcm_cos_queue_t cosq, 2934 uint32 flags, 2935 bcm_switch_profile_mapping_t *profile_mapping) 2936 { 2937 return BCM_E_UNAVAIL; 2938 } 2939 2940 int 2941 bcm_tomahawk3_cosq_profile_mapping_set( 2942 int unit, 2943 bcm_gport_t gport_to_map, 2944 bcm_cos_queue_t cosq, 2945 uint32 flags, 2946 bcm_switch_profile_mapping_t *profile_mapping) 2947 { 2948 return BCM_E_UNAVAIL; 2949 } 2950 2951 int 2952 bcm_tomahawk3_cosq_qcn_config_get( 2953 int unit, 2954 bcm_gport_t port, 2955 bcm_cos_queue_t cosq, 2956 uint32 flags, 2957 bcm_cosq_qcn_config_t *config) 2958 { 2959 return BCM_E_UNAVAIL; 2960 } 2961 2962 int 2963 bcm_tomahawk3_cosq_qcn_config_set( 2964 int unit, 2965 bcm_gport_t port, 2966 bcm_cos_queue_t cosq, 2967 uint32 flags, 2968 bcm_cosq_qcn_config_t *config) 2969 { 2970 return BCM_E_UNAVAIL; 2971 } 2972 2973 int 2974 bcm_tomahawk3_cosq_resource_allocation_get( 2975 int unit, 2976 uint32 flags, 2977 bcm_cosq_resource_t resource, 2978 bcm_cosq_allocation_entity_t *target, 2979 bcm_cosq_resource_amounts_t *amounts) 2980 { 2981 return BCM_E_UNAVAIL; 2982 } 2983 2984 int 2985 bcm_tomahawk3_cosq_resource_allocation_set( 2986 int unit, 2987 uint32 flags, 2988 bcm_cosq_resource_t resource, 2989 bcm_cosq_allocation_entity_t *target, 2990 bcm_cosq_resource_amounts_t *amounts) 2991 { 2992 return BCM_E_UNAVAIL; 2993 } 2994 2995 int 2996 bcm_tomahawk3_cosq_safc_class_mapping_get( 2997 int unit, 2998 bcm_gport_t port, 2999 int array_max, 3000 bcm_cosq_safc_class_mapping_t *mapping_array, 3001 int *array_count) 3002 { 3003 return BCM_E_UNAVAIL; 3004 } 3005 3006 int 3007 bcm_tomahawk3_cosq_safc_class_mapping_set( 3008 int unit, 3009 bcm_gport_t port, 3010 int array_count, 3011 bcm_cosq_safc_class_mapping_t *mapping_array) 3012 { 3013 return BCM_E_UNAVAIL; 3014 } 3015 3016 #ifdef BCM_TOMAHAWK3_SUPPORT 3017 int 3018 bcm_tomahawk3_cosq_sched_get( 3019 int unit, 3020 int *mode, 3021 int weights[BCM_COS_COUNT], 3022 int *delay) 3023 { 3024 return bcm_esw_cosq_sched_get(unit, mode, weights, delay); 3025 } 3026 #endif 3027 3028 #ifdef BCM_TOMAHAWK3_SUPPORT 3029 int 3030 bcm_tomahawk3_cosq_sched_set( 3031 int unit, 3032 int mode, 3033 const int weights[BCM_COS_COUNT], 3034 int delay) 3035 { 3036 return bcm_esw_cosq_sched_set(unit, mode, weights, delay); 3037 } 3038 #endif 3039 3040 #ifdef BCM_TOMAHAWK3_SUPPORT 3041 int 3042 bcm_tomahawk3_cosq_sched_weight_max_get( 3043 int unit, 3044 int mode, 3045 int *weight_max) 3046 { 3047 return bcm_esw_cosq_sched_weight_max_get(unit, mode, weight_max); 3048 } 3049 #endif 3050 3051 int 3052 bcm_tomahawk3_cosq_scheduler_gport_add( 3053 int unit, 3054 uint32 flags, 3055 bcm_cosq_scheduler_gport_params_t *params, 3056 bcm_gport_t *gport) 3057 { 3058 return BCM_E_UNAVAIL; 3059 } 3060 3061 int 3062 bcm_tomahawk3_cosq_scheduler_gport_get( 3063 int unit, 3064 uint32 flags, 3065 bcm_gport_t gport, 3066 bcm_cosq_scheduler_gport_params_t *params) 3067 { 3068 return BCM_E_UNAVAIL; 3069 } 3070 3071 #ifdef BCM_TOMAHAWK3_SUPPORT 3072 int 3073 bcm_tomahawk3_cosq_service_pool_get( 3074 int unit, 3075 bcm_service_pool_id_t id, 3076 bcm_cosq_service_pool_t *cosq_service_pool) 3077 { 3078 return bcm_esw_cosq_service_pool_get(unit, id, cosq_service_pool); 3079 } 3080 #endif 3081 3082 #ifdef BCM_TOMAHAWK3_SUPPORT 3083 int 3084 bcm_tomahawk3_cosq_service_pool_set( 3085 int unit, 3086 bcm_service_pool_id_t id, 3087 bcm_cosq_service_pool_t cosq_service_pool) 3088 { 3089 return bcm_esw_cosq_service_pool_set(unit, id, cosq_service_pool); 3090 } 3091 #endif 3092 3093 int 3094 bcm_tomahawk3_cosq_slow_profile_get( 3095 int unit, 3096 bcm_cosq_slow_level_t *slow_level, 3097 bcm_cosq_slow_profile_attributes_t *attr) 3098 { 3099 return BCM_E_UNAVAIL; 3100 } 3101 3102 int 3103 bcm_tomahawk3_cosq_slow_profile_set( 3104 int unit, 3105 bcm_cosq_slow_level_t *slow_level, 3106 bcm_cosq_slow_profile_attributes_t *attr) 3107 { 3108 return BCM_E_UNAVAIL; 3109 } 3110 3111 int 3112 bcm_tomahawk3_cosq_src_vsqs_gport_add( 3113 int unit, 3114 bcm_gport_t port, 3115 bcm_cosq_src_vsqs_gport_config_t *config, 3116 bcm_gport_t *src_port_vsq_gport, 3117 bcm_gport_t *pg_base_vsq_gport) 3118 { 3119 return BCM_E_UNAVAIL; 3120 } 3121 3122 int 3123 bcm_tomahawk3_cosq_src_vsqs_gport_get( 3124 int unit, 3125 bcm_gport_t port, 3126 bcm_cosq_src_vsqs_gport_config_t *config, 3127 bcm_gport_t *src_port_vsq_gport, 3128 bcm_gport_t *pg_base_vsq_gport) 3129 { 3130 return BCM_E_UNAVAIL; 3131 } 3132 3133 #ifdef BCM_TOMAHAWK3_SUPPORT 3134 int 3135 bcm_tomahawk3_cosq_stat_config_get( 3136 int unit, 3137 int stat_count, 3138 bcm_cosq_stat_t *stat_array) 3139 { 3140 return bcm_esw_cosq_stat_config_get(unit, stat_count, stat_array); 3141 } 3142 #endif 3143 3144 #ifdef BCM_TOMAHAWK3_SUPPORT 3145 int 3146 bcm_tomahawk3_cosq_stat_config_set( 3147 int unit, 3148 int stat_count, 3149 bcm_cosq_stat_t *stat_array) 3150 { 3151 return bcm_esw_cosq_stat_config_set(unit, stat_count, stat_array); 3152 } 3153 #endif 3154 3155 #ifdef BCM_TOMAHAWK3_SUPPORT 3156 int 3157 bcm_tomahawk3_cosq_stat_get( 3158 int unit, 3159 bcm_gport_t gport, 3160 bcm_cos_queue_t cosq, 3161 bcm_cosq_stat_t stat, 3162 uint64 *value) 3163 { 3164 return bcm_esw_cosq_stat_get(unit, gport, cosq, stat, value); 3165 } 3166 #endif 3167 3168 #ifdef BCM_TOMAHAWK3_SUPPORT 3169 int 3170 bcm_tomahawk3_cosq_stat_get32( 3171 int unit, 3172 bcm_gport_t gport, 3173 bcm_cos_queue_t cosq, 3174 bcm_cosq_stat_t stat, 3175 uint32 *value) 3176 { 3177 return bcm_esw_cosq_stat_get32(unit, gport, cosq, stat, value); 3178 } 3179 #endif 3180 3181 #ifdef BCM_TOMAHAWK3_SUPPORT 3182 int 3183 bcm_tomahawk3_cosq_stat_info_get( 3184 int unit, 3185 int flags, 3186 bcm_cosq_stat_info_key_t *key, 3187 bcm_cosq_stat_info_t *config) 3188 { 3189 return bcm_esw_cosq_stat_info_get(unit, flags, key, config); 3190 } 3191 #endif 3192 3193 #ifdef BCM_TOMAHAWK3_SUPPORT 3194 int 3195 bcm_tomahawk3_cosq_stat_info_set( 3196 int unit, 3197 int flags, 3198 bcm_cosq_stat_info_key_t *key, 3199 bcm_cosq_stat_info_t *config) 3200 { 3201 return bcm_esw_cosq_stat_info_set(unit, flags, key, config); 3202 } 3203 #endif 3204 3205 #ifdef BCM_TOMAHAWK3_SUPPORT 3206 int 3207 bcm_tomahawk3_cosq_stat_obj_map_get( 3208 int unit, 3209 int flags, 3210 bcm_cosq_obj_map_key_t *key, 3211 uint32 *object_stat_id) 3212 { 3213 return bcm_esw_cosq_stat_obj_map_get(unit, flags, key, object_stat_id); 3214 } 3215 #endif 3216 3217 #ifdef BCM_TOMAHAWK3_SUPPORT 3218 int 3219 bcm_tomahawk3_cosq_stat_obj_map_set( 3220 int unit, 3221 int flags, 3222 bcm_cosq_obj_map_key_t *key, 3223 uint32 object_stat_id) 3224 { 3225 return bcm_esw_cosq_stat_obj_map_set(unit, flags, key, object_stat_id); 3226 } 3227 #endif 3228 3229 #ifdef BCM_TOMAHAWK3_SUPPORT 3230 int 3231 bcm_tomahawk3_cosq_stat_set( 3232 int unit, 3233 bcm_gport_t gport, 3234 bcm_cos_queue_t cosq, 3235 bcm_cosq_stat_t stat, 3236 uint64 value) 3237 { 3238 return bcm_esw_cosq_stat_set(unit, gport, cosq, stat, value); 3239 } 3240 #endif 3241 3242 #ifdef BCM_TOMAHAWK3_SUPPORT 3243 int 3244 bcm_tomahawk3_cosq_stat_set32( 3245 int unit, 3246 bcm_gport_t gport, 3247 bcm_cos_queue_t cosq, 3248 bcm_cosq_stat_t stat, 3249 uint32 value) 3250 { 3251 return bcm_esw_cosq_stat_set32(unit, gport, cosq, stat, value); 3252 } 3253 #endif 3254 3255 #ifdef BCM_TOMAHAWK3_SUPPORT 3256 int 3257 bcm_tomahawk3_cosq_stat_sync_get( 3258 int unit, 3259 bcm_gport_t gport, 3260 bcm_cos_queue_t cosq, 3261 bcm_cosq_stat_t stat, 3262 uint64 *value) 3263 { 3264 return bcm_esw_cosq_stat_sync_get(unit, gport, cosq, stat, value); 3265 } 3266 #endif 3267 3268 #ifdef BCM_TOMAHAWK3_SUPPORT 3269 int 3270 bcm_tomahawk3_cosq_stat_sync_get32( 3271 int unit, 3272 bcm_gport_t gport, 3273 bcm_cos_queue_t cosq, 3274 bcm_cosq_stat_t stat, 3275 uint32 *value) 3276 { 3277 return bcm_esw_cosq_stat_sync_get32(unit, gport, cosq, stat, value); 3278 } 3279 #endif 3280 3281 #ifdef BCM_TOMAHAWK3_SUPPORT 3282 int 3283 bcm_tomahawk3_cosq_stat_sync_multi_get( 3284 int unit, 3285 bcm_gport_t gport, 3286 bcm_cos_queue_t cosq, 3287 int nstat, 3288 bcm_cosq_stat_t *stat_arr, 3289 uint64 *value_arr) 3290 { 3291 return bcm_esw_cosq_stat_sync_multi_get(unit, gport, cosq, nstat, stat_arr, value_arr); 3292 } 3293 #endif 3294 3295 #ifdef BCM_TOMAHAWK3_SUPPORT 3296 int 3297 bcm_tomahawk3_cosq_stat_sync_multi_get32( 3298 int unit, 3299 bcm_gport_t gport, 3300 bcm_cos_queue_t cosq, 3301 int nstat, 3302 bcm_cosq_stat_t *stat_arr, 3303 uint32 *value_arr) 3304 { 3305 return bcm_esw_cosq_stat_sync_multi_get32(unit, gport, cosq, nstat, stat_arr, value_arr); 3306 } 3307 #endif 3308 3309 #ifdef BCM_TOMAHAWK3_SUPPORT 3310 int 3311 bcm_tomahawk3_cosq_subport_flow_control_get( 3312 int unit, 3313 bcm_gport_t subport, 3314 bcm_gport_t *sched_port) 3315 { 3316 return bcm_esw_cosq_subport_flow_control_get(unit, subport, sched_port); 3317 } 3318 #endif 3319 3320 #ifdef BCM_TOMAHAWK3_SUPPORT 3321 int 3322 bcm_tomahawk3_cosq_subport_flow_control_set( 3323 int unit, 3324 bcm_gport_t subport, 3325 bcm_gport_t sched_port) 3326 { 3327 return bcm_esw_cosq_subport_flow_control_set(unit, subport, sched_port); 3328 } 3329 #endif 3330 3331 int 3332 bcm_tomahawk3_cosq_subscriber_map_add( 3333 int unit, 3334 bcm_cosq_subscriber_map_t *map) 3335 { 3336 return BCM_E_UNAVAIL; 3337 } 3338 3339 int 3340 bcm_tomahawk3_cosq_subscriber_map_delete( 3341 int unit, 3342 bcm_cosq_subscriber_map_t *map) 3343 { 3344 return BCM_E_UNAVAIL; 3345 } 3346 3347 int 3348 bcm_tomahawk3_cosq_subscriber_map_delete_all( 3349 int unit) 3350 { 3351 return BCM_E_UNAVAIL; 3352 } 3353 3354 int 3355 bcm_tomahawk3_cosq_subscriber_map_get( 3356 int unit, 3357 bcm_cosq_subscriber_map_t *map) 3358 { 3359 return BCM_E_UNAVAIL; 3360 } 3361 3362 int 3363 bcm_tomahawk3_cosq_subscriber_traverse( 3364 int unit, 3365 bcm_cosq_subscriber_map_traverse_cb cb, 3366 void *user_data) 3367 { 3368 return BCM_E_UNAVAIL; 3369 } 3370 3371 #ifdef BCM_TOMAHAWK3_SUPPORT 3372 int 3373 bcm_tomahawk3_cosq_sysport_ingress_queue_map_get( 3374 int unit, 3375 uint32 flags, 3376 bcm_gport_t sysport, 3377 bcm_gport_t *ingress_queue) 3378 { 3379 return bcm_esw_cosq_sysport_ingress_queue_map_get(unit, flags, sysport, ingress_queue); 3380 } 3381 #endif 3382 3383 #ifdef BCM_TOMAHAWK3_SUPPORT 3384 int 3385 bcm_tomahawk3_cosq_sysport_ingress_queue_map_set( 3386 int unit, 3387 uint32 flags, 3388 bcm_gport_t sysport, 3389 bcm_gport_t ingress_queue) 3390 { 3391 return bcm_esw_cosq_sysport_ingress_queue_map_set(unit, flags, sysport, ingress_queue); 3392 } 3393 #endif 3394 3395 #ifdef BCM_TOMAHAWK3_SUPPORT 3396 int 3397 bcm_tomahawk3_cosq_tas_control_get( 3398 int unit, 3399 bcm_gport_t port, 3400 bcm_cosq_tas_control_t type, 3401 int *arg) 3402 { 3403 return bcm_esw_cosq_tas_control_get(unit, port, type, arg); 3404 } 3405 #endif 3406 3407 #ifdef BCM_TOMAHAWK3_SUPPORT 3408 int 3409 bcm_tomahawk3_cosq_tas_control_set( 3410 int unit, 3411 bcm_gport_t port, 3412 bcm_cosq_tas_control_t type, 3413 int arg) 3414 { 3415 return bcm_esw_cosq_tas_control_set(unit, port, type, arg); 3416 } 3417 #endif 3418 3419 #ifdef BCM_TOMAHAWK3_SUPPORT 3420 int 3421 bcm_tomahawk3_cosq_tas_profile_commit( 3422 int unit, 3423 bcm_gport_t port, 3424 bcm_cosq_tas_profile_id_t pid) 3425 { 3426 return bcm_esw_cosq_tas_profile_commit(unit, port, pid); 3427 } 3428 #endif 3429 3430 #ifdef BCM_TOMAHAWK3_SUPPORT 3431 int 3432 bcm_tomahawk3_cosq_tas_profile_create( 3433 int unit, 3434 bcm_gport_t port, 3435 bcm_cosq_tas_profile_t *profile, 3436 bcm_cosq_tas_profile_id_t *pid) 3437 { 3438 return bcm_esw_cosq_tas_profile_create(unit, port, profile, pid); 3439 } 3440 #endif 3441 3442 #ifdef BCM_TOMAHAWK3_SUPPORT 3443 int 3444 bcm_tomahawk3_cosq_tas_profile_destroy( 3445 int unit, 3446 bcm_gport_t port, 3447 bcm_cosq_tas_profile_id_t pid) 3448 { 3449 return bcm_esw_cosq_tas_profile_destroy(unit, port, pid); 3450 } 3451 #endif 3452 3453 #ifdef BCM_TOMAHAWK3_SUPPORT 3454 int 3455 bcm_tomahawk3_cosq_tas_profile_destroy_all( 3456 int unit, 3457 bcm_gport_t port) 3458 { 3459 return bcm_esw_cosq_tas_profile_destroy_all(unit, port); 3460 } 3461 #endif 3462 3463 #ifdef BCM_TOMAHAWK3_SUPPORT 3464 int 3465 bcm_tomahawk3_cosq_tas_profile_get( 3466 int unit, 3467 bcm_gport_t port, 3468 bcm_cosq_tas_profile_id_t pid, 3469 bcm_cosq_tas_profile_t *profile) 3470 { 3471 return bcm_esw_cosq_tas_profile_get(unit, port, pid, profile); 3472 } 3473 #endif 3474 3475 #ifdef BCM_TOMAHAWK3_SUPPORT 3476 int 3477 bcm_tomahawk3_cosq_tas_profile_set( 3478 int unit, 3479 bcm_gport_t port, 3480 bcm_cosq_tas_profile_id_t pid, 3481 bcm_cosq_tas_profile_t *profile) 3482 { 3483 return bcm_esw_cosq_tas_profile_set(unit, port, pid, profile); 3484 } 3485 #endif 3486 3487 #ifdef BCM_TOMAHAWK3_SUPPORT 3488 int 3489 bcm_tomahawk3_cosq_tas_profile_status_get( 3490 int unit, 3491 bcm_gport_t port, 3492 bcm_cosq_tas_profile_id_t pid, 3493 bcm_cosq_tas_profile_status_t *status) 3494 { 3495 return bcm_esw_cosq_tas_profile_status_get(unit, port, pid, status); 3496 } 3497 #endif 3498 3499 #ifdef BCM_TOMAHAWK3_SUPPORT 3500 int 3501 bcm_tomahawk3_cosq_tas_profile_traverse( 3502 int unit, 3503 bcm_gport_t port, 3504 bcm_cosq_tas_profile_traverse_cb cb, 3505 void *user_data) 3506 { 3507 return bcm_esw_cosq_tas_profile_traverse(unit, port, cb, user_data); 3508 } 3509 #endif 3510 3511 #ifdef BCM_TOMAHAWK3_SUPPORT 3512 int 3513 bcm_tomahawk3_cosq_tas_status_get( 3514 int unit, 3515 bcm_gport_t port, 3516 bcm_cosq_tas_status_t type, 3517 int *arg) 3518 { 3519 return bcm_esw_cosq_tas_status_get(unit, port, type, arg); 3520 } 3521 #endif 3522 3523 #if defined(INCLUDE_TCB) 3524 int 3525 bcm_tomahawk3_cosq_tcb_buffer_multi_get( 3526 int unit, 3527 bcm_cosq_buffer_id_t buffer_id, 3528 int array_max, 3529 bcm_cosq_tcb_buffer_t *buffer_array, 3530 int *array_count) 3531 { 3532 return BCM_E_UNAVAIL; 3533 } 3534 #endif 3535 3536 #if defined(INCLUDE_TCB) 3537 int 3538 bcm_tomahawk3_cosq_tcb_cb_register( 3539 int unit, 3540 bcm_cosq_tcb_callback_t fn, 3541 void *user_data) 3542 { 3543 return BCM_E_UNAVAIL; 3544 } 3545 #endif 3546 3547 #if defined(INCLUDE_TCB) 3548 int 3549 bcm_tomahawk3_cosq_tcb_cb_unregister( 3550 int unit, 3551 bcm_cosq_tcb_callback_t fn) 3552 { 3553 return BCM_E_UNAVAIL; 3554 } 3555 #endif 3556 3557 #if defined(INCLUDE_TCB) 3558 int 3559 bcm_tomahawk3_cosq_tcb_config_get( 3560 int unit, 3561 bcm_cosq_buffer_id_t buffer_id, 3562 bcm_cosq_tcb_config_t *config) 3563 { 3564 return BCM_E_UNAVAIL; 3565 } 3566 #endif 3567 3568 #if defined(INCLUDE_TCB) 3569 int 3570 bcm_tomahawk3_cosq_tcb_config_set( 3571 int unit, 3572 bcm_cosq_buffer_id_t buffer_id, 3573 bcm_cosq_tcb_config_t *config) 3574 { 3575 return BCM_E_UNAVAIL; 3576 } 3577 #endif 3578 3579 #if defined(INCLUDE_TCB) 3580 int 3581 bcm_tomahawk3_cosq_tcb_control_get( 3582 int unit, 3583 int buffer_id, 3584 bcm_cosq_tcb_control_t type, 3585 int *arg) 3586 { 3587 return BCM_E_UNAVAIL; 3588 } 3589 #endif 3590 3591 #if defined(INCLUDE_TCB) 3592 int 3593 bcm_tomahawk3_cosq_tcb_control_set( 3594 int unit, 3595 bcm_cosq_buffer_id_t buffer_id, 3596 bcm_cosq_tcb_control_t type, 3597 int arg) 3598 { 3599 return BCM_E_UNAVAIL; 3600 } 3601 #endif 3602 3603 #if defined(INCLUDE_TCB) 3604 int 3605 bcm_tomahawk3_cosq_tcb_event_multi_get( 3606 int unit, 3607 bcm_cosq_buffer_id_t buffer_id, 3608 int array_max, 3609 bcm_cosq_tcb_event_t *event_array, 3610 int *array_count, 3611 int *overflow_count) 3612 { 3613 return BCM_E_UNAVAIL; 3614 } 3615 #endif 3616 3617 #if defined(INCLUDE_TCB) 3618 int 3619 bcm_tomahawk3_cosq_tcb_gport_threshold_mapping_get( 3620 int unit, 3621 bcm_cosq_object_id_t *id, 3622 int *profile_index) 3623 { 3624 return BCM_E_UNAVAIL; 3625 } 3626 #endif 3627 3628 #if defined(INCLUDE_TCB) 3629 int 3630 bcm_tomahawk3_cosq_tcb_gport_threshold_mapping_set( 3631 int unit, 3632 bcm_cosq_object_id_t *id, 3633 int profile_index) 3634 { 3635 return BCM_E_UNAVAIL; 3636 } 3637 #endif 3638 3639 #if defined(INCLUDE_TCB) 3640 int 3641 bcm_tomahawk3_cosq_tcb_threshold_profile_create( 3642 int unit, 3643 int flags, 3644 bcm_cosq_buffer_id_t buffer_id, 3645 bcm_cosq_tcb_threshold_profile_t *threshold, 3646 int *profile_index) 3647 { 3648 return BCM_E_UNAVAIL; 3649 } 3650 #endif 3651 3652 #if defined(INCLUDE_TCB) 3653 int 3654 bcm_tomahawk3_cosq_tcb_threshold_profile_destroy( 3655 int unit, 3656 bcm_cosq_buffer_id_t buffer_id, 3657 int profile_index) 3658 { 3659 return BCM_E_UNAVAIL; 3660 } 3661 #endif 3662 3663 #if defined(INCLUDE_TCB) 3664 int 3665 bcm_tomahawk3_cosq_tcb_threshold_profile_get( 3666 int unit, 3667 bcm_cosq_buffer_id_t buffer_id, 3668 int profile_index, 3669 bcm_cosq_tcb_threshold_profile_t *threshold) 3670 { 3671 return BCM_E_UNAVAIL; 3672 } 3673 #endif 3674 3675 int 3676 bcm_tomahawk3_cosq_voq_connector_gport_add( 3677 int unit, 3678 bcm_cosq_voq_connector_gport_t *config, 3679 bcm_gport_t *gport) 3680 { 3681 return BCM_E_UNAVAIL; 3682 } 3683 3684 #ifdef BCM_TOMAHAWK3_SUPPORT 3685 int 3686 bcm_tomahawk3_cpri_decap_presentation_time_config_get( 3687 int unit, 3688 bcm_port_t port, 3689 bcm_cpri_decap_presentation_config_t *config) 3690 { 3691 return bcm_esw_cpri_decap_presentation_time_config_get(unit, port, config); 3692 } 3693 #endif 3694 3695 #ifdef BCM_TOMAHAWK3_SUPPORT 3696 int 3697 bcm_tomahawk3_cpri_decap_presentation_time_config_set( 3698 int unit, 3699 bcm_port_t port, 3700 bcm_cpri_decap_presentation_config_t *config) 3701 { 3702 return bcm_esw_cpri_decap_presentation_time_config_set(unit, port, config); 3703 } 3704 #endif 3705 3706 #ifdef BCM_TOMAHAWK3_SUPPORT 3707 int 3708 bcm_tomahawk3_cpri_detach( 3709 int unit) 3710 { 3711 return bcm_esw_cpri_detach(unit); 3712 } 3713 #endif 3714 3715 #ifdef BCM_TOMAHAWK3_SUPPORT 3716 int 3717 bcm_tomahawk3_cpri_encap_control_queue_tag_to_flow_id_map_set( 3718 int unit, 3719 int port, 3720 uint32 tag_id, 3721 uint32 flow_id) 3722 { 3723 return bcm_esw_cpri_encap_control_queue_tag_to_flow_id_map_set(unit, port, tag_id, flow_id); 3724 } 3725 #endif 3726 3727 #ifdef BCM_TOMAHAWK3_SUPPORT 3728 int 3729 bcm_tomahawk3_cpri_encap_presentation_time_config_get( 3730 int unit, 3731 bcm_port_t port, 3732 bcm_cpri_presentation_ts_attribute_t attribute, 3733 bcm_cpri_presentation_time_t *time_offset) 3734 { 3735 return bcm_esw_cpri_encap_presentation_time_config_get(unit, port, attribute, time_offset); 3736 } 3737 #endif 3738 3739 #ifdef BCM_TOMAHAWK3_SUPPORT 3740 int 3741 bcm_tomahawk3_cpri_encap_presentation_time_config_set( 3742 int unit, 3743 bcm_port_t port, 3744 bcm_cpri_presentation_ts_attribute_t attribute, 3745 bcm_cpri_presentation_time_t *time) 3746 { 3747 return bcm_esw_cpri_encap_presentation_time_config_set(unit, port, attribute, time); 3748 } 3749 #endif 3750 3751 #ifdef BCM_TOMAHAWK3_SUPPORT 3752 int 3753 bcm_tomahawk3_cpri_init( 3754 int unit) 3755 { 3756 return bcm_esw_cpri_init(unit); 3757 } 3758 #endif 3759 3760 #ifdef BCM_TOMAHAWK3_SUPPORT 3761 int 3762 bcm_tomahawk3_cpri_port_1588_timestamp_capture_config_get( 3763 int unit, 3764 bcm_port_t port, 3765 bcm_cpri_dir_t direction, 3766 bcm_cpri_1588_capture_config_t *config) 3767 { 3768 return bcm_esw_cpri_port_1588_timestamp_capture_config_get(unit, port, direction, config); 3769 } 3770 #endif 3771 3772 #ifdef BCM_TOMAHAWK3_SUPPORT 3773 int 3774 bcm_tomahawk3_cpri_port_1588_timestamp_capture_config_set( 3775 int unit, 3776 bcm_port_t port, 3777 bcm_cpri_dir_t direction, 3778 bcm_cpri_1588_capture_config_t *config) 3779 { 3780 return bcm_esw_cpri_port_1588_timestamp_capture_config_set(unit, port, direction, config); 3781 } 3782 #endif 3783 3784 #ifdef BCM_TOMAHAWK3_SUPPORT 3785 int 3786 bcm_tomahawk3_cpri_port_1588_timestamp_config_get( 3787 int unit, 3788 bcm_port_t port, 3789 bcm_cpri_dir_t direction, 3790 bcm_cpri_1588_config_t *config) 3791 { 3792 return bcm_esw_cpri_port_1588_timestamp_config_get(unit, port, direction, config); 3793 } 3794 #endif 3795 3796 #ifdef BCM_TOMAHAWK3_SUPPORT 3797 int 3798 bcm_tomahawk3_cpri_port_1588_timestamp_config_set( 3799 int unit, 3800 bcm_port_t port, 3801 bcm_cpri_dir_t direction, 3802 bcm_cpri_1588_config_t *config) 3803 { 3804 return bcm_esw_cpri_port_1588_timestamp_config_set(unit, port, direction, config); 3805 } 3806 #endif 3807 3808 #ifdef BCM_TOMAHAWK3_SUPPORT 3809 int 3810 bcm_tomahawk3_cpri_port_1588_timestamp_get( 3811 int unit, 3812 bcm_port_t port, 3813 bcm_cpri_dir_t direction, 3814 bcm_cpri_1588_ts_type_t type, 3815 int max_count, 3816 int *count, 3817 bcm_cpri_1588_timestamp_t *ts_list) 3818 { 3819 return bcm_esw_cpri_port_1588_timestamp_get(unit, port, direction, type, max_count, count, ts_list); 3820 } 3821 #endif 3822 3823 #ifdef BCM_TOMAHAWK3_SUPPORT 3824 int 3825 bcm_tomahawk3_cpri_port_1588_timestamp_ts_config_get( 3826 int unit, 3827 bcm_port_t port, 3828 bcm_cpri_dir_t direction, 3829 bcm_cpri_1588_ts_type_t type, 3830 bcm_cpri_1588_timestamp_ts_config_t *config) 3831 { 3832 return bcm_esw_cpri_port_1588_timestamp_ts_config_get(unit, port, direction, type, config); 3833 } 3834 #endif 3835 3836 #ifdef BCM_TOMAHAWK3_SUPPORT 3837 int 3838 bcm_tomahawk3_cpri_port_1588_timestamp_ts_config_set( 3839 int unit, 3840 bcm_port_t port, 3841 bcm_cpri_dir_t direction, 3842 bcm_cpri_1588_ts_type_t type, 3843 bcm_cpri_1588_timestamp_ts_config_t *config) 3844 { 3845 return bcm_esw_cpri_port_1588_timestamp_ts_config_set(unit, port, direction, type, config); 3846 } 3847 #endif 3848 3849 #ifdef BCM_TOMAHAWK3_SUPPORT 3850 int 3851 bcm_tomahawk3_cpri_port_agnostic_config_get( 3852 int unit, 3853 bcm_port_t port, 3854 bcm_cpri_dir_t dir, 3855 int *enable, 3856 bcm_cpri_port_agnostic_config_t *config) 3857 { 3858 return bcm_esw_cpri_port_agnostic_config_get(unit, port, dir, enable, config); 3859 } 3860 #endif 3861 3862 #ifdef BCM_TOMAHAWK3_SUPPORT 3863 int 3864 bcm_tomahawk3_cpri_port_agnostic_config_set( 3865 int unit, 3866 bcm_port_t port, 3867 bcm_cpri_dir_t dir, 3868 int enable, 3869 bcm_cpri_port_agnostic_config_t *config) 3870 { 3871 return bcm_esw_cpri_port_agnostic_config_set(unit, port, dir, enable, config); 3872 } 3873 #endif 3874 3875 #ifdef BCM_TOMAHAWK3_SUPPORT 3876 int 3877 bcm_tomahawk3_cpri_port_compression_lookup_table_get( 3878 int unit, 3879 bcm_gport_t port, 3880 int max_depth, 3881 int *table_depth, 3882 uint32 *comp_table) 3883 { 3884 return bcm_esw_cpri_port_compression_lookup_table_get(unit, port, max_depth, table_depth, comp_table); 3885 } 3886 #endif 3887 3888 #ifdef BCM_TOMAHAWK3_SUPPORT 3889 int 3890 bcm_tomahawk3_cpri_port_compression_lookup_table_set( 3891 int unit, 3892 bcm_gport_t port, 3893 int table_depth, 3894 uint32 *comp_table) 3895 { 3896 return bcm_esw_cpri_port_compression_lookup_table_set(unit, port, table_depth, comp_table); 3897 } 3898 #endif 3899 3900 #ifdef BCM_TOMAHAWK3_SUPPORT 3901 int 3902 bcm_tomahawk3_cpri_port_compression_saturation_config_get( 3903 int unit, 3904 bcm_port_t port, 3905 uint32 *threshold_value) 3906 { 3907 return bcm_esw_cpri_port_compression_saturation_config_get(unit, port, threshold_value); 3908 } 3909 #endif 3910 3911 #ifdef BCM_TOMAHAWK3_SUPPORT 3912 int 3913 bcm_tomahawk3_cpri_port_compression_saturation_config_set( 3914 int unit, 3915 bcm_port_t port, 3916 uint32 threshold_value) 3917 { 3918 return bcm_esw_cpri_port_compression_saturation_config_set(unit, port, threshold_value); 3919 } 3920 #endif 3921 3922 #ifdef BCM_TOMAHAWK3_SUPPORT 3923 int 3924 bcm_tomahawk3_cpri_port_cw_fast_eth_config_get( 3925 int unit, 3926 int port, 3927 bcm_cpri_fast_eth_config_info_t *config) 3928 { 3929 return bcm_esw_cpri_port_cw_fast_eth_config_get(unit, port, config); 3930 } 3931 #endif 3932 3933 #ifdef BCM_TOMAHAWK3_SUPPORT 3934 int 3935 bcm_tomahawk3_cpri_port_cw_fast_eth_config_set( 3936 int unit, 3937 int port, 3938 bcm_cpri_fast_eth_config_info_t *config) 3939 { 3940 return bcm_esw_cpri_port_cw_fast_eth_config_set(unit, port, config); 3941 } 3942 #endif 3943 3944 #ifdef BCM_TOMAHAWK3_SUPPORT 3945 int 3946 bcm_tomahawk3_cpri_port_cw_slow_hdlc_config_get( 3947 int unit, 3948 int port, 3949 bcm_cpri_slow_hdlc_config_info_t *config) 3950 { 3951 return bcm_esw_cpri_port_cw_slow_hdlc_config_get(unit, port, config); 3952 } 3953 #endif 3954 3955 #ifdef BCM_TOMAHAWK3_SUPPORT 3956 int 3957 bcm_tomahawk3_cpri_port_cw_slow_hdlc_config_set( 3958 int unit, 3959 int port, 3960 bcm_cpri_slow_hdlc_config_info_t *config) 3961 { 3962 return bcm_esw_cpri_port_cw_slow_hdlc_config_set(unit, port, config); 3963 } 3964 #endif 3965 3966 #ifdef BCM_TOMAHAWK3_SUPPORT 3967 int 3968 bcm_tomahawk3_cpri_port_decap_ethertype_get( 3969 int unit, 3970 bcm_gport_t port, 3971 bcm_cpri_ethertype_t type, 3972 uint16 *tpid) 3973 { 3974 return bcm_esw_cpri_port_decap_ethertype_get(unit, port, type, tpid); 3975 } 3976 #endif 3977 3978 #ifdef BCM_TOMAHAWK3_SUPPORT 3979 int 3980 bcm_tomahawk3_cpri_port_decap_ethertype_set( 3981 int unit, 3982 bcm_gport_t port, 3983 bcm_cpri_ethertype_t type, 3984 uint16 tpid) 3985 { 3986 return bcm_esw_cpri_port_decap_ethertype_set(unit, port, type, tpid); 3987 } 3988 #endif 3989 3990 #ifdef BCM_TOMAHAWK3_SUPPORT 3991 int 3992 bcm_tomahawk3_cpri_port_decap_flow_config_get( 3993 int unit, 3994 bcm_gport_t port, 3995 uint8 roe_subtype, 3996 bcm_cpri_decap_flow_config_t *config) 3997 { 3998 return bcm_esw_cpri_port_decap_flow_config_get(unit, port, roe_subtype, config); 3999 } 4000 #endif 4001 4002 #ifdef BCM_TOMAHAWK3_SUPPORT 4003 int 4004 bcm_tomahawk3_cpri_port_decap_flow_config_set( 4005 int unit, 4006 bcm_gport_t port, 4007 uint8 roe_subtype, 4008 bcm_cpri_decap_flow_config_t *config) 4009 { 4010 return bcm_esw_cpri_port_decap_flow_config_set(unit, port, roe_subtype, config); 4011 } 4012 #endif 4013 4014 #ifdef BCM_TOMAHAWK3_SUPPORT 4015 int 4016 bcm_tomahawk3_cpri_port_decap_flow_to_queue_mapping_get( 4017 int unit, 4018 bcm_gport_t port, 4019 uint32 flow_id, 4020 uint32 *queue_num) 4021 { 4022 return bcm_esw_cpri_port_decap_flow_to_queue_mapping_get(unit, port, flow_id, queue_num); 4023 } 4024 #endif 4025 4026 #ifdef BCM_TOMAHAWK3_SUPPORT 4027 int 4028 bcm_tomahawk3_cpri_port_decap_flow_to_queue_mapping_set( 4029 int unit, 4030 bcm_gport_t port, 4031 uint32 flow_id, 4032 uint32 queue_num) 4033 { 4034 return bcm_esw_cpri_port_decap_flow_to_queue_mapping_set(unit, port, flow_id, queue_num); 4035 } 4036 #endif 4037 4038 #ifdef BCM_TOMAHAWK3_SUPPORT 4039 int 4040 bcm_tomahawk3_cpri_port_decap_queue_flow_control_get( 4041 int unit, 4042 bcm_gport_t port, 4043 uint32 queue_num, 4044 uint32 *xon_threshold, 4045 uint32 *xoff_threshold, 4046 int *enable) 4047 { 4048 return bcm_esw_cpri_port_decap_queue_flow_control_get(unit, port, queue_num, xon_threshold, xoff_threshold, enable); 4049 } 4050 #endif 4051 4052 #ifdef BCM_TOMAHAWK3_SUPPORT 4053 int 4054 bcm_tomahawk3_cpri_port_decap_queue_flow_control_set( 4055 int unit, 4056 bcm_gport_t port, 4057 uint32 queue_num, 4058 uint32 xon_threshold, 4059 uint32 xoff_threshold, 4060 int enable) 4061 { 4062 return bcm_esw_cpri_port_decap_queue_flow_control_set(unit, port, queue_num, xon_threshold, xoff_threshold, enable); 4063 } 4064 #endif 4065 4066 #ifdef BCM_TOMAHAWK3_SUPPORT 4067 int 4068 bcm_tomahawk3_cpri_port_decap_queue_to_ordering_info_index_get( 4069 int unit, 4070 bcm_gport_t port, 4071 uint32 queue_num, 4072 uint32 *ordering_info_index) 4073 { 4074 return bcm_esw_cpri_port_decap_queue_to_ordering_info_index_get(unit, port, queue_num, ordering_info_index); 4075 } 4076 #endif 4077 4078 #ifdef BCM_TOMAHAWK3_SUPPORT 4079 int 4080 bcm_tomahawk3_cpri_port_decap_queue_to_ordering_info_index_set( 4081 int unit, 4082 bcm_gport_t port, 4083 uint32 queue_num, 4084 uint32 ordering_info_index) 4085 { 4086 return bcm_esw_cpri_port_decap_queue_to_ordering_info_index_set(unit, port, queue_num, ordering_info_index); 4087 } 4088 #endif 4089 4090 #ifdef BCM_TOMAHAWK3_SUPPORT 4091 int 4092 bcm_tomahawk3_cpri_port_decap_roe_ordering_info_get( 4093 int unit, 4094 bcm_gport_t port, 4095 int index, 4096 bcm_cpri_decap_roe_oi_t *ordering_info) 4097 { 4098 return bcm_esw_cpri_port_decap_roe_ordering_info_get(unit, port, index, ordering_info); 4099 } 4100 #endif 4101 4102 #ifdef BCM_TOMAHAWK3_SUPPORT 4103 int 4104 bcm_tomahawk3_cpri_port_decap_roe_ordering_info_set( 4105 int unit, 4106 bcm_gport_t port, 4107 int index, 4108 bcm_cpri_decap_roe_oi_t *ordering_info) 4109 { 4110 return bcm_esw_cpri_port_decap_roe_ordering_info_set(unit, port, index, ordering_info); 4111 } 4112 #endif 4113 4114 #ifdef BCM_TOMAHAWK3_SUPPORT 4115 int 4116 bcm_tomahawk3_cpri_port_decap_roe_ordering_sequence_offset_get( 4117 int unit, 4118 bcm_gport_t port, 4119 int queue, 4120 bcm_cpri_roe_oi_seq_offset_t *seq_offset) 4121 { 4122 return bcm_esw_cpri_port_decap_roe_ordering_sequence_offset_get(unit, port, queue, seq_offset); 4123 } 4124 #endif 4125 4126 #ifdef BCM_TOMAHAWK3_SUPPORT 4127 int 4128 bcm_tomahawk3_cpri_port_decap_roe_ordering_sequence_offset_set( 4129 int unit, 4130 bcm_gport_t port, 4131 int queue, 4132 bcm_cpri_roe_oi_seq_offset_t *seq_offset) 4133 { 4134 return bcm_esw_cpri_port_decap_roe_ordering_sequence_offset_set(unit, port, queue, seq_offset); 4135 } 4136 #endif 4137 4138 #ifdef BCM_TOMAHAWK3_SUPPORT 4139 int 4140 bcm_tomahawk3_cpri_port_decap_secondary_key_to_queue_mapping_get( 4141 int unit, 4142 bcm_port_t port, 4143 uint32 secondary_key, 4144 uint32 *queue_num) 4145 { 4146 return bcm_esw_cpri_port_decap_secondary_key_to_queue_mapping_get(unit, port, secondary_key, queue_num); 4147 } 4148 #endif 4149 4150 #ifdef BCM_TOMAHAWK3_SUPPORT 4151 int 4152 bcm_tomahawk3_cpri_port_decap_secondary_key_to_queue_mapping_set( 4153 int unit, 4154 bcm_port_t port, 4155 uint32 secondary_key, 4156 uint32 queue_num) 4157 { 4158 return bcm_esw_cpri_port_decap_secondary_key_to_queue_mapping_set(unit, port, secondary_key, queue_num); 4159 } 4160 #endif 4161 4162 #ifdef BCM_TOMAHAWK3_SUPPORT 4163 int 4164 bcm_tomahawk3_cpri_port_decompression_lookup_table_get( 4165 int unit, 4166 bcm_gport_t port, 4167 int max_depth, 4168 int *table_depth, 4169 uint32 *comp_table) 4170 { 4171 return bcm_esw_cpri_port_decompression_lookup_table_get(unit, port, max_depth, table_depth, comp_table); 4172 } 4173 #endif 4174 4175 #ifdef BCM_TOMAHAWK3_SUPPORT 4176 int 4177 bcm_tomahawk3_cpri_port_decompression_lookup_table_set( 4178 int unit, 4179 bcm_gport_t port, 4180 int table_depth, 4181 uint32 *comp_table) 4182 { 4183 return bcm_esw_cpri_port_decompression_lookup_table_set(unit, port, table_depth, comp_table); 4184 } 4185 #endif 4186 4187 #ifdef BCM_TOMAHAWK3_SUPPORT 4188 int 4189 bcm_tomahawk3_cpri_port_decompression_saturation_config_get( 4190 int unit, 4191 bcm_port_t port, 4192 uint32 *sat_value) 4193 { 4194 return bcm_esw_cpri_port_decompression_saturation_config_get(unit, port, sat_value); 4195 } 4196 #endif 4197 4198 #ifdef BCM_TOMAHAWK3_SUPPORT 4199 int 4200 bcm_tomahawk3_cpri_port_decompression_saturation_config_set( 4201 int unit, 4202 bcm_port_t port, 4203 uint32 sat_value) 4204 { 4205 return bcm_esw_cpri_port_decompression_saturation_config_set(unit, port, sat_value); 4206 } 4207 #endif 4208 4209 #ifdef BCM_TOMAHAWK3_SUPPORT 4210 int 4211 bcm_tomahawk3_cpri_port_encap_get( 4212 int unit, 4213 bcm_gport_t port, 4214 int queue_num, 4215 bcm_cpri_encap_info_t *encap_config) 4216 { 4217 return bcm_esw_cpri_port_encap_get(unit, port, queue_num, encap_config); 4218 } 4219 #endif 4220 4221 #ifdef BCM_TOMAHAWK3_SUPPORT 4222 int 4223 bcm_tomahawk3_cpri_port_encap_roe_entry_macda_get( 4224 int unit, 4225 bcm_gport_t port, 4226 int index, 4227 bcm_mac_t *macaddr) 4228 { 4229 return bcm_esw_cpri_port_encap_roe_entry_macda_get(unit, port, index, macaddr); 4230 } 4231 #endif 4232 4233 #ifdef BCM_TOMAHAWK3_SUPPORT 4234 int 4235 bcm_tomahawk3_cpri_port_encap_roe_entry_macda_set( 4236 int unit, 4237 bcm_gport_t port, 4238 int index, 4239 bcm_mac_t macaddr) 4240 { 4241 return bcm_esw_cpri_port_encap_roe_entry_macda_set(unit, port, index, macaddr); 4242 } 4243 #endif 4244 4245 #ifdef BCM_TOMAHAWK3_SUPPORT 4246 int 4247 bcm_tomahawk3_cpri_port_encap_roe_entry_macsa_get( 4248 int unit, 4249 bcm_gport_t port, 4250 int index, 4251 bcm_mac_t *macaddr) 4252 { 4253 return bcm_esw_cpri_port_encap_roe_entry_macsa_get(unit, port, index, macaddr); 4254 } 4255 #endif 4256 4257 #ifdef BCM_TOMAHAWK3_SUPPORT 4258 int 4259 bcm_tomahawk3_cpri_port_encap_roe_entry_macsa_set( 4260 int unit, 4261 bcm_gport_t port, 4262 int index, 4263 bcm_mac_t macaddr) 4264 { 4265 return bcm_esw_cpri_port_encap_roe_entry_macsa_set(unit, port, index, macaddr); 4266 } 4267 #endif 4268 4269 #ifdef BCM_TOMAHAWK3_SUPPORT 4270 int 4271 bcm_tomahawk3_cpri_port_encap_roe_entry_vlan_get( 4272 int unit, 4273 bcm_gport_t port, 4274 uint32 flags, 4275 uint32 index, 4276 bcm_vlan_t *vlan_id) 4277 { 4278 return bcm_esw_cpri_port_encap_roe_entry_vlan_get(unit, port, flags, index, vlan_id); 4279 } 4280 #endif 4281 4282 #ifdef BCM_TOMAHAWK3_SUPPORT 4283 int 4284 bcm_tomahawk3_cpri_port_encap_roe_entry_vlan_set( 4285 int unit, 4286 bcm_gport_t port, 4287 uint32 flags, 4288 uint32 index, 4289 bcm_vlan_t vlan_id) 4290 { 4291 return bcm_esw_cpri_port_encap_roe_entry_vlan_set(unit, port, flags, index, vlan_id); 4292 } 4293 #endif 4294 4295 #ifdef BCM_TOMAHAWK3_SUPPORT 4296 int 4297 bcm_tomahawk3_cpri_port_encap_roe_ordering_info_get( 4298 int unit, 4299 bcm_gport_t port, 4300 int index, 4301 bcm_cpri_encap_roe_oi_t *ordering_info) 4302 { 4303 return bcm_esw_cpri_port_encap_roe_ordering_info_get(unit, port, index, ordering_info); 4304 } 4305 #endif 4306 4307 #ifdef BCM_TOMAHAWK3_SUPPORT 4308 int 4309 bcm_tomahawk3_cpri_port_encap_roe_ordering_info_set( 4310 int unit, 4311 bcm_gport_t port, 4312 int index, 4313 bcm_cpri_encap_roe_oi_t *ordering_info) 4314 { 4315 return bcm_esw_cpri_port_encap_roe_ordering_info_set(unit, port, index, ordering_info); 4316 } 4317 #endif 4318 4319 #ifdef BCM_TOMAHAWK3_SUPPORT 4320 int 4321 bcm_tomahawk3_cpri_port_encap_roe_ordering_sequence_offset_get( 4322 int unit, 4323 bcm_gport_t port, 4324 int queue, 4325 int control, 4326 bcm_cpri_roe_oi_seq_offset_t *seq_offset) 4327 { 4328 return bcm_esw_cpri_port_encap_roe_ordering_sequence_offset_get(unit, port, queue, control, seq_offset); 4329 } 4330 #endif 4331 4332 #ifdef BCM_TOMAHAWK3_SUPPORT 4333 int 4334 bcm_tomahawk3_cpri_port_encap_roe_ordering_sequence_offset_set( 4335 int unit, 4336 bcm_gport_t port, 4337 int queue, 4338 int control, 4339 bcm_cpri_roe_oi_seq_offset_t *seq_offset) 4340 { 4341 return bcm_esw_cpri_port_encap_roe_ordering_sequence_offset_set(unit, port, queue, control, seq_offset); 4342 } 4343 #endif 4344 4345 #ifdef BCM_TOMAHAWK3_SUPPORT 4346 int 4347 bcm_tomahawk3_cpri_port_encap_set( 4348 int unit, 4349 bcm_gport_t port, 4350 int queue_num, 4351 bcm_cpri_encap_info_t *encap_config) 4352 { 4353 return bcm_esw_cpri_port_encap_set(unit, port, queue_num, encap_config); 4354 } 4355 #endif 4356 4357 #ifdef BCM_TOMAHAWK3_SUPPORT 4358 int 4359 bcm_tomahawk3_cpri_port_encap_vlan_config_get( 4360 int unit, 4361 bcm_gport_t port, 4362 bcm_cpri_encap_vlan_config_t *vlan_config) 4363 { 4364 return bcm_esw_cpri_port_encap_vlan_config_get(unit, port, vlan_config); 4365 } 4366 #endif 4367 4368 #ifdef BCM_TOMAHAWK3_SUPPORT 4369 int 4370 bcm_tomahawk3_cpri_port_encap_vlan_config_set( 4371 int unit, 4372 bcm_gport_t port, 4373 bcm_cpri_encap_vlan_config_t *vlan_config) 4374 { 4375 return bcm_esw_cpri_port_encap_vlan_config_set(unit, port, vlan_config); 4376 } 4377 #endif 4378 4379 #ifdef BCM_TOMAHAWK3_SUPPORT 4380 int 4381 bcm_tomahawk3_cpri_port_fec_aux_config_get( 4382 int unit, 4383 bcm_gport_t port, 4384 bcm_cpri_fec_aux_config_t param_id, 4385 uint32 *value) 4386 { 4387 return bcm_esw_cpri_port_fec_aux_config_get(unit, port, param_id, value); 4388 } 4389 #endif 4390 4391 #ifdef BCM_TOMAHAWK3_SUPPORT 4392 int 4393 bcm_tomahawk3_cpri_port_fec_aux_config_set( 4394 int unit, 4395 bcm_gport_t port, 4396 bcm_cpri_fec_aux_config_t param_id, 4397 uint32 value) 4398 { 4399 return bcm_esw_cpri_port_fec_aux_config_set(unit, port, param_id, value); 4400 } 4401 #endif 4402 4403 #ifdef BCM_TOMAHAWK3_SUPPORT 4404 int 4405 bcm_tomahawk3_cpri_port_fec_enable_get( 4406 int unit, 4407 bcm_gport_t port, 4408 bcm_cpri_dir_t dir, 4409 int *enable) 4410 { 4411 return bcm_esw_cpri_port_fec_enable_get(unit, port, dir, enable); 4412 } 4413 #endif 4414 4415 #ifdef BCM_TOMAHAWK3_SUPPORT 4416 int 4417 bcm_tomahawk3_cpri_port_fec_enable_set( 4418 int unit, 4419 bcm_gport_t port, 4420 bcm_cpri_dir_t dir, 4421 int enable) 4422 { 4423 return bcm_esw_cpri_port_fec_enable_set(unit, port, dir, enable); 4424 } 4425 #endif 4426 4427 #ifdef BCM_TOMAHAWK3_SUPPORT 4428 int 4429 bcm_tomahawk3_cpri_port_fec_timestamp_config_get( 4430 int unit, 4431 bcm_gport_t port, 4432 bcm_cpri_dir_t dir, 4433 bcm_cpri_fec_timestamp_config_t *config) 4434 { 4435 return bcm_esw_cpri_port_fec_timestamp_config_get(unit, port, dir, config); 4436 } 4437 #endif 4438 4439 #ifdef BCM_TOMAHAWK3_SUPPORT 4440 int 4441 bcm_tomahawk3_cpri_port_fec_timestamp_config_set( 4442 int unit, 4443 bcm_gport_t port, 4444 bcm_cpri_dir_t dir, 4445 bcm_cpri_fec_timestamp_config_t *config) 4446 { 4447 return bcm_esw_cpri_port_fec_timestamp_config_set(unit, port, dir, config); 4448 } 4449 #endif 4450 4451 #ifdef BCM_TOMAHAWK3_SUPPORT 4452 int 4453 bcm_tomahawk3_cpri_port_frame_config_set( 4454 int unit, 4455 bcm_port_t port, 4456 bcm_cpri_port_frame_config_t *config) 4457 { 4458 return bcm_esw_cpri_port_frame_config_set(unit, port, config); 4459 } 4460 #endif 4461 4462 #ifdef BCM_TOMAHAWK3_SUPPORT 4463 int 4464 bcm_tomahawk3_cpri_port_interrupt_callback_register( 4465 int unit, 4466 bcm_cpri_interrupt_type_t cpri_intr_type, 4467 bcm_cpri_port_interrupt_callback_t callback, 4468 void *user_data) 4469 { 4470 return bcm_esw_cpri_port_interrupt_callback_register(unit, cpri_intr_type, callback, user_data); 4471 } 4472 #endif 4473 4474 #ifdef BCM_TOMAHAWK3_SUPPORT 4475 int 4476 bcm_tomahawk3_cpri_port_interrupt_callback_unregister( 4477 int unit, 4478 bcm_cpri_interrupt_type_t cpri_intr_type, 4479 bcm_cpri_port_interrupt_callback_t callback) 4480 { 4481 return bcm_esw_cpri_port_interrupt_callback_unregister(unit, cpri_intr_type, callback); 4482 } 4483 #endif 4484 4485 #ifdef BCM_TOMAHAWK3_SUPPORT 4486 int 4487 bcm_tomahawk3_cpri_port_interrupt_enable_set( 4488 int unit, 4489 bcm_port_t port, 4490 bcm_cpri_interrupt_type_t cpri_intr_type, 4491 int data, 4492 int enable) 4493 { 4494 return bcm_esw_cpri_port_interrupt_enable_set(unit, port, cpri_intr_type, data, enable); 4495 } 4496 #endif 4497 4498 #ifdef BCM_TOMAHAWK3_SUPPORT 4499 int 4500 bcm_tomahawk3_cpri_port_rsvd4_agnostic_mode_config_get( 4501 int unit, 4502 bcm_port_t port, 4503 bcm_cpri_dir_t direction, 4504 int *enable, 4505 bcm_cpri_port_rsvd4_agnostic_config_t *config) 4506 { 4507 return bcm_esw_cpri_port_rsvd4_agnostic_mode_config_get(unit, port, direction, enable, config); 4508 } 4509 #endif 4510 4511 #ifdef BCM_TOMAHAWK3_SUPPORT 4512 int 4513 bcm_tomahawk3_cpri_port_rsvd4_agnostic_mode_config_set( 4514 int unit, 4515 bcm_port_t port, 4516 bcm_cpri_dir_t direction, 4517 int enable, 4518 bcm_cpri_port_rsvd4_agnostic_config_t *config) 4519 { 4520 return bcm_esw_cpri_port_rsvd4_agnostic_mode_config_set(unit, port, direction, enable, config); 4521 } 4522 #endif 4523 4524 #ifdef BCM_TOMAHAWK3_SUPPORT 4525 int 4526 bcm_tomahawk3_cpri_port_rsvd4_cm_fast_eth_config_set( 4527 int unit, 4528 int port, 4529 int control_flow_id, 4530 bcm_rsvd4_fast_eth_config_info_t *config) 4531 { 4532 return bcm_esw_cpri_port_rsvd4_cm_fast_eth_config_set(unit, port, control_flow_id, config); 4533 } 4534 #endif 4535 4536 #ifdef BCM_TOMAHAWK3_SUPPORT 4537 int 4538 bcm_tomahawk3_cpri_port_rsvd4_dbm_entry_clear( 4539 int unit, 4540 bcm_gport_t port, 4541 int index) 4542 { 4543 return bcm_esw_cpri_port_rsvd4_dbm_entry_clear(unit, port, index); 4544 } 4545 #endif 4546 4547 #ifdef BCM_TOMAHAWK3_SUPPORT 4548 int 4549 bcm_tomahawk3_cpri_port_rsvd4_dbm_entry_get( 4550 int unit, 4551 bcm_gport_t port, 4552 int index, 4553 bcm_rsvd4_dbm_entry_t *entry) 4554 { 4555 return bcm_esw_cpri_port_rsvd4_dbm_entry_get(unit, port, index, entry); 4556 } 4557 #endif 4558 4559 #ifdef BCM_TOMAHAWK3_SUPPORT 4560 int 4561 bcm_tomahawk3_cpri_port_rsvd4_dbm_entry_set( 4562 int unit, 4563 bcm_gport_t port, 4564 int index, 4565 bcm_rsvd4_dbm_entry_t *entry) 4566 { 4567 return bcm_esw_cpri_port_rsvd4_dbm_entry_set(unit, port, index, entry); 4568 } 4569 #endif 4570 4571 #ifdef BCM_TOMAHAWK3_SUPPORT 4572 int 4573 bcm_tomahawk3_cpri_port_rsvd4_rx_bfn_sync_config_set( 4574 int unit, 4575 bcm_gport_t port, 4576 uint16 master_frame_count, 4577 uint64 master_frame_start) 4578 { 4579 return bcm_esw_cpri_port_rsvd4_rx_bfn_sync_config_set(unit, port, master_frame_count, master_frame_start); 4580 } 4581 #endif 4582 4583 #ifdef BCM_TOMAHAWK3_SUPPORT 4584 int 4585 bcm_tomahawk3_cpri_port_rsvd4_rx_control_flow_add( 4586 int unit, 4587 int port, 4588 int control_flow_id, 4589 bcm_rsvd4_control_flow_config_t *config) 4590 { 4591 return bcm_esw_cpri_port_rsvd4_rx_control_flow_add(unit, port, control_flow_id, config); 4592 } 4593 #endif 4594 4595 #ifdef BCM_TOMAHAWK3_SUPPORT 4596 int 4597 bcm_tomahawk3_cpri_port_rsvd4_rx_control_flow_delete( 4598 int unit, 4599 int port, 4600 int control_flow_id, 4601 bcm_rsvd4_control_flow_config_t *control_flow_cfg) 4602 { 4603 return bcm_esw_cpri_port_rsvd4_rx_control_flow_delete(unit, port, control_flow_id, control_flow_cfg); 4604 } 4605 #endif 4606 4607 #ifdef BCM_TOMAHAWK3_SUPPORT 4608 int 4609 bcm_tomahawk3_cpri_port_rsvd4_rx_current_frame_sync_info_get( 4610 int unit, 4611 bcm_gport_t port, 4612 bcm_rsvd4_frame_sync_info_t *frame_sync_info) 4613 { 4614 return bcm_esw_cpri_port_rsvd4_rx_current_frame_sync_info_get(unit, port, frame_sync_info); 4615 } 4616 #endif 4617 4618 #ifdef BCM_TOMAHAWK3_SUPPORT 4619 int 4620 bcm_tomahawk3_cpri_port_rsvd4_rx_flow_add( 4621 int unit, 4622 bcm_gport_t port, 4623 int flow_id, 4624 bcm_rsvd4_rx_flow_info_t *flow_info) 4625 { 4626 return bcm_esw_cpri_port_rsvd4_rx_flow_add(unit, port, flow_id, flow_info); 4627 } 4628 #endif 4629 4630 #ifdef BCM_TOMAHAWK3_SUPPORT 4631 int 4632 bcm_tomahawk3_cpri_port_rsvd4_rx_flow_delete( 4633 int unit, 4634 bcm_gport_t port, 4635 int flow_id) 4636 { 4637 return bcm_esw_cpri_port_rsvd4_rx_flow_delete(unit, port, flow_id); 4638 } 4639 #endif 4640 4641 #ifdef BCM_TOMAHAWK3_SUPPORT 4642 int 4643 bcm_tomahawk3_cpri_port_rsvd4_rx_frame_config_debug_set( 4644 int unit, 4645 bcm_gport_t port, 4646 bcm_rsvd4_rx_config_t config_type, 4647 uint32 value) 4648 { 4649 return bcm_esw_cpri_port_rsvd4_rx_frame_config_debug_set(unit, port, config_type, value); 4650 } 4651 #endif 4652 4653 #ifdef BCM_TOMAHAWK3_SUPPORT 4654 int 4655 bcm_tomahawk3_cpri_port_rsvd4_rx_frame_config_get( 4656 int unit, 4657 bcm_gport_t port, 4658 bcm_rsvd4_rx_frame_config_t *config) 4659 { 4660 return bcm_esw_cpri_port_rsvd4_rx_frame_config_get(unit, port, config); 4661 } 4662 #endif 4663 4664 #ifdef BCM_TOMAHAWK3_SUPPORT 4665 int 4666 bcm_tomahawk3_cpri_port_rsvd4_rx_frame_config_set( 4667 int unit, 4668 bcm_gport_t port, 4669 bcm_rsvd4_rx_frame_config_t *config) 4670 { 4671 return bcm_esw_cpri_port_rsvd4_rx_frame_config_set(unit, port, config); 4672 } 4673 #endif 4674 4675 #ifdef BCM_TOMAHAWK3_SUPPORT 4676 int 4677 bcm_tomahawk3_cpri_port_rsvd4_rx_fsm_state_set( 4678 int unit, 4679 bcm_gport_t port, 4680 bcm_rsvd4_rx_fsm_state_t state) 4681 { 4682 return bcm_esw_cpri_port_rsvd4_rx_fsm_state_set(unit, port, state); 4683 } 4684 #endif 4685 4686 #ifdef BCM_TOMAHAWK3_SUPPORT 4687 int 4688 bcm_tomahawk3_cpri_port_rsvd4_rx_override_set( 4689 int unit, 4690 bcm_gport_t port, 4691 bcm_rsvd4_rx_params_t parameter, 4692 int enable, 4693 int value) 4694 { 4695 return bcm_esw_cpri_port_rsvd4_rx_override_set(unit, port, parameter, enable, value); 4696 } 4697 #endif 4698 4699 #ifdef BCM_TOMAHAWK3_SUPPORT 4700 int 4701 bcm_tomahawk3_cpri_port_rsvd4_secondary_dbm_entry_clear( 4702 int unit, 4703 bcm_gport_t port, 4704 int index) 4705 { 4706 return bcm_esw_cpri_port_rsvd4_secondary_dbm_entry_clear(unit, port, index); 4707 } 4708 #endif 4709 4710 #ifdef BCM_TOMAHAWK3_SUPPORT 4711 int 4712 bcm_tomahawk3_cpri_port_rsvd4_secondary_dbm_entry_get( 4713 int unit, 4714 bcm_gport_t port, 4715 int index, 4716 bcm_rsvd4_secondary_dbm_entry_t *entry) 4717 { 4718 return bcm_esw_cpri_port_rsvd4_secondary_dbm_entry_get(unit, port, index, entry); 4719 } 4720 #endif 4721 4722 #ifdef BCM_TOMAHAWK3_SUPPORT 4723 int 4724 bcm_tomahawk3_cpri_port_rsvd4_secondary_dbm_entry_set( 4725 int unit, 4726 bcm_gport_t port, 4727 int index, 4728 bcm_rsvd4_secondary_dbm_entry_t *entry) 4729 { 4730 return bcm_esw_cpri_port_rsvd4_secondary_dbm_entry_set(unit, port, index, entry); 4731 } 4732 #endif 4733 4734 #ifdef BCM_TOMAHAWK3_SUPPORT 4735 int 4736 bcm_tomahawk3_cpri_port_rsvd4_sync_profile_entry_get( 4737 int unit, 4738 int port, 4739 int index, 4740 bcm_rsvd4_sync_profile_entry_t *config) 4741 { 4742 return bcm_esw_cpri_port_rsvd4_sync_profile_entry_get(unit, port, index, config); 4743 } 4744 #endif 4745 4746 #ifdef BCM_TOMAHAWK3_SUPPORT 4747 int 4748 bcm_tomahawk3_cpri_port_rsvd4_sync_profile_entry_set( 4749 int unit, 4750 int port, 4751 int index, 4752 bcm_rsvd4_sync_profile_entry_t *config) 4753 { 4754 return bcm_esw_cpri_port_rsvd4_sync_profile_entry_set(unit, port, index, config); 4755 } 4756 #endif 4757 4758 #ifdef BCM_TOMAHAWK3_SUPPORT 4759 int 4760 bcm_tomahawk3_cpri_port_rsvd4_tx_cm_eth_config_set( 4761 int unit, 4762 int port, 4763 bcm_rsvd4_tx_cm_eth_config_t *config) 4764 { 4765 return bcm_esw_cpri_port_rsvd4_tx_cm_eth_config_set(unit, port, config); 4766 } 4767 #endif 4768 4769 #ifdef BCM_TOMAHAWK3_SUPPORT 4770 int 4771 bcm_tomahawk3_cpri_port_rsvd4_tx_cm_hdr_config_entry_set( 4772 int unit, 4773 int port, 4774 int index, 4775 bcm_rsvd4_tx_cm_hdr_entry_t *entry) 4776 { 4777 return bcm_esw_cpri_port_rsvd4_tx_cm_hdr_config_entry_set(unit, port, index, entry); 4778 } 4779 #endif 4780 4781 #ifdef BCM_TOMAHAWK3_SUPPORT 4782 int 4783 bcm_tomahawk3_cpri_port_rsvd4_tx_cm_hdr_lkup_entry_set( 4784 int unit, 4785 int port, 4786 int flow_id, 4787 int header_index) 4788 { 4789 return bcm_esw_cpri_port_rsvd4_tx_cm_hdr_lkup_entry_set(unit, port, flow_id, header_index); 4790 } 4791 #endif 4792 4793 #ifdef BCM_TOMAHAWK3_SUPPORT 4794 int 4795 bcm_tomahawk3_cpri_port_rsvd4_tx_cm_raw_config_set( 4796 int unit, 4797 int port, 4798 bcm_rsvd4_tx_cm_raw_config_t *config) 4799 { 4800 return bcm_esw_cpri_port_rsvd4_tx_cm_raw_config_set(unit, port, config); 4801 } 4802 #endif 4803 4804 #ifdef BCM_TOMAHAWK3_SUPPORT 4805 int 4806 bcm_tomahawk3_cpri_port_rsvd4_tx_cm_tunnel_crc_config_set( 4807 int unit, 4808 int port, 4809 bcm_rsvd4_cm_tunnel_crc_option_t crc_option) 4810 { 4811 return bcm_esw_cpri_port_rsvd4_tx_cm_tunnel_crc_config_set(unit, port, crc_option); 4812 } 4813 #endif 4814 4815 #ifdef BCM_TOMAHAWK3_SUPPORT 4816 int 4817 bcm_tomahawk3_cpri_port_rsvd4_tx_control_flow_add( 4818 int unit, 4819 int port, 4820 int control_flow_id, 4821 bcm_rsvd4_tx_control_flow_config_t *config) 4822 { 4823 return bcm_esw_cpri_port_rsvd4_tx_control_flow_add(unit, port, control_flow_id, config); 4824 } 4825 #endif 4826 4827 #ifdef BCM_TOMAHAWK3_SUPPORT 4828 int 4829 bcm_tomahawk3_cpri_port_rsvd4_tx_control_flow_group_member_add( 4830 int unit, 4831 int port, 4832 bcm_rsvd4_control_group_id_t group_num, 4833 bcm_rsvd4_tx_control_flow_group_config_t *config) 4834 { 4835 return bcm_esw_cpri_port_rsvd4_tx_control_flow_group_member_add(unit, port, group_num, config); 4836 } 4837 #endif 4838 4839 #ifdef BCM_TOMAHAWK3_SUPPORT 4840 int 4841 bcm_tomahawk3_cpri_port_rsvd4_tx_control_flow_group_member_delete( 4842 int unit, 4843 int port, 4844 bcm_rsvd4_control_group_id_t group_num, 4845 bcm_rsvd4_priority_t priority) 4846 { 4847 return bcm_esw_cpri_port_rsvd4_tx_control_flow_group_member_delete(unit, port, group_num, priority); 4848 } 4849 #endif 4850 4851 #ifdef BCM_TOMAHAWK3_SUPPORT 4852 int 4853 bcm_tomahawk3_cpri_port_rsvd4_tx_current_frame_sync_info_get( 4854 int unit, 4855 bcm_gport_t port, 4856 bcm_rsvd4_frame_sync_info_t *frame_sync_info) 4857 { 4858 return bcm_esw_cpri_port_rsvd4_tx_current_frame_sync_info_get(unit, port, frame_sync_info); 4859 } 4860 #endif 4861 4862 #ifdef BCM_TOMAHAWK3_SUPPORT 4863 int 4864 bcm_tomahawk3_cpri_port_rsvd4_tx_flow_add( 4865 int unit, 4866 bcm_gport_t port, 4867 int flow_id, 4868 bcm_rsvd4_tx_flow_info_t *flow_info) 4869 { 4870 return bcm_esw_cpri_port_rsvd4_tx_flow_add(unit, port, flow_id, flow_info); 4871 } 4872 #endif 4873 4874 #ifdef BCM_TOMAHAWK3_SUPPORT 4875 int 4876 bcm_tomahawk3_cpri_port_rsvd4_tx_flow_delete( 4877 int unit, 4878 bcm_gport_t port, 4879 int flow_id) 4880 { 4881 return bcm_esw_cpri_port_rsvd4_tx_flow_delete(unit, port, flow_id); 4882 } 4883 #endif 4884 4885 #ifdef BCM_TOMAHAWK3_SUPPORT 4886 int 4887 bcm_tomahawk3_cpri_port_rsvd4_tx_frame_config_debug_set( 4888 int unit, 4889 bcm_gport_t port, 4890 bcm_rsvd4_tx_config_t config_type, 4891 uint32 value) 4892 { 4893 return bcm_esw_cpri_port_rsvd4_tx_frame_config_debug_set(unit, port, config_type, value); 4894 } 4895 #endif 4896 4897 #ifdef BCM_TOMAHAWK3_SUPPORT 4898 int 4899 bcm_tomahawk3_cpri_port_rsvd4_tx_frame_config_get( 4900 int unit, 4901 bcm_gport_t port, 4902 bcm_rsvd4_tx_frame_config_t *config) 4903 { 4904 return bcm_esw_cpri_port_rsvd4_tx_frame_config_get(unit, port, config); 4905 } 4906 #endif 4907 4908 #ifdef BCM_TOMAHAWK3_SUPPORT 4909 int 4910 bcm_tomahawk3_cpri_port_rsvd4_tx_frame_config_set( 4911 int unit, 4912 bcm_gport_t port, 4913 bcm_rsvd4_tx_frame_config_t *config) 4914 { 4915 return bcm_esw_cpri_port_rsvd4_tx_frame_config_set(unit, port, config); 4916 } 4917 #endif 4918 4919 #ifdef BCM_TOMAHAWK3_SUPPORT 4920 int 4921 bcm_tomahawk3_cpri_port_rsvd4_tx_fsm_state_set( 4922 int unit, 4923 bcm_gport_t port, 4924 bcm_rsvd4_tx_fsm_state_t state) 4925 { 4926 return bcm_esw_cpri_port_rsvd4_tx_fsm_state_set(unit, port, state); 4927 } 4928 #endif 4929 4930 #ifdef BCM_TOMAHAWK3_SUPPORT 4931 int 4932 bcm_tomahawk3_cpri_port_rsvd4_tx_modulo_rule_entry_get( 4933 int unit, 4934 bcm_gport_t port, 4935 uint32 modulo_rule_num, 4936 bcm_cpri_tx_rule_type_t modulo_rule_type, 4937 bcm_cpri_modulo_rule_entry_t *modulo_rule) 4938 { 4939 return bcm_esw_cpri_port_rsvd4_tx_modulo_rule_entry_get(unit, port, modulo_rule_num, modulo_rule_type, modulo_rule); 4940 } 4941 #endif 4942 4943 #ifdef BCM_TOMAHAWK3_SUPPORT 4944 int 4945 bcm_tomahawk3_cpri_port_rsvd4_tx_modulo_rule_entry_set( 4946 int unit, 4947 bcm_gport_t port, 4948 uint32 modulo_rule_num, 4949 bcm_cpri_tx_rule_type_t modulo_rule_type, 4950 bcm_cpri_modulo_rule_entry_t *modulo_rule) 4951 { 4952 return bcm_esw_cpri_port_rsvd4_tx_modulo_rule_entry_set(unit, port, modulo_rule_num, modulo_rule_type, modulo_rule); 4953 } 4954 #endif 4955 4956 #ifdef BCM_TOMAHAWK3_SUPPORT 4957 int 4958 bcm_tomahawk3_cpri_port_rsvd4_tx_override_set( 4959 int unit, 4960 bcm_gport_t port, 4961 bcm_rsvd4_tx_params_t parameter, 4962 int enable, 4963 int value) 4964 { 4965 return bcm_esw_cpri_port_rsvd4_tx_override_set(unit, port, parameter, enable, value); 4966 } 4967 #endif 4968 4969 #ifdef BCM_TOMAHAWK3_SUPPORT 4970 int 4971 bcm_tomahawk3_cpri_port_rsvd4_tx_position_entry_get( 4972 int unit, 4973 bcm_gport_t port, 4974 uint32 pos_index, 4975 bcm_cpri_dbm_position_entry_t *pos_entry) 4976 { 4977 return bcm_esw_cpri_port_rsvd4_tx_position_entry_get(unit, port, pos_index, pos_entry); 4978 } 4979 #endif 4980 4981 #ifdef BCM_TOMAHAWK3_SUPPORT 4982 int 4983 bcm_tomahawk3_cpri_port_rsvd4_tx_position_entry_set( 4984 int unit, 4985 bcm_gport_t port, 4986 uint32 pos_index, 4987 bcm_cpri_dbm_position_entry_t *pos_entry) 4988 { 4989 return bcm_esw_cpri_port_rsvd4_tx_position_entry_set(unit, port, pos_index, pos_entry); 4990 } 4991 #endif 4992 4993 #ifdef BCM_TOMAHAWK3_SUPPORT 4994 int 4995 bcm_tomahawk3_cpri_port_rx_axc_frame_add( 4996 int unit, 4997 bcm_gport_t port, 4998 int axc_id, 4999 bcm_cpri_axc_frame_info_t *axc_info) 5000 { 5001 return bcm_esw_cpri_port_rx_axc_frame_add(unit, port, axc_id, axc_info); 5002 } 5003 #endif 5004 5005 #ifdef BCM_TOMAHAWK3_SUPPORT 5006 int 5007 bcm_tomahawk3_cpri_port_rx_axc_frame_delete( 5008 int unit, 5009 bcm_gport_t port, 5010 int axc_id) 5011 { 5012 return bcm_esw_cpri_port_rx_axc_frame_delete(unit, port, axc_id); 5013 } 5014 #endif 5015 5016 #ifdef BCM_TOMAHAWK3_SUPPORT 5017 int 5018 bcm_tomahawk3_cpri_port_rx_axc_frame_get( 5019 int unit, 5020 bcm_gport_t port, 5021 int axc_id, 5022 bcm_cpri_axc_frame_info_t *axc_info) 5023 { 5024 return bcm_esw_cpri_port_rx_axc_frame_get(unit, port, axc_id, axc_info); 5025 } 5026 #endif 5027 5028 #ifdef BCM_TOMAHAWK3_SUPPORT 5029 int 5030 bcm_tomahawk3_cpri_port_rx_axc_frame_get_all( 5031 int unit, 5032 bcm_gport_t port, 5033 int max_count, 5034 bcm_cpri_axc_frame_info_t *axc_info_list, 5035 int *axc_count) 5036 { 5037 return bcm_esw_cpri_port_rx_axc_frame_get_all(unit, port, max_count, axc_info_list, axc_count); 5038 } 5039 #endif 5040 5041 #ifdef BCM_TOMAHAWK3_SUPPORT 5042 int 5043 bcm_tomahawk3_cpri_port_rx_cw_gcw_config_get( 5044 int unit, 5045 int port, 5046 uint8 index, 5047 bcm_cpri_rx_gcw_config_info_t *config) 5048 { 5049 return bcm_esw_cpri_port_rx_cw_gcw_config_get(unit, port, index, config); 5050 } 5051 #endif 5052 5053 #ifdef BCM_TOMAHAWK3_SUPPORT 5054 int 5055 bcm_tomahawk3_cpri_port_rx_cw_gcw_config_set( 5056 int unit, 5057 int port, 5058 uint8 index, 5059 bcm_cpri_rx_gcw_config_info_t *config) 5060 { 5061 return bcm_esw_cpri_port_rx_cw_gcw_config_set(unit, port, index, config); 5062 } 5063 #endif 5064 5065 #ifdef BCM_TOMAHAWK3_SUPPORT 5066 int 5067 bcm_tomahawk3_cpri_port_rx_cw_gcw_word_get( 5068 int unit, 5069 bcm_port_t port, 5070 int group_index, 5071 uint16 *gcw_word) 5072 { 5073 return bcm_esw_cpri_port_rx_cw_gcw_word_get(unit, port, group_index, gcw_word); 5074 } 5075 #endif 5076 5077 #ifdef BCM_TOMAHAWK3_SUPPORT 5078 int 5079 bcm_tomahawk3_cpri_port_rx_cw_l1_signal_info_get( 5080 int unit, 5081 int port, 5082 bcm_cpri_cw_l1_protocol_info_t *l1_info) 5083 { 5084 return bcm_esw_cpri_port_rx_cw_l1_signal_info_get(unit, port, l1_info); 5085 } 5086 #endif 5087 5088 #ifdef BCM_TOMAHAWK3_SUPPORT 5089 int 5090 bcm_tomahawk3_cpri_port_rx_cw_l1_signal_protection_get( 5091 int unit, 5092 int port, 5093 uint32 signal_map, 5094 uint32 *enable) 5095 { 5096 return bcm_esw_cpri_port_rx_cw_l1_signal_protection_get(unit, port, signal_map, enable); 5097 } 5098 #endif 5099 5100 #ifdef BCM_TOMAHAWK3_SUPPORT 5101 int 5102 bcm_tomahawk3_cpri_port_rx_cw_l1_signal_protection_set( 5103 int unit, 5104 int port, 5105 uint32 signal_map, 5106 uint32 enable) 5107 { 5108 return bcm_esw_cpri_port_rx_cw_l1_signal_protection_set(unit, port, signal_map, enable); 5109 } 5110 #endif 5111 5112 #ifdef BCM_TOMAHAWK3_SUPPORT 5113 int 5114 bcm_tomahawk3_cpri_port_rx_cw_rsvd5_config_get( 5115 int unit, 5116 int port, 5117 bcm_cpri_rx_rsvd5_config_info_t *config) 5118 { 5119 return bcm_esw_cpri_port_rx_cw_rsvd5_config_get(unit, port, config); 5120 } 5121 #endif 5122 5123 #ifdef BCM_TOMAHAWK3_SUPPORT 5124 int 5125 bcm_tomahawk3_cpri_port_rx_cw_rsvd5_config_set( 5126 int unit, 5127 int port, 5128 bcm_cpri_rx_rsvd5_config_info_t *config) 5129 { 5130 return bcm_esw_cpri_port_rx_cw_rsvd5_config_set(unit, port, config); 5131 } 5132 #endif 5133 5134 #ifdef BCM_TOMAHAWK3_SUPPORT 5135 int 5136 bcm_tomahawk3_cpri_port_rx_cw_sync_info_get( 5137 int unit, 5138 int port, 5139 uint32 *hyper_frame_num, 5140 uint32 *radio_frame_num) 5141 { 5142 return bcm_esw_cpri_port_rx_cw_sync_info_get(unit, port, hyper_frame_num, radio_frame_num); 5143 } 5144 #endif 5145 5146 #ifdef BCM_TOMAHAWK3_SUPPORT 5147 int 5148 bcm_tomahawk3_cpri_port_rx_cw_vsd_config_get( 5149 int unit, 5150 int port, 5151 bcm_cpri_rx_vsd_config_info_t *config) 5152 { 5153 return bcm_esw_cpri_port_rx_cw_vsd_config_get(unit, port, config); 5154 } 5155 #endif 5156 5157 #ifdef BCM_TOMAHAWK3_SUPPORT 5158 int 5159 bcm_tomahawk3_cpri_port_rx_cw_vsd_config_set( 5160 int unit, 5161 int port, 5162 bcm_cpri_rx_vsd_config_info_t *config) 5163 { 5164 return bcm_esw_cpri_port_rx_cw_vsd_config_set(unit, port, config); 5165 } 5166 #endif 5167 5168 #ifdef BCM_TOMAHAWK3_SUPPORT 5169 int 5170 bcm_tomahawk3_cpri_port_rx_cw_vsd_ctrl_flow_add( 5171 int unit, 5172 int port, 5173 uint16 group_id, 5174 bcm_cpri_rx_vsd_flow_info_t *config) 5175 { 5176 return bcm_esw_cpri_port_rx_cw_vsd_ctrl_flow_add(unit, port, group_id, config); 5177 } 5178 #endif 5179 5180 #ifdef BCM_TOMAHAWK3_SUPPORT 5181 int 5182 bcm_tomahawk3_cpri_port_rx_cw_vsd_ctrl_flow_delete( 5183 int unit, 5184 int port, 5185 uint16 group_id) 5186 { 5187 return bcm_esw_cpri_port_rx_cw_vsd_ctrl_flow_delete(unit, port, group_id); 5188 } 5189 #endif 5190 5191 #ifdef BCM_TOMAHAWK3_SUPPORT 5192 int 5193 bcm_tomahawk3_cpri_port_rx_cw_vsd_ctrl_flow_get( 5194 int unit, 5195 int port, 5196 uint16 group_id, 5197 bcm_cpri_rx_vsd_flow_info_t *config) 5198 { 5199 return bcm_esw_cpri_port_rx_cw_vsd_ctrl_flow_get(unit, port, group_id, config); 5200 } 5201 #endif 5202 5203 #ifdef BCM_TOMAHAWK3_SUPPORT 5204 int 5205 bcm_tomahawk3_cpri_port_rx_cw_vsd_raw_config_get( 5206 int unit, 5207 int port, 5208 uint8 vsd_raw_id, 5209 bcm_cpri_rx_vsd_raw_config_info_t *config) 5210 { 5211 return bcm_esw_cpri_port_rx_cw_vsd_raw_config_get(unit, port, vsd_raw_id, config); 5212 } 5213 #endif 5214 5215 #ifdef BCM_TOMAHAWK3_SUPPORT 5216 int 5217 bcm_tomahawk3_cpri_port_rx_cw_vsd_raw_config_set( 5218 int unit, 5219 int port, 5220 uint8 vsd_raw_id, 5221 bcm_cpri_rx_vsd_raw_config_info_t *config) 5222 { 5223 return bcm_esw_cpri_port_rx_cw_vsd_raw_config_set(unit, port, vsd_raw_id, config); 5224 } 5225 #endif 5226 5227 #ifdef BCM_TOMAHAWK3_SUPPORT 5228 int 5229 bcm_tomahawk3_cpri_port_rx_speed_get( 5230 int unit, 5231 bcm_gport_t port, 5232 bcm_cpri_port_type_t *port_type, 5233 bcm_cpri_port_speed_t *speed) 5234 { 5235 return bcm_esw_cpri_port_rx_speed_get(unit, port, port_type, speed); 5236 } 5237 #endif 5238 5239 #ifdef BCM_TOMAHAWK3_SUPPORT 5240 int 5241 bcm_tomahawk3_cpri_port_rx_speed_set( 5242 int unit, 5243 bcm_gport_t port, 5244 bcm_cpri_port_type_t port_type, 5245 bcm_cpri_port_speed_t speed) 5246 { 5247 return bcm_esw_cpri_port_rx_speed_set(unit, port, port_type, speed); 5248 } 5249 #endif 5250 5251 #ifdef BCM_TOMAHAWK3_SUPPORT 5252 int 5253 bcm_tomahawk3_cpri_port_rx_tag_config_set( 5254 int unit, 5255 int port, 5256 bcm_cpri_control_tag_config_t *config) 5257 { 5258 return bcm_esw_cpri_port_rx_tag_config_set(unit, port, config); 5259 } 5260 #endif 5261 5262 #ifdef BCM_TOMAHAWK3_SUPPORT 5263 int 5264 bcm_tomahawk3_cpri_port_rx_tag_entry_add( 5265 int unit, 5266 int port, 5267 bcm_cpri_tag_gen_entry_t *config) 5268 { 5269 return bcm_esw_cpri_port_rx_tag_entry_add(unit, port, config); 5270 } 5271 #endif 5272 5273 #ifdef BCM_TOMAHAWK3_SUPPORT 5274 int 5275 bcm_tomahawk3_cpri_port_rx_tag_entry_delete( 5276 int unit, 5277 int port, 5278 bcm_cpri_tag_gen_entry_t *config) 5279 { 5280 return bcm_esw_cpri_port_rx_tag_entry_delete(unit, port, config); 5281 } 5282 #endif 5283 5284 #ifdef BCM_TOMAHAWK3_SUPPORT 5285 int 5286 bcm_tomahawk3_cpri_port_stat_get( 5287 int unit, 5288 bcm_gport_t port, 5289 bcm_cpri_stat_type_t type, 5290 uint64 *val) 5291 { 5292 return bcm_esw_cpri_port_stat_get(unit, port, type, val); 5293 } 5294 #endif 5295 5296 #ifdef BCM_TOMAHAWK3_SUPPORT 5297 int 5298 bcm_tomahawk3_cpri_port_tunnel_mode_config_get( 5299 int unit, 5300 bcm_port_t port, 5301 bcm_cpri_dir_t direction, 5302 int *enable, 5303 bcm_cpri_port_tunnel_config_t *config) 5304 { 5305 return bcm_esw_cpri_port_tunnel_mode_config_get(unit, port, direction, enable, config); 5306 } 5307 #endif 5308 5309 #ifdef BCM_TOMAHAWK3_SUPPORT 5310 int 5311 bcm_tomahawk3_cpri_port_tunnel_mode_config_set( 5312 int unit, 5313 bcm_port_t port, 5314 bcm_cpri_dir_t direction, 5315 int enable, 5316 bcm_cpri_port_tunnel_config_t *config) 5317 { 5318 return bcm_esw_cpri_port_tunnel_mode_config_set(unit, port, direction, enable, config); 5319 } 5320 #endif 5321 5322 #ifdef BCM_TOMAHAWK3_SUPPORT 5323 int 5324 bcm_tomahawk3_cpri_port_tx_axc_frame_add( 5325 int unit, 5326 bcm_gport_t port, 5327 int axc_id, 5328 bcm_cpri_axc_frame_info_t *axc_info) 5329 { 5330 return bcm_esw_cpri_port_tx_axc_frame_add(unit, port, axc_id, axc_info); 5331 } 5332 #endif 5333 5334 #ifdef BCM_TOMAHAWK3_SUPPORT 5335 int 5336 bcm_tomahawk3_cpri_port_tx_axc_frame_delete( 5337 int unit, 5338 bcm_gport_t port, 5339 int axc_id) 5340 { 5341 return bcm_esw_cpri_port_tx_axc_frame_delete(unit, port, axc_id); 5342 } 5343 #endif 5344 5345 #ifdef BCM_TOMAHAWK3_SUPPORT 5346 int 5347 bcm_tomahawk3_cpri_port_tx_axc_frame_get( 5348 int unit, 5349 bcm_gport_t port, 5350 int axc_id, 5351 bcm_cpri_axc_frame_info_t *axc_info) 5352 { 5353 return bcm_esw_cpri_port_tx_axc_frame_get(unit, port, axc_id, axc_info); 5354 } 5355 #endif 5356 5357 #ifdef BCM_TOMAHAWK3_SUPPORT 5358 int 5359 bcm_tomahawk3_cpri_port_tx_axc_frame_get_all( 5360 int unit, 5361 bcm_gport_t port, 5362 int max_count, 5363 bcm_cpri_axc_frame_info_t *axc_info_list, 5364 int *axc_count) 5365 { 5366 return bcm_esw_cpri_port_tx_axc_frame_get_all(unit, port, max_count, axc_info_list, axc_count); 5367 } 5368 #endif 5369 5370 #ifdef BCM_TOMAHAWK3_SUPPORT 5371 int 5372 bcm_tomahawk3_cpri_port_tx_cw_gcw_config_get( 5373 int unit, 5374 int port, 5375 uint8 index, 5376 bcm_cpri_tx_gcw_config_info_t *config) 5377 { 5378 return bcm_esw_cpri_port_tx_cw_gcw_config_get(unit, port, index, config); 5379 } 5380 #endif 5381 5382 #ifdef BCM_TOMAHAWK3_SUPPORT 5383 int 5384 bcm_tomahawk3_cpri_port_tx_cw_gcw_config_set( 5385 int unit, 5386 int port, 5387 uint8 index, 5388 bcm_cpri_tx_gcw_config_info_t *config) 5389 { 5390 return bcm_esw_cpri_port_tx_cw_gcw_config_set(unit, port, index, config); 5391 } 5392 #endif 5393 5394 #ifdef BCM_TOMAHAWK3_SUPPORT 5395 int 5396 bcm_tomahawk3_cpri_port_tx_cw_gcw_filter_get( 5397 int unit, 5398 int port, 5399 bcm_cpri_tx_gcw_tx_filter_info_t *config) 5400 { 5401 return bcm_esw_cpri_port_tx_cw_gcw_filter_get(unit, port, config); 5402 } 5403 #endif 5404 5405 #ifdef BCM_TOMAHAWK3_SUPPORT 5406 int 5407 bcm_tomahawk3_cpri_port_tx_cw_gcw_filter_set( 5408 int unit, 5409 int port, 5410 bcm_cpri_tx_gcw_tx_filter_info_t *config) 5411 { 5412 return bcm_esw_cpri_port_tx_cw_gcw_filter_set(unit, port, config); 5413 } 5414 #endif 5415 5416 #ifdef BCM_TOMAHAWK3_SUPPORT 5417 int 5418 bcm_tomahawk3_cpri_port_tx_cw_gcw_word_set( 5419 int unit, 5420 bcm_port_t port, 5421 int group_index, 5422 uint16 gcw_word) 5423 { 5424 return bcm_esw_cpri_port_tx_cw_gcw_word_set(unit, port, group_index, gcw_word); 5425 } 5426 #endif 5427 5428 #ifdef BCM_TOMAHAWK3_SUPPORT 5429 int 5430 bcm_tomahawk3_cpri_port_tx_cw_l1_config_set( 5431 int unit, 5432 int port, 5433 bcm_cpri_cw_l1_config_info_t *entry) 5434 { 5435 return bcm_esw_cpri_port_tx_cw_l1_config_set(unit, port, entry); 5436 } 5437 #endif 5438 5439 #ifdef BCM_TOMAHAWK3_SUPPORT 5440 int 5441 bcm_tomahawk3_cpri_port_tx_cw_rsvd5_config_get( 5442 int unit, 5443 int port, 5444 bcm_cpri_tx_cw_rsvd5_config_info_t *config) 5445 { 5446 return bcm_esw_cpri_port_tx_cw_rsvd5_config_get(unit, port, config); 5447 } 5448 #endif 5449 5450 #ifdef BCM_TOMAHAWK3_SUPPORT 5451 int 5452 bcm_tomahawk3_cpri_port_tx_cw_rsvd5_config_set( 5453 int unit, 5454 int port, 5455 bcm_cpri_tx_cw_rsvd5_config_info_t *config) 5456 { 5457 return bcm_esw_cpri_port_tx_cw_rsvd5_config_set(unit, port, config); 5458 } 5459 #endif 5460 5461 #ifdef BCM_TOMAHAWK3_SUPPORT 5462 int 5463 bcm_tomahawk3_cpri_port_tx_cw_sync_info_get( 5464 int unit, 5465 int port, 5466 bcm_cpri_cw_sync_info_t *entry) 5467 { 5468 return bcm_esw_cpri_port_tx_cw_sync_info_get(unit, port, entry); 5469 } 5470 #endif 5471 5472 #ifdef BCM_TOMAHAWK3_SUPPORT 5473 int 5474 bcm_tomahawk3_cpri_port_tx_cw_sync_info_set( 5475 int unit, 5476 int port, 5477 bcm_cpri_cw_sync_info_t *entry) 5478 { 5479 return bcm_esw_cpri_port_tx_cw_sync_info_set(unit, port, entry); 5480 } 5481 #endif 5482 5483 #ifdef BCM_TOMAHAWK3_SUPPORT 5484 int 5485 bcm_tomahawk3_cpri_port_tx_cw_vsd_config_get( 5486 int unit, 5487 int port, 5488 bcm_cpri_tx_vsd_config_info_t *entry) 5489 { 5490 return bcm_esw_cpri_port_tx_cw_vsd_config_get(unit, port, entry); 5491 } 5492 #endif 5493 5494 #ifdef BCM_TOMAHAWK3_SUPPORT 5495 int 5496 bcm_tomahawk3_cpri_port_tx_cw_vsd_config_set( 5497 int unit, 5498 int port, 5499 bcm_cpri_tx_vsd_config_info_t *entry) 5500 { 5501 return bcm_esw_cpri_port_tx_cw_vsd_config_set(unit, port, entry); 5502 } 5503 #endif 5504 5505 #ifdef BCM_TOMAHAWK3_SUPPORT 5506 int 5507 bcm_tomahawk3_cpri_port_tx_cw_vsd_ctrl_flow_add( 5508 int unit, 5509 int port, 5510 uint16 group_id, 5511 bcm_cpri_tx_vsd_flow_info_t *config) 5512 { 5513 return bcm_esw_cpri_port_tx_cw_vsd_ctrl_flow_add(unit, port, group_id, config); 5514 } 5515 #endif 5516 5517 #ifdef BCM_TOMAHAWK3_SUPPORT 5518 int 5519 bcm_tomahawk3_cpri_port_tx_cw_vsd_ctrl_flow_delete( 5520 int unit, 5521 int port, 5522 uint16 group_id) 5523 { 5524 return bcm_esw_cpri_port_tx_cw_vsd_ctrl_flow_delete(unit, port, group_id); 5525 } 5526 #endif 5527 5528 #ifdef BCM_TOMAHAWK3_SUPPORT 5529 int 5530 bcm_tomahawk3_cpri_port_tx_cw_vsd_ctrl_flow_get( 5531 int unit, 5532 int port, 5533 uint16 group_id, 5534 bcm_cpri_tx_vsd_flow_info_t *config) 5535 { 5536 return bcm_esw_cpri_port_tx_cw_vsd_ctrl_flow_get(unit, port, group_id, config); 5537 } 5538 #endif 5539 5540 #ifdef BCM_TOMAHAWK3_SUPPORT 5541 int 5542 bcm_tomahawk3_cpri_port_tx_cw_vsd_raw_filter_get( 5543 int unit, 5544 int port, 5545 bcm_cpri_tx_cw_vsd_raw_filter_info_t *config) 5546 { 5547 return bcm_esw_cpri_port_tx_cw_vsd_raw_filter_get(unit, port, config); 5548 } 5549 #endif 5550 5551 #ifdef BCM_TOMAHAWK3_SUPPORT 5552 int 5553 bcm_tomahawk3_cpri_port_tx_cw_vsd_raw_filter_set( 5554 int unit, 5555 int port, 5556 bcm_cpri_tx_cw_vsd_raw_filter_info_t *config) 5557 { 5558 return bcm_esw_cpri_port_tx_cw_vsd_raw_filter_set(unit, port, config); 5559 } 5560 #endif 5561 5562 #ifdef BCM_TOMAHAWK3_SUPPORT 5563 int 5564 bcm_tomahawk3_cpri_port_tx_cw_vsd_raw_flow_config_get( 5565 int unit, 5566 int port, 5567 uint8 index, 5568 bcm_cpri_tx_vsd_raw_config_info_t *config) 5569 { 5570 return bcm_esw_cpri_port_tx_cw_vsd_raw_flow_config_get(unit, port, index, config); 5571 } 5572 #endif 5573 5574 #ifdef BCM_TOMAHAWK3_SUPPORT 5575 int 5576 bcm_tomahawk3_cpri_port_tx_cw_vsd_raw_flow_config_set( 5577 int unit, 5578 int port, 5579 uint8 index, 5580 bcm_cpri_tx_vsd_raw_config_info_t *config) 5581 { 5582 return bcm_esw_cpri_port_tx_cw_vsd_raw_flow_config_set(unit, port, index, config); 5583 } 5584 #endif 5585 5586 #ifdef BCM_TOMAHAWK3_SUPPORT 5587 int 5588 bcm_tomahawk3_cpri_port_tx_frame_tgen_config_set( 5589 int unit, 5590 bcm_gport_t port, 5591 int enable, 5592 bcm_cpri_tx_frame_tgen_config_t *tgen_config) 5593 { 5594 return bcm_esw_cpri_port_tx_frame_tgen_config_set(unit, port, enable, tgen_config); 5595 } 5596 #endif 5597 5598 #ifdef BCM_TOMAHAWK3_SUPPORT 5599 int 5600 bcm_tomahawk3_cpri_port_tx_speed_get( 5601 int unit, 5602 bcm_gport_t port, 5603 bcm_cpri_port_type_t *port_type, 5604 bcm_cpri_port_speed_t *speed) 5605 { 5606 return bcm_esw_cpri_port_tx_speed_get(unit, port, port_type, speed); 5607 } 5608 #endif 5609 5610 #ifdef BCM_TOMAHAWK3_SUPPORT 5611 int 5612 bcm_tomahawk3_cpri_port_tx_speed_set( 5613 int unit, 5614 bcm_gport_t port, 5615 bcm_cpri_port_type_t port_type, 5616 bcm_cpri_port_speed_t speed) 5617 { 5618 return bcm_esw_cpri_port_tx_speed_set(unit, port, port_type, speed); 5619 } 5620 #endif 5621 5622 #ifdef BCM_TOMAHAWK3_SUPPORT 5623 int 5624 bcm_tomahawk3_custom_port_get( 5625 int unit, 5626 bcm_port_t port, 5627 int type, 5628 int max_len, 5629 uint32 *args, 5630 int *actual_len) 5631 { 5632 return bcm_common_custom_port_get(unit, port, type, max_len, args, actual_len); 5633 } 5634 #endif 5635 5636 #ifdef BCM_TOMAHAWK3_SUPPORT 5637 int 5638 bcm_tomahawk3_custom_port_set( 5639 int unit, 5640 bcm_port_t port, 5641 int type, 5642 int len, 5643 uint32 *args) 5644 { 5645 return bcm_common_custom_port_set(unit, port, type, len, args); 5646 } 5647 #endif 5648 5649 #ifdef BCM_TOMAHAWK3_SUPPORT 5650 int 5651 bcm_tomahawk3_custom_register( 5652 int unit, 5653 bcm_custom_cb_t func, 5654 void *user_data) 5655 { 5656 return bcm_common_custom_register(unit, func, user_data); 5657 } 5658 #endif 5659 5660 #ifdef BCM_TOMAHAWK3_SUPPORT 5661 int 5662 bcm_tomahawk3_custom_unregister( 5663 int unit) 5664 { 5665 return bcm_common_custom_unregister(unit); 5666 } 5667 #endif 5668 5669 #ifdef BCM_TOMAHAWK3_SUPPORT 5670 int 5671 bcm_tomahawk3_device_member_get( 5672 int unit, 5673 uint32 flags, 5674 bcm_device_member_t member_type, 5675 int *is_member) 5676 { 5677 return bcm_esw_device_member_get(unit, flags, member_type, is_member); 5678 } 5679 #endif 5680 5681 #ifdef BCM_TOMAHAWK3_SUPPORT 5682 int 5683 bcm_tomahawk3_eav_bandwidth_get( 5684 int unit, 5685 bcm_port_t port, 5686 bcm_eav_stream_class_t type, 5687 uint32 *bytes_sec, 5688 uint32 *bytes_burst) 5689 { 5690 return bcm_esw_eav_bandwidth_get(unit, port, type, bytes_sec, bytes_burst); 5691 } 5692 #endif 5693 5694 #ifdef BCM_TOMAHAWK3_SUPPORT 5695 int 5696 bcm_tomahawk3_eav_bandwidth_set( 5697 int unit, 5698 bcm_port_t port, 5699 bcm_eav_stream_class_t type, 5700 uint32 bytes_sec, 5701 uint32 bytes_burst) 5702 { 5703 return bcm_esw_eav_bandwidth_set(unit, port, type, bytes_sec, bytes_burst); 5704 } 5705 #endif 5706 5707 #ifdef BCM_TOMAHAWK3_SUPPORT 5708 int 5709 bcm_tomahawk3_eav_control_get( 5710 int unit, 5711 bcm_eav_control_t type, 5712 uint32 *arg, 5713 uint32 *arg2) 5714 { 5715 return bcm_esw_eav_control_get(unit, type, arg, arg2); 5716 } 5717 #endif 5718 5719 #ifdef BCM_TOMAHAWK3_SUPPORT 5720 int 5721 bcm_tomahawk3_eav_control_set( 5722 int unit, 5723 bcm_eav_control_t type, 5724 uint32 arg, 5725 uint32 arg2) 5726 { 5727 return bcm_esw_eav_control_set(unit, type, arg, arg2); 5728 } 5729 #endif 5730 5731 #ifdef BCM_TOMAHAWK3_SUPPORT 5732 int 5733 bcm_tomahawk3_eav_init( 5734 int unit) 5735 { 5736 return bcm_esw_eav_init(unit); 5737 } 5738 #endif 5739 5740 #ifdef BCM_TOMAHAWK3_SUPPORT 5741 int 5742 bcm_tomahawk3_eav_link_status_get( 5743 int unit, 5744 bcm_port_t port, 5745 int *link) 5746 { 5747 return bcm_esw_eav_link_status_get(unit, port, link); 5748 } 5749 #endif 5750 5751 #ifdef BCM_TOMAHAWK3_SUPPORT 5752 int 5753 bcm_tomahawk3_eav_link_status_set( 5754 int unit, 5755 bcm_port_t port, 5756 int link) 5757 { 5758 return bcm_esw_eav_link_status_set(unit, port, link); 5759 } 5760 #endif 5761 5762 #ifdef BCM_TOMAHAWK3_SUPPORT 5763 int 5764 bcm_tomahawk3_eav_pcp_mapping_get( 5765 int unit, 5766 bcm_eav_stream_class_t type, 5767 int *pcp, 5768 int *remapped_pcp) 5769 { 5770 return bcm_esw_eav_pcp_mapping_get(unit, type, pcp, remapped_pcp); 5771 } 5772 #endif 5773 5774 #ifdef BCM_TOMAHAWK3_SUPPORT 5775 int 5776 bcm_tomahawk3_eav_pcp_mapping_set( 5777 int unit, 5778 bcm_eav_stream_class_t type, 5779 int pcp, 5780 int remapped_pcp) 5781 { 5782 return bcm_esw_eav_pcp_mapping_set(unit, type, pcp, remapped_pcp); 5783 } 5784 #endif 5785 5786 #ifdef BCM_TOMAHAWK3_SUPPORT 5787 int 5788 bcm_tomahawk3_eav_port_enable_get( 5789 int unit, 5790 bcm_port_t port, 5791 int *enable) 5792 { 5793 return bcm_esw_eav_port_enable_get(unit, port, enable); 5794 } 5795 #endif 5796 5797 #ifdef BCM_TOMAHAWK3_SUPPORT 5798 int 5799 bcm_tomahawk3_eav_port_enable_set( 5800 int unit, 5801 bcm_port_t port, 5802 int enable) 5803 { 5804 return bcm_esw_eav_port_enable_set(unit, port, enable); 5805 } 5806 #endif 5807 5808 #ifdef BCM_TOMAHAWK3_SUPPORT 5809 int 5810 bcm_tomahawk3_eav_srp_mac_ethertype_get( 5811 int unit, 5812 bcm_mac_t mac, 5813 bcm_port_ethertype_t *ethertype) 5814 { 5815 return bcm_esw_eav_srp_mac_ethertype_get(unit, mac, ethertype); 5816 } 5817 #endif 5818 5819 #ifdef BCM_TOMAHAWK3_SUPPORT 5820 int 5821 bcm_tomahawk3_eav_srp_mac_ethertype_set( 5822 int unit, 5823 bcm_mac_t mac, 5824 bcm_port_ethertype_t ethertype) 5825 { 5826 return bcm_esw_eav_srp_mac_ethertype_set(unit, mac, ethertype); 5827 } 5828 #endif 5829 5830 #ifdef BCM_TOMAHAWK3_SUPPORT 5831 int 5832 bcm_tomahawk3_eav_timestamp_get( 5833 int unit, 5834 bcm_port_t port, 5835 uint32 *timestamp) 5836 { 5837 return bcm_esw_eav_timestamp_get(unit, port, timestamp); 5838 } 5839 #endif 5840 5841 #ifdef BCM_TOMAHAWK3_SUPPORT 5842 int 5843 bcm_tomahawk3_eav_timesync_mac_get( 5844 int unit, 5845 bcm_mac_t eav_mac) 5846 { 5847 return bcm_esw_eav_timesync_mac_get(unit, eav_mac); 5848 } 5849 #endif 5850 5851 #ifdef BCM_TOMAHAWK3_SUPPORT 5852 int 5853 bcm_tomahawk3_eav_timesync_mac_set( 5854 int unit, 5855 bcm_mac_t eav_mac) 5856 { 5857 return bcm_esw_eav_timesync_mac_set(unit, eav_mac); 5858 } 5859 #endif 5860 5861 #if defined(INCLUDE_L3) 5862 #ifdef BCM_TOMAHAWK3_SUPPORT 5863 int 5864 bcm_tomahawk3_ecn_map_create( 5865 int unit, 5866 uint32 flags, 5867 int *ecn_map_id) 5868 { 5869 return bcm_esw_ecn_map_create(unit, flags, ecn_map_id); 5870 } 5871 #endif 5872 #endif 5873 5874 #if defined(INCLUDE_L3) 5875 #ifdef BCM_TOMAHAWK3_SUPPORT 5876 int 5877 bcm_tomahawk3_ecn_map_destroy( 5878 int unit, 5879 int ecn_map_id) 5880 { 5881 return bcm_esw_ecn_map_destroy(unit, ecn_map_id); 5882 } 5883 #endif 5884 #endif 5885 5886 #if defined(INCLUDE_L3) 5887 #ifdef BCM_TOMAHAWK3_SUPPORT 5888 int 5889 bcm_tomahawk3_ecn_map_get( 5890 int unit, 5891 int ecn_map_id, 5892 bcm_ecn_map_t *ecn_map) 5893 { 5894 return bcm_esw_ecn_map_get(unit, ecn_map_id, ecn_map); 5895 } 5896 #endif 5897 #endif 5898 5899 #if defined(INCLUDE_L3) 5900 #ifdef BCM_TOMAHAWK3_SUPPORT 5901 int 5902 bcm_tomahawk3_ecn_map_mode_get( 5903 int unit, 5904 bcm_ecn_map_mode_t *ecn_map_mode) 5905 { 5906 return bcm_esw_ecn_map_mode_get(unit, ecn_map_mode); 5907 } 5908 #endif 5909 #endif 5910 5911 #if defined(INCLUDE_L3) 5912 #ifdef BCM_TOMAHAWK3_SUPPORT 5913 int 5914 bcm_tomahawk3_ecn_map_mode_set( 5915 int unit, 5916 bcm_ecn_map_mode_t *ecn_map_mode) 5917 { 5918 return bcm_esw_ecn_map_mode_set(unit, ecn_map_mode); 5919 } 5920 #endif 5921 #endif 5922 5923 #if defined(INCLUDE_L3) 5924 #ifdef BCM_TOMAHAWK3_SUPPORT 5925 int 5926 bcm_tomahawk3_ecn_map_set( 5927 int unit, 5928 uint32 options, 5929 int ecn_map_id, 5930 bcm_ecn_map_t *ecn_map) 5931 { 5932 return bcm_esw_ecn_map_set(unit, options, ecn_map_id, ecn_map); 5933 } 5934 #endif 5935 #endif 5936 5937 #if defined(INCLUDE_L3) 5938 #ifdef BCM_TOMAHAWK3_SUPPORT 5939 int 5940 bcm_tomahawk3_ecn_port_map_get( 5941 int unit, 5942 bcm_gport_t port, 5943 bcm_ecn_port_map_t *ecn_map) 5944 { 5945 return bcm_esw_ecn_port_map_get(unit, port, ecn_map); 5946 } 5947 #endif 5948 #endif 5949 5950 #if defined(INCLUDE_L3) 5951 #ifdef BCM_TOMAHAWK3_SUPPORT 5952 int 5953 bcm_tomahawk3_ecn_port_map_set( 5954 int unit, 5955 bcm_gport_t port, 5956 bcm_ecn_port_map_t *ecn_map) 5957 { 5958 return bcm_esw_ecn_port_map_set(unit, port, ecn_map); 5959 } 5960 #endif 5961 #endif 5962 5963 #ifdef BCM_TOMAHAWK3_SUPPORT 5964 int 5965 bcm_tomahawk3_ecn_responsive_protocol_get( 5966 int unit, 5967 uint8 ip_proto, 5968 int *responsive) 5969 { 5970 return bcm_esw_ecn_responsive_protocol_get(unit, ip_proto, responsive); 5971 } 5972 #endif 5973 5974 #ifdef BCM_TOMAHAWK3_SUPPORT 5975 int 5976 bcm_tomahawk3_ecn_responsive_protocol_set( 5977 int unit, 5978 uint8 ip_proto, 5979 int responsive) 5980 { 5981 return bcm_esw_ecn_responsive_protocol_set(unit, ip_proto, responsive); 5982 } 5983 #endif 5984 5985 #ifdef BCM_TOMAHAWK3_SUPPORT 5986 int 5987 bcm_tomahawk3_ecn_traffic_action_config_get( 5988 int unit, 5989 bcm_ecn_traffic_action_config_t *ecn_config) 5990 { 5991 return bcm_esw_ecn_traffic_action_config_get(unit, ecn_config); 5992 } 5993 #endif 5994 5995 #ifdef BCM_TOMAHAWK3_SUPPORT 5996 int 5997 bcm_tomahawk3_ecn_traffic_action_config_set( 5998 int unit, 5999 bcm_ecn_traffic_action_config_t *ecn_config) 6000 { 6001 return bcm_esw_ecn_traffic_action_config_set(unit, ecn_config); 6002 } 6003 #endif 6004 6005 #ifdef BCM_TOMAHAWK3_SUPPORT 6006 int 6007 bcm_tomahawk3_ecn_traffic_map_get( 6008 int unit, 6009 bcm_ecn_traffic_map_info_t *map) 6010 { 6011 return bcm_esw_ecn_traffic_map_get(unit, map); 6012 } 6013 #endif 6014 6015 #ifdef BCM_TOMAHAWK3_SUPPORT 6016 int 6017 bcm_tomahawk3_ecn_traffic_map_set( 6018 int unit, 6019 bcm_ecn_traffic_map_info_t *map) 6020 { 6021 return bcm_esw_ecn_traffic_map_set(unit, map); 6022 } 6023 #endif 6024 6025 #if defined(INCLUDE_PTP) 6026 #ifdef BCM_TOMAHAWK3_SUPPORT 6027 int 6028 bcm_tomahawk3_esmc_QL_SSM_map( 6029 int unit, 6030 bcm_esmc_network_option_t opt, 6031 bcm_esmc_quality_level_t ql, 6032 uint8 *ssm_code) 6033 { 6034 return bcm_esw_esmc_QL_SSM_map(unit, opt, ql, ssm_code); 6035 } 6036 #endif 6037 #endif 6038 6039 #if defined(INCLUDE_PTP) 6040 #ifdef BCM_TOMAHAWK3_SUPPORT 6041 int 6042 bcm_tomahawk3_esmc_SSM_QL_map( 6043 int unit, 6044 bcm_esmc_network_option_t opt, 6045 uint8 ssm_code, 6046 bcm_esmc_quality_level_t *ql) 6047 { 6048 return bcm_esw_esmc_SSM_QL_map(unit, opt, ssm_code, ql); 6049 } 6050 #endif 6051 #endif 6052 6053 #if defined(INCLUDE_PTP) 6054 #ifdef BCM_TOMAHAWK3_SUPPORT 6055 int 6056 bcm_tomahawk3_esmc_g781_option_get( 6057 int unit, 6058 int stack_id, 6059 bcm_esmc_network_option_t *g781_option) 6060 { 6061 return bcm_esw_esmc_g781_option_get(unit, stack_id, g781_option); 6062 } 6063 #endif 6064 #endif 6065 6066 #if defined(INCLUDE_PTP) 6067 #ifdef BCM_TOMAHAWK3_SUPPORT 6068 int 6069 bcm_tomahawk3_esmc_g781_option_set( 6070 int unit, 6071 int stack_id, 6072 bcm_esmc_network_option_t g781_option) 6073 { 6074 return bcm_esw_esmc_g781_option_set(unit, stack_id, g781_option); 6075 } 6076 #endif 6077 #endif 6078 6079 #if defined(INCLUDE_PTP) 6080 #ifdef BCM_TOMAHAWK3_SUPPORT 6081 int 6082 bcm_tomahawk3_esmc_rx_callback_register( 6083 int unit, 6084 int stack_id, 6085 bcm_esmc_rx_cb rx_cb) 6086 { 6087 return bcm_esw_esmc_rx_callback_register(unit, stack_id, rx_cb); 6088 } 6089 #endif 6090 #endif 6091 6092 #if defined(INCLUDE_PTP) 6093 #ifdef BCM_TOMAHAWK3_SUPPORT 6094 int 6095 bcm_tomahawk3_esmc_rx_callback_unregister( 6096 int unit, 6097 int stack_id) 6098 { 6099 return bcm_esw_esmc_rx_callback_unregister(unit, stack_id); 6100 } 6101 #endif 6102 #endif 6103 6104 #if defined(INCLUDE_PTP) 6105 #ifdef BCM_TOMAHAWK3_SUPPORT 6106 int 6107 bcm_tomahawk3_esmc_tunnel_get( 6108 int unit, 6109 int stack_id, 6110 int *enable) 6111 { 6112 return bcm_esw_esmc_tunnel_get(unit, stack_id, enable); 6113 } 6114 #endif 6115 #endif 6116 6117 #if defined(INCLUDE_PTP) 6118 #ifdef BCM_TOMAHAWK3_SUPPORT 6119 int 6120 bcm_tomahawk3_esmc_tunnel_set( 6121 int unit, 6122 int stack_id, 6123 int enable) 6124 { 6125 return bcm_esw_esmc_tunnel_set(unit, stack_id, enable); 6126 } 6127 #endif 6128 #endif 6129 6130 #if defined(INCLUDE_PTP) 6131 #ifdef BCM_TOMAHAWK3_SUPPORT 6132 int 6133 bcm_tomahawk3_esmc_tx( 6134 int unit, 6135 int stack_id, 6136 bcm_pbmp_t pbmp, 6137 bcm_esmc_pdu_data_t *esmc_pdu_data) 6138 { 6139 return bcm_esw_esmc_tx(unit, stack_id, pbmp, esmc_pdu_data); 6140 } 6141 #endif 6142 #endif 6143 6144 #if defined(INCLUDE_L3) 6145 #ifdef BCM_TOMAHAWK3_SUPPORT 6146 int 6147 bcm_tomahawk3_extender_cleanup( 6148 int unit) 6149 { 6150 return bcm_esw_extender_cleanup(unit); 6151 } 6152 #endif 6153 #endif 6154 6155 #if defined(INCLUDE_L3) 6156 #ifdef BCM_TOMAHAWK3_SUPPORT 6157 int 6158 bcm_tomahawk3_extender_egress_add( 6159 int unit, 6160 bcm_gport_t extender_port, 6161 bcm_extender_egress_t *extender_egress) 6162 { 6163 return bcm_esw_extender_egress_add(unit, extender_port, extender_egress); 6164 } 6165 #endif 6166 #endif 6167 6168 #if defined(INCLUDE_L3) 6169 #ifdef BCM_TOMAHAWK3_SUPPORT 6170 int 6171 bcm_tomahawk3_extender_egress_delete( 6172 int unit, 6173 bcm_gport_t extender_port, 6174 bcm_extender_egress_t *extender_egress) 6175 { 6176 return bcm_esw_extender_egress_delete(unit, extender_port, extender_egress); 6177 } 6178 #endif 6179 #endif 6180 6181 #if defined(INCLUDE_L3) 6182 #ifdef BCM_TOMAHAWK3_SUPPORT 6183 int 6184 bcm_tomahawk3_extender_egress_delete_all( 6185 int unit, 6186 bcm_gport_t extender_port) 6187 { 6188 return bcm_esw_extender_egress_delete_all(unit, extender_port); 6189 } 6190 #endif 6191 #endif 6192 6193 #if defined(INCLUDE_L3) 6194 #ifdef BCM_TOMAHAWK3_SUPPORT 6195 int 6196 bcm_tomahawk3_extender_egress_get( 6197 int unit, 6198 bcm_gport_t extender_port, 6199 bcm_extender_egress_t *extender_egress) 6200 { 6201 return bcm_esw_extender_egress_get(unit, extender_port, extender_egress); 6202 } 6203 #endif 6204 #endif 6205 6206 #if defined(INCLUDE_L3) 6207 #ifdef BCM_TOMAHAWK3_SUPPORT 6208 int 6209 bcm_tomahawk3_extender_egress_get_all( 6210 int unit, 6211 bcm_gport_t extender_port, 6212 int array_size, 6213 bcm_extender_egress_t *extender_egress_array, 6214 int *count) 6215 { 6216 return bcm_esw_extender_egress_get_all(unit, extender_port, array_size, extender_egress_array, count); 6217 } 6218 #endif 6219 #endif 6220 6221 #if defined(INCLUDE_L3) 6222 #ifdef BCM_TOMAHAWK3_SUPPORT 6223 int 6224 bcm_tomahawk3_extender_egress_set( 6225 int unit, 6226 bcm_gport_t extender_port, 6227 int array_size, 6228 bcm_extender_egress_t *extender_egress_array) 6229 { 6230 return bcm_esw_extender_egress_set(unit, extender_port, array_size, extender_egress_array); 6231 } 6232 #endif 6233 #endif 6234 6235 #if defined(INCLUDE_L3) 6236 #ifdef BCM_TOMAHAWK3_SUPPORT 6237 int 6238 bcm_tomahawk3_extender_encap_create( 6239 int unit, 6240 bcm_extender_encap_t *extender_encap) 6241 { 6242 return bcm_esw_extender_encap_create(unit, extender_encap); 6243 } 6244 #endif 6245 #endif 6246 6247 #if defined(INCLUDE_L3) 6248 #ifdef BCM_TOMAHAWK3_SUPPORT 6249 int 6250 bcm_tomahawk3_extender_encap_destroy( 6251 int unit, 6252 bcm_gport_t *extender_encap_id) 6253 { 6254 return bcm_esw_extender_encap_destroy(unit, extender_encap_id); 6255 } 6256 #endif 6257 #endif 6258 6259 #if defined(INCLUDE_L3) 6260 #ifdef BCM_TOMAHAWK3_SUPPORT 6261 int 6262 bcm_tomahawk3_extender_encap_destroy_all( 6263 int unit) 6264 { 6265 return bcm_esw_extender_encap_destroy_all(unit); 6266 } 6267 #endif 6268 #endif 6269 6270 #if defined(INCLUDE_L3) 6271 #ifdef BCM_TOMAHAWK3_SUPPORT 6272 int 6273 bcm_tomahawk3_extender_encap_get( 6274 int unit, 6275 bcm_extender_encap_t *extender_encap) 6276 { 6277 return bcm_esw_extender_encap_get(unit, extender_encap); 6278 } 6279 #endif 6280 #endif 6281 6282 #if defined(INCLUDE_L3) 6283 #ifdef BCM_TOMAHAWK3_SUPPORT 6284 int 6285 bcm_tomahawk3_extender_encap_traverse( 6286 int unit, 6287 bcm_extender_encap_traverse_cb cb, 6288 void *user_data) 6289 { 6290 return bcm_esw_extender_encap_traverse(unit, cb, user_data); 6291 } 6292 #endif 6293 #endif 6294 6295 #if defined(INCLUDE_L3) 6296 #ifdef BCM_TOMAHAWK3_SUPPORT 6297 int 6298 bcm_tomahawk3_extender_forward_add( 6299 int unit, 6300 bcm_extender_forward_t *extender_forward_entry) 6301 { 6302 return bcm_esw_extender_forward_add(unit, extender_forward_entry); 6303 } 6304 #endif 6305 #endif 6306 6307 #if defined(INCLUDE_L3) 6308 #ifdef BCM_TOMAHAWK3_SUPPORT 6309 int 6310 bcm_tomahawk3_extender_forward_delete( 6311 int unit, 6312 bcm_extender_forward_t *extender_forward_entry) 6313 { 6314 return bcm_esw_extender_forward_delete(unit, extender_forward_entry); 6315 } 6316 #endif 6317 #endif 6318 6319 #if defined(INCLUDE_L3) 6320 #ifdef BCM_TOMAHAWK3_SUPPORT 6321 int 6322 bcm_tomahawk3_extender_forward_delete_all( 6323 int unit) 6324 { 6325 return bcm_esw_extender_forward_delete_all(unit); 6326 } 6327 #endif 6328 #endif 6329 6330 #if defined(INCLUDE_L3) 6331 #ifdef BCM_TOMAHAWK3_SUPPORT 6332 int 6333 bcm_tomahawk3_extender_forward_get( 6334 int unit, 6335 bcm_extender_forward_t *extender_forward_entry) 6336 { 6337 return bcm_esw_extender_forward_get(unit, extender_forward_entry); 6338 } 6339 #endif 6340 #endif 6341 6342 #if defined(INCLUDE_L3) 6343 #ifdef BCM_TOMAHAWK3_SUPPORT 6344 int 6345 bcm_tomahawk3_extender_forward_traverse( 6346 int unit, 6347 bcm_extender_forward_traverse_cb cb, 6348 void *user_data) 6349 { 6350 return bcm_esw_extender_forward_traverse(unit, cb, user_data); 6351 } 6352 #endif 6353 #endif 6354 6355 #if defined(INCLUDE_L3) 6356 #ifdef BCM_TOMAHAWK3_SUPPORT 6357 int 6358 bcm_tomahawk3_extender_init( 6359 int unit) 6360 { 6361 return bcm_esw_extender_init(unit); 6362 } 6363 #endif 6364 #endif 6365 6366 #if defined(INCLUDE_L3) 6367 #ifdef BCM_TOMAHAWK3_SUPPORT 6368 int 6369 bcm_tomahawk3_extender_port_add( 6370 int unit, 6371 bcm_extender_port_t *extender_port) 6372 { 6373 return bcm_esw_extender_port_add(unit, extender_port); 6374 } 6375 #endif 6376 #endif 6377 6378 #if defined(INCLUDE_L3) 6379 #ifdef BCM_TOMAHAWK3_SUPPORT 6380 int 6381 bcm_tomahawk3_extender_port_delete( 6382 int unit, 6383 bcm_gport_t extender_port_id) 6384 { 6385 return bcm_esw_extender_port_delete(unit, extender_port_id); 6386 } 6387 #endif 6388 #endif 6389 6390 #if defined(INCLUDE_L3) 6391 #ifdef BCM_TOMAHAWK3_SUPPORT 6392 int 6393 bcm_tomahawk3_extender_port_delete_all( 6394 int unit) 6395 { 6396 return bcm_esw_extender_port_delete_all(unit); 6397 } 6398 #endif 6399 #endif 6400 6401 #if defined(INCLUDE_L3) 6402 #ifdef BCM_TOMAHAWK3_SUPPORT 6403 int 6404 bcm_tomahawk3_extender_port_get( 6405 int unit, 6406 bcm_extender_port_t *extender_port) 6407 { 6408 return bcm_esw_extender_port_get(unit, extender_port); 6409 } 6410 #endif 6411 #endif 6412 6413 #if defined(INCLUDE_L3) 6414 #ifdef BCM_TOMAHAWK3_SUPPORT 6415 int 6416 bcm_tomahawk3_extender_port_traverse( 6417 int unit, 6418 bcm_extender_port_traverse_cb cb, 6419 void *user_data) 6420 { 6421 return bcm_esw_extender_port_traverse(unit, cb, user_data); 6422 } 6423 #endif 6424 #endif 6425 6426 int 6427 bcm_tomahawk3_fabric_action_create( 6428 int unit, 6429 bcm_fabric_action_info_t *action_info, 6430 bcm_fabric_action_t *action_id) 6431 { 6432 return BCM_E_UNAVAIL; 6433 } 6434 6435 int 6436 bcm_tomahawk3_fabric_action_destroy( 6437 int unit, 6438 bcm_fabric_action_t action_id) 6439 { 6440 return BCM_E_UNAVAIL; 6441 } 6442 6443 int 6444 bcm_tomahawk3_fabric_action_destroy_all( 6445 int unit) 6446 { 6447 return BCM_E_UNAVAIL; 6448 } 6449 6450 int 6451 bcm_tomahawk3_fabric_action_get( 6452 int unit, 6453 bcm_fabric_action_t action_id, 6454 bcm_fabric_action_info_t *action_info) 6455 { 6456 return BCM_E_UNAVAIL; 6457 } 6458 6459 int 6460 bcm_tomahawk3_fabric_action_traverse( 6461 int unit, 6462 bcm_fabric_action_traverse_cb cb, 6463 void *user_data) 6464 { 6465 return BCM_E_UNAVAIL; 6466 } 6467 6468 int 6469 bcm_tomahawk3_fabric_bandwidth_core_profile_get( 6470 int unit, 6471 int core, 6472 uint32 flags, 6473 int profile_count, 6474 bcm_fabric_bandwidth_profile_t *profile_array) 6475 { 6476 return BCM_E_UNAVAIL; 6477 } 6478 6479 int 6480 bcm_tomahawk3_fabric_bandwidth_core_profile_set( 6481 int unit, 6482 int core, 6483 uint32 flags, 6484 int profile_count, 6485 bcm_fabric_bandwidth_profile_t *profile_array) 6486 { 6487 return BCM_E_UNAVAIL; 6488 } 6489 6490 int 6491 bcm_tomahawk3_fabric_bandwidth_profile_get( 6492 int unit, 6493 int profile_count, 6494 bcm_fabric_bandwidth_profile_t *profile_array) 6495 { 6496 return BCM_E_UNAVAIL; 6497 } 6498 6499 int 6500 bcm_tomahawk3_fabric_bandwidth_profile_set( 6501 int unit, 6502 int profile_count, 6503 bcm_fabric_bandwidth_profile_t *profile_array) 6504 { 6505 return BCM_E_UNAVAIL; 6506 } 6507 6508 int 6509 bcm_tomahawk3_fabric_cgm_control_get( 6510 int unit, 6511 uint32 flags, 6512 bcm_fabric_cgm_control_type_t control_type, 6513 bcm_fabric_cgm_control_id_t control_id, 6514 int *value) 6515 { 6516 return BCM_E_UNAVAIL; 6517 } 6518 6519 int 6520 bcm_tomahawk3_fabric_cgm_control_set( 6521 int unit, 6522 uint32 flags, 6523 bcm_fabric_cgm_control_type_t control_type, 6524 bcm_fabric_cgm_control_id_t control_id, 6525 int value) 6526 { 6527 return BCM_E_UNAVAIL; 6528 } 6529 6530 int 6531 bcm_tomahawk3_fabric_config_discard_get( 6532 int unit, 6533 bcm_fabric_config_discard_t *discard) 6534 { 6535 return BCM_E_UNAVAIL; 6536 } 6537 6538 int 6539 bcm_tomahawk3_fabric_config_discard_set( 6540 int unit, 6541 bcm_fabric_config_discard_t *discard) 6542 { 6543 return BCM_E_UNAVAIL; 6544 } 6545 6546 int 6547 bcm_tomahawk3_fabric_control_get( 6548 int unit, 6549 bcm_fabric_control_t type, 6550 int *arg) 6551 { 6552 return BCM_E_UNAVAIL; 6553 } 6554 6555 int 6556 bcm_tomahawk3_fabric_control_set( 6557 int unit, 6558 bcm_fabric_control_t type, 6559 int arg) 6560 { 6561 return BCM_E_UNAVAIL; 6562 } 6563 6564 int 6565 bcm_tomahawk3_fabric_destination_link_min_get( 6566 int unit, 6567 uint32 flags, 6568 bcm_module_t module_id, 6569 int *num_of_links) 6570 { 6571 return BCM_E_UNAVAIL; 6572 } 6573 6574 int 6575 bcm_tomahawk3_fabric_destination_link_min_set( 6576 int unit, 6577 uint32 flags, 6578 bcm_module_t module_id, 6579 int num_of_links) 6580 { 6581 return BCM_E_UNAVAIL; 6582 } 6583 6584 int 6585 bcm_tomahawk3_fabric_init( 6586 int unit) 6587 { 6588 return BCM_E_UNAVAIL; 6589 } 6590 6591 int 6592 bcm_tomahawk3_fabric_link_connectivity_status_get( 6593 int unit, 6594 int link_partner_max, 6595 bcm_fabric_link_connectivity_t *link_partner_array, 6596 int *link_partner_count) 6597 { 6598 return BCM_E_UNAVAIL; 6599 } 6600 6601 int 6602 bcm_tomahawk3_fabric_link_connectivity_status_single_get( 6603 int unit, 6604 bcm_port_t link_id, 6605 bcm_fabric_link_connectivity_t *link_partner_info) 6606 { 6607 return BCM_E_UNAVAIL; 6608 } 6609 6610 int 6611 bcm_tomahawk3_fabric_link_control_get( 6612 int unit, 6613 bcm_port_t link, 6614 bcm_fabric_link_control_t type, 6615 int *arg) 6616 { 6617 return BCM_E_UNAVAIL; 6618 } 6619 6620 int 6621 bcm_tomahawk3_fabric_link_control_set( 6622 int unit, 6623 bcm_port_t link, 6624 bcm_fabric_link_control_t type, 6625 int arg) 6626 { 6627 return BCM_E_UNAVAIL; 6628 } 6629 6630 int 6631 bcm_tomahawk3_fabric_link_profile_get( 6632 int unit, 6633 int profile_id, 6634 uint32 flags, 6635 uint32 links_count_max, 6636 uint32 *links_count, 6637 bcm_port_t *links) 6638 { 6639 return BCM_E_UNAVAIL; 6640 } 6641 6642 int 6643 bcm_tomahawk3_fabric_link_profile_set( 6644 int unit, 6645 int profile_id, 6646 uint32 flags, 6647 uint32 links_count, 6648 bcm_port_t *links) 6649 { 6650 return BCM_E_UNAVAIL; 6651 } 6652 6653 int 6654 bcm_tomahawk3_fabric_link_remote_pipe_mapping_get( 6655 int unit, 6656 bcm_port_t port, 6657 bcm_fabric_link_remote_pipe_mapping_t *mapping_config) 6658 { 6659 return BCM_E_UNAVAIL; 6660 } 6661 6662 int 6663 bcm_tomahawk3_fabric_link_remote_pipe_mapping_set( 6664 int unit, 6665 bcm_port_t port, 6666 bcm_fabric_link_remote_pipe_mapping_t *mapping_config) 6667 { 6668 return BCM_E_UNAVAIL; 6669 } 6670 6671 int 6672 bcm_tomahawk3_fabric_link_status_get( 6673 int unit, 6674 bcm_port_t link_id, 6675 uint32 *link_status, 6676 uint32 *errored_token_count) 6677 { 6678 return BCM_E_UNAVAIL; 6679 } 6680 6681 int 6682 bcm_tomahawk3_fabric_link_threshold_add( 6683 int unit, 6684 uint32 flags, 6685 int *fifo_type) 6686 { 6687 return BCM_E_UNAVAIL; 6688 } 6689 6690 int 6691 bcm_tomahawk3_fabric_link_threshold_delete( 6692 int unit, 6693 int fifo_type) 6694 { 6695 return BCM_E_UNAVAIL; 6696 } 6697 6698 int 6699 bcm_tomahawk3_fabric_link_thresholds_attach( 6700 int unit, 6701 int fifo_type, 6702 uint32 links_count, 6703 bcm_port_t *links) 6704 { 6705 return BCM_E_UNAVAIL; 6706 } 6707 6708 int 6709 bcm_tomahawk3_fabric_link_thresholds_get( 6710 int unit, 6711 int fifo_type, 6712 uint32 count, 6713 bcm_fabric_link_threshold_type_t *type, 6714 int *value) 6715 { 6716 return BCM_E_UNAVAIL; 6717 } 6718 6719 int 6720 bcm_tomahawk3_fabric_link_thresholds_pipe_get( 6721 int unit, 6722 int fifo_type, 6723 bcm_fabric_pipe_t pipe, 6724 uint32 flags, 6725 uint32 count, 6726 bcm_fabric_link_threshold_type_t *type, 6727 int *value) 6728 { 6729 return BCM_E_UNAVAIL; 6730 } 6731 6732 int 6733 bcm_tomahawk3_fabric_link_thresholds_pipe_set( 6734 int unit, 6735 int fifo_type, 6736 bcm_fabric_pipe_t pipe, 6737 uint32 flags, 6738 uint32 count, 6739 bcm_fabric_link_threshold_type_t *type, 6740 int *value) 6741 { 6742 return BCM_E_UNAVAIL; 6743 } 6744 6745 int 6746 bcm_tomahawk3_fabric_link_thresholds_retrieve( 6747 int unit, 6748 int fifo_type, 6749 uint32 links_count_max, 6750 bcm_port_t *links, 6751 uint32 *links_count) 6752 { 6753 return BCM_E_UNAVAIL; 6754 } 6755 6756 int 6757 bcm_tomahawk3_fabric_link_thresholds_set( 6758 int unit, 6759 int fifo_type, 6760 uint32 count, 6761 bcm_fabric_link_threshold_type_t *type, 6762 int *value) 6763 { 6764 return BCM_E_UNAVAIL; 6765 } 6766 6767 int 6768 bcm_tomahawk3_fabric_link_topology_config_get( 6769 int unit, 6770 uint32 flags, 6771 bcm_module_t destination, 6772 bcm_fabric_topology_type_t type, 6773 int links_count_max, 6774 int *links_count, 6775 bcm_port_t *links_array) 6776 { 6777 return BCM_E_UNAVAIL; 6778 } 6779 6780 int 6781 bcm_tomahawk3_fabric_link_topology_config_set( 6782 int unit, 6783 uint32 flags, 6784 bcm_module_t destination, 6785 bcm_fabric_topology_type_t type, 6786 int links_count, 6787 bcm_port_t *links_array) 6788 { 6789 return BCM_E_UNAVAIL; 6790 } 6791 6792 int 6793 bcm_tomahawk3_fabric_link_topology_get( 6794 int unit, 6795 bcm_module_t destination, 6796 int max_links_count, 6797 int *links_count, 6798 bcm_port_t *links_array) 6799 { 6800 return BCM_E_UNAVAIL; 6801 } 6802 6803 int 6804 bcm_tomahawk3_fabric_link_topology_set( 6805 int unit, 6806 bcm_module_t destination, 6807 int links_count, 6808 bcm_port_t *links_array) 6809 { 6810 return BCM_E_UNAVAIL; 6811 } 6812 6813 int 6814 bcm_tomahawk3_fabric_modid_group_find( 6815 int unit, 6816 bcm_module_t modid, 6817 bcm_module_t *group) 6818 { 6819 return BCM_E_UNAVAIL; 6820 } 6821 6822 int 6823 bcm_tomahawk3_fabric_modid_group_get( 6824 int unit, 6825 bcm_module_t group, 6826 int modid_max_count, 6827 bcm_module_t *modid_array, 6828 int *modid_count) 6829 { 6830 return BCM_E_UNAVAIL; 6831 } 6832 6833 int 6834 bcm_tomahawk3_fabric_modid_group_set( 6835 int unit, 6836 bcm_module_t group, 6837 int modid_count, 6838 bcm_module_t *modid_array) 6839 { 6840 return BCM_E_UNAVAIL; 6841 } 6842 6843 int 6844 bcm_tomahawk3_fabric_modid_local_mapping_get( 6845 int unit, 6846 bcm_module_t local_modid, 6847 bcm_module_t *modid) 6848 { 6849 return BCM_E_UNAVAIL; 6850 } 6851 6852 int 6853 bcm_tomahawk3_fabric_modid_local_mapping_set( 6854 int unit, 6855 bcm_module_t local_modid, 6856 bcm_module_t modid) 6857 { 6858 return BCM_E_UNAVAIL; 6859 } 6860 6861 int 6862 bcm_tomahawk3_fabric_module_control_get( 6863 int unit, 6864 uint32 flags, 6865 bcm_module_t modid, 6866 bcm_fabric_module_control_t control, 6867 int *value) 6868 { 6869 return BCM_E_UNAVAIL; 6870 } 6871 6872 int 6873 bcm_tomahawk3_fabric_module_control_set( 6874 int unit, 6875 uint32 flags, 6876 bcm_module_t modid, 6877 bcm_fabric_module_control_t control, 6878 int value) 6879 { 6880 return BCM_E_UNAVAIL; 6881 } 6882 6883 int 6884 bcm_tomahawk3_fabric_multicast_get( 6885 int unit, 6886 bcm_multicast_t group, 6887 uint32 flags, 6888 int destid_count_max, 6889 int *destid_count, 6890 bcm_module_t *destid_array) 6891 { 6892 return BCM_E_UNAVAIL; 6893 } 6894 6895 int 6896 bcm_tomahawk3_fabric_multicast_local_route_get( 6897 int unit, 6898 uint32 flags, 6899 uint32 nof_groups, 6900 bcm_multicast_t *groups, 6901 int *enable) 6902 { 6903 return BCM_E_UNAVAIL; 6904 } 6905 6906 int 6907 bcm_tomahawk3_fabric_multicast_local_route_set( 6908 int unit, 6909 uint32 flags, 6910 uint32 nof_groups, 6911 bcm_multicast_t *groups, 6912 int *enable) 6913 { 6914 return BCM_E_UNAVAIL; 6915 } 6916 6917 int 6918 bcm_tomahawk3_fabric_multicast_multi_get( 6919 int unit, 6920 uint32 flags, 6921 uint32 ngroups, 6922 bcm_multicast_t *groups, 6923 bcm_fabric_module_vector_t *dest_array) 6924 { 6925 return BCM_E_UNAVAIL; 6926 } 6927 6928 int 6929 bcm_tomahawk3_fabric_multicast_multi_set( 6930 int unit, 6931 uint32 flags, 6932 uint32 ngroups, 6933 bcm_multicast_t *groups, 6934 bcm_fabric_module_vector_t *dest_array) 6935 { 6936 return BCM_E_UNAVAIL; 6937 } 6938 6939 int 6940 bcm_tomahawk3_fabric_multicast_set( 6941 int unit, 6942 bcm_multicast_t group, 6943 uint32 flags, 6944 uint32 destid_count, 6945 bcm_module_t *destid_array) 6946 { 6947 return BCM_E_UNAVAIL; 6948 } 6949 6950 int 6951 bcm_tomahawk3_fabric_pcp_dest_mode_config_get( 6952 int unit, 6953 uint32 flags, 6954 bcm_module_t modid, 6955 bcm_fabric_pcp_mode_config_t *pcp_config) 6956 { 6957 return BCM_E_UNAVAIL; 6958 } 6959 6960 int 6961 bcm_tomahawk3_fabric_pcp_dest_mode_config_set( 6962 int unit, 6963 uint32 flags, 6964 bcm_module_t modid, 6965 bcm_fabric_pcp_mode_config_t *pcp_config) 6966 { 6967 return BCM_E_UNAVAIL; 6968 } 6969 6970 int 6971 bcm_tomahawk3_fabric_port_create( 6972 int unit, 6973 bcm_gport_t parent_port, 6974 int offset, 6975 uint32 flags, 6976 bcm_gport_t *port) 6977 { 6978 return BCM_E_UNAVAIL; 6979 } 6980 6981 int 6982 bcm_tomahawk3_fabric_port_destroy( 6983 int unit, 6984 bcm_gport_t parent_port) 6985 { 6986 return BCM_E_UNAVAIL; 6987 } 6988 6989 int 6990 bcm_tomahawk3_fabric_port_get( 6991 int unit, 6992 bcm_gport_t child_port, 6993 uint32 flags, 6994 bcm_gport_t *parent_port) 6995 { 6996 return BCM_E_UNAVAIL; 6997 } 6998 6999 int 7000 bcm_tomahawk3_fabric_predicate_action_create( 7001 int unit, 7002 bcm_fabric_predicate_action_info_t *predicate_action, 7003 bcm_fabric_predicate_action_t *predicate_action_id) 7004 { 7005 return BCM_E_UNAVAIL; 7006 } 7007 7008 int 7009 bcm_tomahawk3_fabric_predicate_action_destroy( 7010 int unit, 7011 bcm_fabric_predicate_action_t predicate_action_id) 7012 { 7013 return BCM_E_UNAVAIL; 7014 } 7015 7016 int 7017 bcm_tomahawk3_fabric_predicate_action_destroy_all( 7018 int unit) 7019 { 7020 return BCM_E_UNAVAIL; 7021 } 7022 7023 int 7024 bcm_tomahawk3_fabric_predicate_action_get( 7025 int unit, 7026 bcm_fabric_predicate_action_t predicate_action_id, 7027 bcm_fabric_predicate_action_info_t *predicate_action_info) 7028 { 7029 return BCM_E_UNAVAIL; 7030 } 7031 7032 int 7033 bcm_tomahawk3_fabric_predicate_action_traverse( 7034 int unit, 7035 bcm_fabric_predicate_action_traverse_cb cb, 7036 void *user_data) 7037 { 7038 return BCM_E_UNAVAIL; 7039 } 7040 7041 int 7042 bcm_tomahawk3_fabric_predicate_create( 7043 int unit, 7044 bcm_fabric_predicate_info_t *pred_info, 7045 bcm_fabric_predicate_t *pred_id) 7046 { 7047 return BCM_E_UNAVAIL; 7048 } 7049 7050 int 7051 bcm_tomahawk3_fabric_predicate_destroy( 7052 int unit, 7053 bcm_fabric_predicate_t pred_id) 7054 { 7055 return BCM_E_UNAVAIL; 7056 } 7057 7058 int 7059 bcm_tomahawk3_fabric_predicate_destroy_all( 7060 int unit) 7061 { 7062 return BCM_E_UNAVAIL; 7063 } 7064 7065 int 7066 bcm_tomahawk3_fabric_predicate_get( 7067 int unit, 7068 bcm_fabric_predicate_t pred_id, 7069 bcm_fabric_predicate_info_t *pred_info) 7070 { 7071 return BCM_E_UNAVAIL; 7072 } 7073 7074 int 7075 bcm_tomahawk3_fabric_predicate_traverse( 7076 int unit, 7077 bcm_fabric_predicate_traverse_cb cb, 7078 void *user_data) 7079 { 7080 return BCM_E_UNAVAIL; 7081 } 7082 7083 int 7084 bcm_tomahawk3_fabric_priority_get( 7085 int unit, 7086 uint32 flags, 7087 bcm_cos_t ingress_pri, 7088 bcm_color_t color, 7089 int *fabric_priority) 7090 { 7091 return BCM_E_UNAVAIL; 7092 } 7093 7094 int 7095 bcm_tomahawk3_fabric_priority_set( 7096 int unit, 7097 uint32 flags, 7098 bcm_cos_t ingress_pri, 7099 bcm_color_t color, 7100 int fabric_priority) 7101 { 7102 return BCM_E_UNAVAIL; 7103 } 7104 7105 int 7106 bcm_tomahawk3_fabric_profile_threshold_get( 7107 int unit, 7108 int profile_id, 7109 bcm_fabric_threshold_id_t threshold_id, 7110 bcm_fabric_threshold_type_t threshold_type, 7111 uint32 flags, 7112 int *value) 7113 { 7114 return BCM_E_UNAVAIL; 7115 } 7116 7117 int 7118 bcm_tomahawk3_fabric_profile_threshold_set( 7119 int unit, 7120 int profile_id, 7121 bcm_fabric_threshold_id_t threshold_id, 7122 bcm_fabric_threshold_type_t threshold_type, 7123 uint32 flags, 7124 int value) 7125 { 7126 return BCM_E_UNAVAIL; 7127 } 7128 7129 int 7130 bcm_tomahawk3_fabric_qsel_create( 7131 int unit, 7132 uint32 flags, 7133 int base, 7134 int count, 7135 bcm_fabric_qsel_t *qsel_id) 7136 { 7137 return BCM_E_UNAVAIL; 7138 } 7139 7140 int 7141 bcm_tomahawk3_fabric_qsel_destroy( 7142 int unit, 7143 bcm_fabric_qsel_t qsel_id) 7144 { 7145 return BCM_E_UNAVAIL; 7146 } 7147 7148 int 7149 bcm_tomahawk3_fabric_qsel_destroy_all( 7150 int unit) 7151 { 7152 return BCM_E_UNAVAIL; 7153 } 7154 7155 int 7156 bcm_tomahawk3_fabric_qsel_entry_get( 7157 int unit, 7158 bcm_fabric_qsel_t qsel_id, 7159 int offset, 7160 bcm_gport_t *queue, 7161 bcm_fabric_qsel_offset_t *qsel_offset_id) 7162 { 7163 return BCM_E_UNAVAIL; 7164 } 7165 7166 int 7167 bcm_tomahawk3_fabric_qsel_entry_multi_get( 7168 int unit, 7169 bcm_fabric_qsel_t qsel_id, 7170 int offset, 7171 int count, 7172 bcm_gport_t *queue, 7173 bcm_fabric_qsel_offset_t *qsel_offset_id) 7174 { 7175 return BCM_E_UNAVAIL; 7176 } 7177 7178 int 7179 bcm_tomahawk3_fabric_qsel_entry_multi_set( 7180 int unit, 7181 bcm_fabric_qsel_t qsel_id, 7182 int offset, 7183 int count, 7184 bcm_gport_t *queue, 7185 bcm_fabric_qsel_offset_t *qsel_offset_id) 7186 { 7187 return BCM_E_UNAVAIL; 7188 } 7189 7190 int 7191 bcm_tomahawk3_fabric_qsel_entry_set( 7192 int unit, 7193 bcm_fabric_qsel_t qsel_id, 7194 int offset, 7195 bcm_gport_t queue, 7196 bcm_fabric_qsel_offset_t qsel_offset_id) 7197 { 7198 return BCM_E_UNAVAIL; 7199 } 7200 7201 int 7202 bcm_tomahawk3_fabric_qsel_entry_traverse( 7203 int unit, 7204 bcm_fabric_qsel_t qsel_id, 7205 bcm_fabric_qsel_entry_traverse_cb cb, 7206 void *user_data) 7207 { 7208 return BCM_E_UNAVAIL; 7209 } 7210 7211 int 7212 bcm_tomahawk3_fabric_qsel_get( 7213 int unit, 7214 bcm_fabric_qsel_t qsel_id, 7215 uint32 *flags, 7216 int *base, 7217 int *count) 7218 { 7219 return BCM_E_UNAVAIL; 7220 } 7221 7222 int 7223 bcm_tomahawk3_fabric_qsel_offset_create( 7224 int unit, 7225 uint32 flags, 7226 bcm_fabric_qsel_offset_t *qsel_offset_id) 7227 { 7228 return BCM_E_UNAVAIL; 7229 } 7230 7231 int 7232 bcm_tomahawk3_fabric_qsel_offset_destroy( 7233 int unit, 7234 bcm_fabric_qsel_offset_t qsel_offset_id) 7235 { 7236 return BCM_E_UNAVAIL; 7237 } 7238 7239 int 7240 bcm_tomahawk3_fabric_qsel_offset_destroy_all( 7241 int unit) 7242 { 7243 return BCM_E_UNAVAIL; 7244 } 7245 7246 int 7247 bcm_tomahawk3_fabric_qsel_offset_entry_get( 7248 int unit, 7249 bcm_fabric_qsel_offset_t qsel_offset_id, 7250 bcm_cos_t int_pri, 7251 int *offset) 7252 { 7253 return BCM_E_UNAVAIL; 7254 } 7255 7256 int 7257 bcm_tomahawk3_fabric_qsel_offset_entry_set( 7258 int unit, 7259 bcm_fabric_qsel_offset_t qsel_offset_id, 7260 bcm_cos_t int_pri, 7261 int offset) 7262 { 7263 return BCM_E_UNAVAIL; 7264 } 7265 7266 int 7267 bcm_tomahawk3_fabric_qsel_offset_entry_traverse( 7268 int unit, 7269 bcm_fabric_qsel_offset_t qsel_offset_id, 7270 bcm_fabric_qsel_offset_entry_traverse_cb cb, 7271 void *user_data) 7272 { 7273 return BCM_E_UNAVAIL; 7274 } 7275 7276 int 7277 bcm_tomahawk3_fabric_qsel_offset_traverse( 7278 int unit, 7279 bcm_fabric_qsel_offset_traverse_cb cb, 7280 void *user_data) 7281 { 7282 return BCM_E_UNAVAIL; 7283 } 7284 7285 int 7286 bcm_tomahawk3_fabric_qsel_traverse( 7287 int unit, 7288 bcm_fabric_qsel_traverse_cb cb, 7289 void *user_data) 7290 { 7291 return BCM_E_UNAVAIL; 7292 } 7293 7294 int 7295 bcm_tomahawk3_fabric_rci_biasing_probability_get( 7296 int unit, 7297 uint32 flags, 7298 bcm_fabric_rci_biasing_probability_info_t *probability_info, 7299 int probability[BCM_FABRIC_NUM_OF_RCI_LEVELS]) 7300 { 7301 return BCM_E_UNAVAIL; 7302 } 7303 7304 int 7305 bcm_tomahawk3_fabric_rci_biasing_probability_set( 7306 int unit, 7307 uint32 flags, 7308 bcm_fabric_rci_biasing_probability_info_t *probability_info, 7309 int probability[BCM_FABRIC_NUM_OF_RCI_LEVELS]) 7310 { 7311 return BCM_E_UNAVAIL; 7312 } 7313 7314 int 7315 bcm_tomahawk3_fabric_rci_config_get( 7316 int unit, 7317 bcm_fabric_rci_config_t *rci_config) 7318 { 7319 return BCM_E_UNAVAIL; 7320 } 7321 7322 int 7323 bcm_tomahawk3_fabric_rci_config_set( 7324 int unit, 7325 bcm_fabric_rci_config_t rci_config) 7326 { 7327 return BCM_E_UNAVAIL; 7328 } 7329 7330 int 7331 bcm_tomahawk3_fabric_rci_resolution_get( 7332 int unit, 7333 uint32 flags, 7334 bcm_fabric_rci_resolution_key_t *key, 7335 bcm_fabric_rci_resolution_config_t *config) 7336 { 7337 return BCM_E_UNAVAIL; 7338 } 7339 7340 int 7341 bcm_tomahawk3_fabric_rci_resolution_set( 7342 int unit, 7343 uint32 flags, 7344 bcm_fabric_rci_resolution_key_t *key, 7345 bcm_fabric_rci_resolution_config_t *config) 7346 { 7347 return BCM_E_UNAVAIL; 7348 } 7349 7350 int 7351 bcm_tomahawk3_fabric_reachability_status_get( 7352 int unit, 7353 int moduleid, 7354 int links_max, 7355 uint32 *links_array, 7356 int *links_count) 7357 { 7358 return BCM_E_UNAVAIL; 7359 } 7360 7361 int 7362 bcm_tomahawk3_fabric_route_rx( 7363 int unit, 7364 uint32 flags, 7365 uint32 data_out_max_size, 7366 uint32 *data_out, 7367 uint32 *data_out_size) 7368 { 7369 return BCM_E_UNAVAIL; 7370 } 7371 7372 int 7373 bcm_tomahawk3_fabric_route_tx( 7374 int unit, 7375 uint32 flags, 7376 bcm_fabric_route_t *route, 7377 uint32 data_in_size, 7378 uint32 *data_in) 7379 { 7380 return BCM_E_UNAVAIL; 7381 } 7382 7383 int 7384 bcm_tomahawk3_fabric_static_replication_set( 7385 int unit, 7386 bcm_port_t port, 7387 uint32 flags, 7388 uint32 destid_count, 7389 bcm_module_t *destid_array) 7390 { 7391 return BCM_E_UNAVAIL; 7392 } 7393 7394 int 7395 bcm_tomahawk3_fabric_tdm_direct_routing_get( 7396 int unit, 7397 bcm_gport_t gport, 7398 bcm_fabric_tdm_direct_routing_t *routing_info) 7399 { 7400 return BCM_E_UNAVAIL; 7401 } 7402 7403 int 7404 bcm_tomahawk3_fabric_tdm_direct_routing_set( 7405 int unit, 7406 bcm_gport_t gport, 7407 bcm_fabric_tdm_direct_routing_t *routing_info) 7408 { 7409 return BCM_E_UNAVAIL; 7410 } 7411 7412 int 7413 bcm_tomahawk3_fabric_tdm_editing_get( 7414 int unit, 7415 bcm_gport_t gport, 7416 bcm_fabric_tdm_editing_t *editing) 7417 { 7418 return BCM_E_UNAVAIL; 7419 } 7420 7421 int 7422 bcm_tomahawk3_fabric_tdm_editing_set( 7423 int unit, 7424 bcm_gport_t gport, 7425 bcm_fabric_tdm_editing_t *editing) 7426 { 7427 return BCM_E_UNAVAIL; 7428 } 7429 7430 #if defined(INCLUDE_L3) 7431 #ifdef BCM_TOMAHAWK3_SUPPORT 7432 int 7433 bcm_tomahawk3_failover_cleanup( 7434 int unit) 7435 { 7436 return bcm_esw_failover_cleanup(unit); 7437 } 7438 #endif 7439 #endif 7440 7441 #if defined(INCLUDE_L3) 7442 #ifdef BCM_TOMAHAWK3_SUPPORT 7443 int 7444 bcm_tomahawk3_failover_create( 7445 int unit, 7446 uint32 flags, 7447 bcm_failover_t *failover_id) 7448 { 7449 return bcm_esw_failover_create(unit, flags, failover_id); 7450 } 7451 #endif 7452 #endif 7453 7454 #if defined(INCLUDE_L3) 7455 #ifdef BCM_TOMAHAWK3_SUPPORT 7456 int 7457 bcm_tomahawk3_failover_destroy( 7458 int unit, 7459 bcm_failover_t failover_id) 7460 { 7461 return bcm_esw_failover_destroy(unit, failover_id); 7462 } 7463 #endif 7464 #endif 7465 7466 #if defined(INCLUDE_L3) 7467 #ifdef BCM_TOMAHAWK3_SUPPORT 7468 int 7469 bcm_tomahawk3_failover_egress_clear( 7470 int unit, 7471 bcm_if_t intf) 7472 { 7473 return bcm_esw_failover_egress_clear(unit, intf); 7474 } 7475 #endif 7476 #endif 7477 7478 #if defined(INCLUDE_L3) 7479 #ifdef BCM_TOMAHAWK3_SUPPORT 7480 int 7481 bcm_tomahawk3_failover_egress_get( 7482 int unit, 7483 bcm_if_t intf, 7484 bcm_l3_egress_t *failover_egr) 7485 { 7486 return bcm_esw_failover_egress_get(unit, intf, failover_egr); 7487 } 7488 #endif 7489 #endif 7490 7491 #if defined(INCLUDE_L3) 7492 #ifdef BCM_TOMAHAWK3_SUPPORT 7493 int 7494 bcm_tomahawk3_failover_egress_set( 7495 int unit, 7496 bcm_if_t intf, 7497 bcm_l3_egress_t *failover_egr) 7498 { 7499 return bcm_esw_failover_egress_set(unit, intf, failover_egr); 7500 } 7501 #endif 7502 #endif 7503 7504 #if defined(INCLUDE_L3) 7505 #ifdef BCM_TOMAHAWK3_SUPPORT 7506 int 7507 bcm_tomahawk3_failover_egress_status_get( 7508 int unit, 7509 bcm_if_t intf, 7510 int *enable) 7511 { 7512 return bcm_esw_failover_egress_status_get(unit, intf, enable); 7513 } 7514 #endif 7515 #endif 7516 7517 #if defined(INCLUDE_L3) 7518 #ifdef BCM_TOMAHAWK3_SUPPORT 7519 int 7520 bcm_tomahawk3_failover_egress_status_set( 7521 int unit, 7522 bcm_if_t intf, 7523 int enable) 7524 { 7525 return bcm_esw_failover_egress_status_set(unit, intf, enable); 7526 } 7527 #endif 7528 #endif 7529 7530 #if defined(INCLUDE_L3) 7531 #ifdef BCM_TOMAHAWK3_SUPPORT 7532 int 7533 bcm_tomahawk3_failover_get( 7534 int unit, 7535 bcm_failover_t failover_id, 7536 int *enable) 7537 { 7538 return bcm_esw_failover_get(unit, failover_id, enable); 7539 } 7540 #endif 7541 #endif 7542 7543 #if defined(INCLUDE_L3) 7544 #ifdef BCM_TOMAHAWK3_SUPPORT 7545 int 7546 bcm_tomahawk3_failover_init( 7547 int unit) 7548 { 7549 return bcm_esw_failover_init(unit); 7550 } 7551 #endif 7552 #endif 7553 7554 #if defined(INCLUDE_L3) 7555 #ifdef BCM_TOMAHAWK3_SUPPORT 7556 int 7557 bcm_tomahawk3_failover_multi_level_attach( 7558 int unit, 7559 bcm_failover_multi_level_t multi_level_failover) 7560 { 7561 return bcm_esw_failover_multi_level_attach(unit, multi_level_failover); 7562 } 7563 #endif 7564 #endif 7565 7566 #ifdef BCM_TOMAHAWK3_SUPPORT 7567 int 7568 bcm_tomahawk3_failover_ring_config_get( 7569 int unit, 7570 bcm_failover_ring_t *failover_ring) 7571 { 7572 return bcm_esw_failover_ring_config_get(unit, failover_ring); 7573 } 7574 #endif 7575 7576 #ifdef BCM_TOMAHAWK3_SUPPORT 7577 int 7578 bcm_tomahawk3_failover_ring_config_set( 7579 int unit, 7580 bcm_failover_ring_t *failover_ring) 7581 { 7582 return bcm_esw_failover_ring_config_set(unit, failover_ring); 7583 } 7584 #endif 7585 7586 #if defined(INCLUDE_L3) 7587 #ifdef BCM_TOMAHAWK3_SUPPORT 7588 int 7589 bcm_tomahawk3_failover_set( 7590 int unit, 7591 bcm_failover_t failover_id, 7592 int enable) 7593 { 7594 return bcm_esw_failover_set(unit, failover_id, enable); 7595 } 7596 #endif 7597 #endif 7598 7599 #if defined(INCLUDE_L3) 7600 #ifdef BCM_TOMAHAWK3_SUPPORT 7601 int 7602 bcm_tomahawk3_failover_status_get( 7603 int unit, 7604 bcm_failover_element_t *failover, 7605 int *enable) 7606 { 7607 return bcm_esw_failover_status_get(unit, failover, enable); 7608 } 7609 #endif 7610 #endif 7611 7612 #if defined(INCLUDE_L3) 7613 #ifdef BCM_TOMAHAWK3_SUPPORT 7614 int 7615 bcm_tomahawk3_failover_status_set( 7616 int unit, 7617 bcm_failover_element_t *failover, 7618 int enable) 7619 { 7620 return bcm_esw_failover_status_set(unit, failover, enable); 7621 } 7622 #endif 7623 #endif 7624 7625 #if defined(INCLUDE_FCMAP) 7626 #ifdef BCM_TOMAHAWK3_SUPPORT 7627 int 7628 bcm_tomahawk3_fcmap_diag_get( 7629 int unit, 7630 bcm_port_t port, 7631 bcm_fcmap_diag_code_t *diag) 7632 { 7633 return bcm_common_fcmap_diag_get(unit, port, diag); 7634 } 7635 #endif 7636 #endif 7637 7638 #if defined(INCLUDE_FCMAP) 7639 #ifdef BCM_TOMAHAWK3_SUPPORT 7640 int 7641 bcm_tomahawk3_fcmap_event_enable_get( 7642 int unit, 7643 bcm_fcmap_event_t t, 7644 int *enable) 7645 { 7646 return bcm_common_fcmap_event_enable_get(unit, t, enable); 7647 } 7648 #endif 7649 #endif 7650 7651 #if defined(INCLUDE_FCMAP) 7652 #ifdef BCM_TOMAHAWK3_SUPPORT 7653 int 7654 bcm_tomahawk3_fcmap_event_enable_set( 7655 int unit, 7656 bcm_fcmap_event_t t, 7657 int enable) 7658 { 7659 return bcm_common_fcmap_event_enable_set(unit, t, enable); 7660 } 7661 #endif 7662 #endif 7663 7664 #if defined(INCLUDE_FCMAP) 7665 #ifdef BCM_TOMAHAWK3_SUPPORT 7666 int 7667 bcm_tomahawk3_fcmap_event_register( 7668 int unit, 7669 bcm_fcmap_event_cb cb, 7670 void *user_data) 7671 { 7672 return bcm_common_fcmap_event_register(unit, cb, user_data); 7673 } 7674 #endif 7675 #endif 7676 7677 #if defined(INCLUDE_FCMAP) 7678 #ifdef BCM_TOMAHAWK3_SUPPORT 7679 int 7680 bcm_tomahawk3_fcmap_event_unregister( 7681 int unit, 7682 bcm_fcmap_event_cb cb) 7683 { 7684 return bcm_common_fcmap_event_unregister(unit, cb); 7685 } 7686 #endif 7687 #endif 7688 7689 #if defined(INCLUDE_FCMAP) 7690 #ifdef BCM_TOMAHAWK3_SUPPORT 7691 int 7692 bcm_tomahawk3_fcmap_linkfault_trigger_rc_get( 7693 int unit, 7694 bcm_port_t port, 7695 bcm_fcmap_lf_tr_t *trigger, 7696 bcm_fcmap_lf_rc_t *rc) 7697 { 7698 return bcm_common_fcmap_linkfault_trigger_rc_get(unit, port, trigger, rc); 7699 } 7700 #endif 7701 #endif 7702 7703 #if defined(INCLUDE_FCMAP) 7704 #ifdef BCM_TOMAHAWK3_SUPPORT 7705 int 7706 bcm_tomahawk3_fcmap_port_ability_advert_get( 7707 int unit, 7708 bcm_port_t port, 7709 bcm_fcmap_port_ability_t *ability_mask) 7710 { 7711 return bcm_common_fcmap_port_ability_advert_get(unit, port, ability_mask); 7712 } 7713 #endif 7714 #endif 7715 7716 #if defined(INCLUDE_FCMAP) 7717 #ifdef BCM_TOMAHAWK3_SUPPORT 7718 int 7719 bcm_tomahawk3_fcmap_port_ability_advert_set( 7720 int unit, 7721 bcm_port_t port, 7722 bcm_fcmap_port_ability_t *ability_mask) 7723 { 7724 return bcm_common_fcmap_port_ability_advert_set(unit, port, ability_mask); 7725 } 7726 #endif 7727 #endif 7728 7729 #if defined(INCLUDE_FCMAP) 7730 #ifdef BCM_TOMAHAWK3_SUPPORT 7731 int 7732 bcm_tomahawk3_fcmap_port_config_get( 7733 int unit, 7734 bcm_port_t port, 7735 bcm_fcmap_port_config_t *cfg) 7736 { 7737 return bcm_common_fcmap_port_config_get(unit, port, cfg); 7738 } 7739 #endif 7740 #endif 7741 7742 #if defined(INCLUDE_FCMAP) 7743 #ifdef BCM_TOMAHAWK3_SUPPORT 7744 int 7745 bcm_tomahawk3_fcmap_port_config_selective_get( 7746 int unit, 7747 bcm_port_t port, 7748 bcm_fcmap_port_config_t *cfg) 7749 { 7750 return bcm_common_fcmap_port_config_selective_get(unit, port, cfg); 7751 } 7752 #endif 7753 #endif 7754 7755 #if defined(INCLUDE_FCMAP) 7756 #ifdef BCM_TOMAHAWK3_SUPPORT 7757 int 7758 bcm_tomahawk3_fcmap_port_config_selective_set( 7759 int unit, 7760 bcm_port_t port, 7761 bcm_fcmap_port_config_t *cfg) 7762 { 7763 return bcm_common_fcmap_port_config_selective_set(unit, port, cfg); 7764 } 7765 #endif 7766 #endif 7767 7768 #if defined(INCLUDE_FCMAP) 7769 #ifdef BCM_TOMAHAWK3_SUPPORT 7770 int 7771 bcm_tomahawk3_fcmap_port_config_set( 7772 int unit, 7773 bcm_port_t port, 7774 bcm_fcmap_port_config_t *cfg) 7775 { 7776 return bcm_common_fcmap_port_config_set(unit, port, cfg); 7777 } 7778 #endif 7779 #endif 7780 7781 #if defined(INCLUDE_FCMAP) 7782 #ifdef BCM_TOMAHAWK3_SUPPORT 7783 int 7784 bcm_tomahawk3_fcmap_port_enable( 7785 int unit, 7786 bcm_port_t port) 7787 { 7788 return bcm_common_fcmap_port_enable(unit, port); 7789 } 7790 #endif 7791 #endif 7792 7793 #if defined(INCLUDE_FCMAP) 7794 #ifdef BCM_TOMAHAWK3_SUPPORT 7795 int 7796 bcm_tomahawk3_fcmap_port_link_reset( 7797 int unit, 7798 bcm_port_t port) 7799 { 7800 return bcm_common_fcmap_port_link_reset(unit, port); 7801 } 7802 #endif 7803 #endif 7804 7805 #if defined(INCLUDE_FCMAP) 7806 #ifdef BCM_TOMAHAWK3_SUPPORT 7807 int 7808 bcm_tomahawk3_fcmap_port_shutdown( 7809 int unit, 7810 bcm_port_t port) 7811 { 7812 return bcm_common_fcmap_port_shutdown(unit, port); 7813 } 7814 #endif 7815 #endif 7816 7817 #if defined(INCLUDE_FCMAP) 7818 #ifdef BCM_TOMAHAWK3_SUPPORT 7819 int 7820 bcm_tomahawk3_fcmap_port_speed_set( 7821 int unit, 7822 bcm_port_t port, 7823 bcm_fcmap_port_speed_t speed) 7824 { 7825 return bcm_common_fcmap_port_speed_set(unit, port, speed); 7826 } 7827 #endif 7828 #endif 7829 7830 #if defined(INCLUDE_FCMAP) 7831 #ifdef BCM_TOMAHAWK3_SUPPORT 7832 int 7833 bcm_tomahawk3_fcmap_port_traverse( 7834 int unit, 7835 bcm_fcmap_port_traverse_cb callbk, 7836 void *user_data) 7837 { 7838 return bcm_common_fcmap_port_traverse(unit, callbk, user_data); 7839 } 7840 #endif 7841 #endif 7842 7843 #if defined(INCLUDE_FCMAP) 7844 #ifdef BCM_TOMAHAWK3_SUPPORT 7845 int 7846 bcm_tomahawk3_fcmap_stat_clear( 7847 int unit, 7848 bcm_port_t port) 7849 { 7850 return bcm_common_fcmap_stat_clear(unit, port); 7851 } 7852 #endif 7853 #endif 7854 7855 #if defined(INCLUDE_FCMAP) 7856 #ifdef BCM_TOMAHAWK3_SUPPORT 7857 int 7858 bcm_tomahawk3_fcmap_stat_get( 7859 int unit, 7860 bcm_port_t port, 7861 bcm_fcmap_stat_t stat, 7862 uint64 *val) 7863 { 7864 return bcm_common_fcmap_stat_get(unit, port, stat, val); 7865 } 7866 #endif 7867 #endif 7868 7869 #if defined(INCLUDE_FCMAP) 7870 #ifdef BCM_TOMAHAWK3_SUPPORT 7871 int 7872 bcm_tomahawk3_fcmap_stat_get32( 7873 int unit, 7874 bcm_port_t port, 7875 bcm_fcmap_stat_t stat, 7876 uint32 *val) 7877 { 7878 return bcm_common_fcmap_stat_get32(unit, port, stat, val); 7879 } 7880 #endif 7881 #endif 7882 7883 #if defined(INCLUDE_FCMAP) 7884 #ifdef BCM_TOMAHAWK3_SUPPORT 7885 int 7886 bcm_tomahawk3_fcmap_vlan_map_add( 7887 int unit, 7888 bcm_port_t port, 7889 bcm_fcmap_vlan_vsan_map_t *vlan) 7890 { 7891 return bcm_common_fcmap_vlan_map_add(unit, port, vlan); 7892 } 7893 #endif 7894 #endif 7895 7896 #if defined(INCLUDE_FCMAP) 7897 #ifdef BCM_TOMAHAWK3_SUPPORT 7898 int 7899 bcm_tomahawk3_fcmap_vlan_map_delete( 7900 int unit, 7901 bcm_port_t port, 7902 bcm_fcmap_vlan_vsan_map_t *vlan) 7903 { 7904 return bcm_common_fcmap_vlan_map_delete(unit, port, vlan); 7905 } 7906 #endif 7907 #endif 7908 7909 #if defined(INCLUDE_FCMAP) 7910 #ifdef BCM_TOMAHAWK3_SUPPORT 7911 int 7912 bcm_tomahawk3_fcmap_vlan_map_get( 7913 int unit, 7914 bcm_port_t port, 7915 bcm_fcmap_vlan_vsan_map_t *vlan) 7916 { 7917 return bcm_common_fcmap_vlan_map_get(unit, port, vlan); 7918 } 7919 #endif 7920 #endif 7921 7922 #ifdef BCM_TOMAHAWK3_SUPPORT 7923 int 7924 bcm_tomahawk3_fcoe_cleanup( 7925 int unit) 7926 { 7927 return bcm_esw_fcoe_cleanup(unit); 7928 } 7929 #endif 7930 7931 #ifdef BCM_TOMAHAWK3_SUPPORT 7932 int 7933 bcm_tomahawk3_fcoe_control_vsan_get( 7934 int unit, 7935 bcm_fcoe_vsan_id_t vsan_id, 7936 bcm_fcoe_vsan_control_t type, 7937 int *arg) 7938 { 7939 return bcm_esw_fcoe_control_vsan_get(unit, vsan_id, type, arg); 7940 } 7941 #endif 7942 7943 #ifdef BCM_TOMAHAWK3_SUPPORT 7944 int 7945 bcm_tomahawk3_fcoe_control_vsan_set( 7946 int unit, 7947 bcm_fcoe_vsan_id_t vsan_id, 7948 bcm_fcoe_vsan_control_t type, 7949 int arg) 7950 { 7951 return bcm_esw_fcoe_control_vsan_set(unit, vsan_id, type, arg); 7952 } 7953 #endif 7954 7955 #ifdef BCM_TOMAHAWK3_SUPPORT 7956 int 7957 bcm_tomahawk3_fcoe_enable_set( 7958 int unit) 7959 { 7960 return bcm_esw_fcoe_enable_set(unit); 7961 } 7962 #endif 7963 7964 #ifdef BCM_TOMAHAWK3_SUPPORT 7965 int 7966 bcm_tomahawk3_fcoe_fc_header_type_get( 7967 int unit, 7968 uint32 flags, 7969 uint8 r_ctl, 7970 bcm_fcoe_fc_header_type_t *hdr_type) 7971 { 7972 return bcm_esw_fcoe_fc_header_type_get(unit, flags, r_ctl, hdr_type); 7973 } 7974 #endif 7975 7976 #ifdef BCM_TOMAHAWK3_SUPPORT 7977 int 7978 bcm_tomahawk3_fcoe_fc_header_type_set( 7979 int unit, 7980 uint32 flags, 7981 uint8 r_ctl, 7982 bcm_fcoe_fc_header_type_t hdr_type) 7983 { 7984 return bcm_esw_fcoe_fc_header_type_set(unit, flags, r_ctl, hdr_type); 7985 } 7986 #endif 7987 7988 #ifdef BCM_TOMAHAWK3_SUPPORT 7989 int 7990 bcm_tomahawk3_fcoe_init( 7991 int unit) 7992 { 7993 return bcm_esw_fcoe_init(unit); 7994 } 7995 #endif 7996 7997 #ifdef BCM_TOMAHAWK3_SUPPORT 7998 int 7999 bcm_tomahawk3_fcoe_intf_config_get( 8000 int unit, 8001 uint32 flags, 8002 bcm_if_t intf, 8003 bcm_fcoe_intf_config_t *cfg) 8004 { 8005 return bcm_esw_fcoe_intf_config_get(unit, flags, intf, cfg); 8006 } 8007 #endif 8008 8009 #ifdef BCM_TOMAHAWK3_SUPPORT 8010 int 8011 bcm_tomahawk3_fcoe_intf_config_set( 8012 int unit, 8013 uint32 flags, 8014 bcm_if_t intf, 8015 bcm_fcoe_intf_config_t *cfg) 8016 { 8017 return bcm_esw_fcoe_intf_config_set(unit, flags, intf, cfg); 8018 } 8019 #endif 8020 8021 #ifdef BCM_TOMAHAWK3_SUPPORT 8022 int 8023 bcm_tomahawk3_fcoe_route_add( 8024 int unit, 8025 bcm_fcoe_route_t *route) 8026 { 8027 return bcm_esw_fcoe_route_add(unit, route); 8028 } 8029 #endif 8030 8031 #ifdef BCM_TOMAHAWK3_SUPPORT 8032 int 8033 bcm_tomahawk3_fcoe_route_delete( 8034 int unit, 8035 bcm_fcoe_route_t *route) 8036 { 8037 return bcm_esw_fcoe_route_delete(unit, route); 8038 } 8039 #endif 8040 8041 #ifdef BCM_TOMAHAWK3_SUPPORT 8042 int 8043 bcm_tomahawk3_fcoe_route_delete_all( 8044 int unit) 8045 { 8046 return bcm_esw_fcoe_route_delete_all(unit); 8047 } 8048 #endif 8049 8050 #ifdef BCM_TOMAHAWK3_SUPPORT 8051 int 8052 bcm_tomahawk3_fcoe_route_delete_by_interface( 8053 int unit, 8054 bcm_fcoe_route_t *route) 8055 { 8056 return bcm_esw_fcoe_route_delete_by_interface(unit, route); 8057 } 8058 #endif 8059 8060 #ifdef BCM_TOMAHAWK3_SUPPORT 8061 int 8062 bcm_tomahawk3_fcoe_route_delete_by_prefix( 8063 int unit, 8064 bcm_fcoe_route_t *route) 8065 { 8066 return bcm_esw_fcoe_route_delete_by_prefix(unit, route); 8067 } 8068 #endif 8069 8070 #ifdef BCM_TOMAHAWK3_SUPPORT 8071 int 8072 bcm_tomahawk3_fcoe_route_find( 8073 int unit, 8074 bcm_fcoe_route_t *route) 8075 { 8076 return bcm_esw_fcoe_route_find(unit, route); 8077 } 8078 #endif 8079 8080 #ifdef BCM_TOMAHAWK3_SUPPORT 8081 int 8082 bcm_tomahawk3_fcoe_route_stat_attach( 8083 int unit, 8084 bcm_fcoe_route_t *route, 8085 uint32 stat_counter_id) 8086 { 8087 return bcm_esw_fcoe_route_stat_attach(unit, route, stat_counter_id); 8088 } 8089 #endif 8090 8091 #ifdef BCM_TOMAHAWK3_SUPPORT 8092 int 8093 bcm_tomahawk3_fcoe_route_stat_counter_get( 8094 int unit, 8095 bcm_fcoe_route_t *route, 8096 bcm_fcoe_route_stat_t stat, 8097 uint32 num_entries, 8098 uint32 *counter_indexes, 8099 bcm_stat_value_t *counter_values) 8100 { 8101 return bcm_esw_fcoe_route_stat_counter_get(unit, route, stat, num_entries, counter_indexes, counter_values); 8102 } 8103 #endif 8104 8105 #ifdef BCM_TOMAHAWK3_SUPPORT 8106 int 8107 bcm_tomahawk3_fcoe_route_stat_counter_set( 8108 int unit, 8109 bcm_fcoe_route_t *route, 8110 bcm_fcoe_route_stat_t stat, 8111 uint32 num_entries, 8112 uint32 *counter_indexes, 8113 bcm_stat_value_t *counter_values) 8114 { 8115 return bcm_esw_fcoe_route_stat_counter_set(unit, route, stat, num_entries, counter_indexes, counter_values); 8116 } 8117 #endif 8118 8119 #ifdef BCM_TOMAHAWK3_SUPPORT 8120 int 8121 bcm_tomahawk3_fcoe_route_stat_counter_sync_get( 8122 int unit, 8123 bcm_fcoe_route_t *route, 8124 bcm_fcoe_route_stat_t stat, 8125 uint32 num_entries, 8126 uint32 *counter_indexes, 8127 bcm_stat_value_t *counter_values) 8128 { 8129 return bcm_esw_fcoe_route_stat_counter_sync_get(unit, route, stat, num_entries, counter_indexes, counter_values); 8130 } 8131 #endif 8132 8133 #ifdef BCM_TOMAHAWK3_SUPPORT 8134 int 8135 bcm_tomahawk3_fcoe_route_stat_detach( 8136 int unit, 8137 bcm_fcoe_route_t *route) 8138 { 8139 return bcm_esw_fcoe_route_stat_detach(unit, route); 8140 } 8141 #endif 8142 8143 #ifdef BCM_TOMAHAWK3_SUPPORT 8144 int 8145 bcm_tomahawk3_fcoe_route_stat_id_get( 8146 int unit, 8147 bcm_fcoe_route_t *route, 8148 bcm_fcoe_route_stat_t stat, 8149 uint32 *stat_counter_id) 8150 { 8151 return bcm_esw_fcoe_route_stat_id_get(unit, route, stat, stat_counter_id); 8152 } 8153 #endif 8154 8155 #ifdef BCM_TOMAHAWK3_SUPPORT 8156 int 8157 bcm_tomahawk3_fcoe_route_traverse( 8158 int unit, 8159 uint32 flags, 8160 bcm_fcoe_route_traverse_cb trav_fn, 8161 void *user_data) 8162 { 8163 return bcm_esw_fcoe_route_traverse(unit, flags, trav_fn, user_data); 8164 } 8165 #endif 8166 8167 #ifdef BCM_TOMAHAWK3_SUPPORT 8168 int 8169 bcm_tomahawk3_fcoe_vsan_create( 8170 int unit, 8171 uint32 options, 8172 bcm_fcoe_vsan_t *vsan, 8173 bcm_fcoe_vsan_id_t *vsan_id) 8174 { 8175 return bcm_esw_fcoe_vsan_create(unit, options, vsan, vsan_id); 8176 } 8177 #endif 8178 8179 #ifdef BCM_TOMAHAWK3_SUPPORT 8180 int 8181 bcm_tomahawk3_fcoe_vsan_destroy( 8182 int unit, 8183 bcm_fcoe_vsan_id_t vsan_id) 8184 { 8185 return bcm_esw_fcoe_vsan_destroy(unit, vsan_id); 8186 } 8187 #endif 8188 8189 #ifdef BCM_TOMAHAWK3_SUPPORT 8190 int 8191 bcm_tomahawk3_fcoe_vsan_destroy_all( 8192 int unit) 8193 { 8194 return bcm_esw_fcoe_vsan_destroy_all(unit); 8195 } 8196 #endif 8197 8198 #ifdef BCM_TOMAHAWK3_SUPPORT 8199 int 8200 bcm_tomahawk3_fcoe_vsan_get( 8201 int unit, 8202 bcm_fcoe_vsan_id_t vsan_id, 8203 bcm_fcoe_vsan_t *vsan) 8204 { 8205 return bcm_esw_fcoe_vsan_get(unit, vsan_id, vsan); 8206 } 8207 #endif 8208 8209 #ifdef BCM_TOMAHAWK3_SUPPORT 8210 int 8211 bcm_tomahawk3_fcoe_vsan_set( 8212 int unit, 8213 bcm_fcoe_vsan_id_t vsan_id, 8214 bcm_fcoe_vsan_t *vsan) 8215 { 8216 return bcm_esw_fcoe_vsan_set(unit, vsan_id, vsan); 8217 } 8218 #endif 8219 8220 #ifdef BCM_TOMAHAWK3_SUPPORT 8221 int 8222 bcm_tomahawk3_fcoe_vsan_stat_attach( 8223 int unit, 8224 bcm_fcoe_vsan_id_t vsan, 8225 uint32 stat_counter_id) 8226 { 8227 return bcm_esw_fcoe_vsan_stat_attach(unit, vsan, stat_counter_id); 8228 } 8229 #endif 8230 8231 #ifdef BCM_TOMAHAWK3_SUPPORT 8232 int 8233 bcm_tomahawk3_fcoe_vsan_stat_counter_get( 8234 int unit, 8235 bcm_fcoe_vsan_id_t vsan, 8236 bcm_fcoe_vsan_stat_t stat, 8237 uint32 num_entries, 8238 uint32 *counter_indexes, 8239 bcm_stat_value_t *counter_values) 8240 { 8241 return bcm_esw_fcoe_vsan_stat_counter_get(unit, vsan, stat, num_entries, counter_indexes, counter_values); 8242 } 8243 #endif 8244 8245 #ifdef BCM_TOMAHAWK3_SUPPORT 8246 int 8247 bcm_tomahawk3_fcoe_vsan_stat_counter_set( 8248 int unit, 8249 bcm_fcoe_vsan_id_t vsan, 8250 bcm_fcoe_vsan_stat_t stat, 8251 uint32 num_entries, 8252 uint32 *counter_indexes, 8253 bcm_stat_value_t *counter_values) 8254 { 8255 return bcm_esw_fcoe_vsan_stat_counter_set(unit, vsan, stat, num_entries, counter_indexes, counter_values); 8256 } 8257 #endif 8258 8259 #ifdef BCM_TOMAHAWK3_SUPPORT 8260 int 8261 bcm_tomahawk3_fcoe_vsan_stat_counter_sync_get( 8262 int unit, 8263 bcm_fcoe_vsan_id_t vsan, 8264 bcm_fcoe_vsan_stat_t stat, 8265 uint32 num_entries, 8266 uint32 *counter_indexes, 8267 bcm_stat_value_t *counter_values) 8268 { 8269 return bcm_esw_fcoe_vsan_stat_counter_sync_get(unit, vsan, stat, num_entries, counter_indexes, counter_values); 8270 } 8271 #endif 8272 8273 #ifdef BCM_TOMAHAWK3_SUPPORT 8274 int 8275 bcm_tomahawk3_fcoe_vsan_stat_detach( 8276 int unit, 8277 bcm_fcoe_vsan_id_t vsan) 8278 { 8279 return bcm_esw_fcoe_vsan_stat_detach(unit, vsan); 8280 } 8281 #endif 8282 8283 #ifdef BCM_TOMAHAWK3_SUPPORT 8284 int 8285 bcm_tomahawk3_fcoe_vsan_stat_id_get( 8286 int unit, 8287 bcm_fcoe_vsan_id_t vsan, 8288 bcm_fcoe_vsan_stat_t stat, 8289 uint32 *stat_counter_id) 8290 { 8291 return bcm_esw_fcoe_vsan_stat_id_get(unit, vsan, stat, stat_counter_id); 8292 } 8293 #endif 8294 8295 #ifdef BCM_TOMAHAWK3_SUPPORT 8296 int 8297 bcm_tomahawk3_fcoe_vsan_translate_action_add( 8298 int unit, 8299 bcm_fcoe_vsan_translate_key_config_t *key, 8300 bcm_fcoe_vsan_action_set_t *action) 8301 { 8302 return bcm_esw_fcoe_vsan_translate_action_add(unit, key, action); 8303 } 8304 #endif 8305 8306 #ifdef BCM_TOMAHAWK3_SUPPORT 8307 int 8308 bcm_tomahawk3_fcoe_vsan_translate_action_delete( 8309 int unit, 8310 bcm_fcoe_vsan_translate_key_config_t *key) 8311 { 8312 return bcm_esw_fcoe_vsan_translate_action_delete(unit, key); 8313 } 8314 #endif 8315 8316 #ifdef BCM_TOMAHAWK3_SUPPORT 8317 int 8318 bcm_tomahawk3_fcoe_vsan_traverse( 8319 int unit, 8320 uint32 flags, 8321 bcm_fcoe_vsan_traverse_cb trav_fn, 8322 void *user_data) 8323 { 8324 return bcm_esw_fcoe_vsan_traverse(unit, flags, trav_fn, user_data); 8325 } 8326 #endif 8327 8328 #ifdef BCM_TOMAHAWK3_SUPPORT 8329 int 8330 bcm_tomahawk3_fcoe_zone_add( 8331 int unit, 8332 bcm_fcoe_zone_entry_t *zone) 8333 { 8334 return bcm_esw_fcoe_zone_add(unit, zone); 8335 } 8336 #endif 8337 8338 #ifdef BCM_TOMAHAWK3_SUPPORT 8339 int 8340 bcm_tomahawk3_fcoe_zone_delete( 8341 int unit, 8342 bcm_fcoe_zone_entry_t *zone) 8343 { 8344 return bcm_esw_fcoe_zone_delete(unit, zone); 8345 } 8346 #endif 8347 8348 #ifdef BCM_TOMAHAWK3_SUPPORT 8349 int 8350 bcm_tomahawk3_fcoe_zone_delete_all( 8351 int unit) 8352 { 8353 return bcm_esw_fcoe_zone_delete_all(unit); 8354 } 8355 #endif 8356 8357 #ifdef BCM_TOMAHAWK3_SUPPORT 8358 int 8359 bcm_tomahawk3_fcoe_zone_delete_by_did( 8360 int unit, 8361 bcm_fcoe_zone_entry_t *zone) 8362 { 8363 return bcm_esw_fcoe_zone_delete_by_did(unit, zone); 8364 } 8365 #endif 8366 8367 #ifdef BCM_TOMAHAWK3_SUPPORT 8368 int 8369 bcm_tomahawk3_fcoe_zone_delete_by_sid( 8370 int unit, 8371 bcm_fcoe_zone_entry_t *zone) 8372 { 8373 return bcm_esw_fcoe_zone_delete_by_sid(unit, zone); 8374 } 8375 #endif 8376 8377 #ifdef BCM_TOMAHAWK3_SUPPORT 8378 int 8379 bcm_tomahawk3_fcoe_zone_delete_by_vsan( 8380 int unit, 8381 bcm_fcoe_zone_entry_t *zone) 8382 { 8383 return bcm_esw_fcoe_zone_delete_by_vsan(unit, zone); 8384 } 8385 #endif 8386 8387 #ifdef BCM_TOMAHAWK3_SUPPORT 8388 int 8389 bcm_tomahawk3_fcoe_zone_get( 8390 int unit, 8391 bcm_fcoe_zone_entry_t *zone) 8392 { 8393 return bcm_esw_fcoe_zone_get(unit, zone); 8394 } 8395 #endif 8396 8397 #ifdef BCM_TOMAHAWK3_SUPPORT 8398 int 8399 bcm_tomahawk3_fcoe_zone_traverse( 8400 int unit, 8401 uint32 flags, 8402 bcm_fcoe_zone_traverse_cb trav_fn, 8403 void *user_data) 8404 { 8405 return bcm_esw_fcoe_zone_traverse(unit, flags, trav_fn, user_data); 8406 } 8407 #endif 8408 8409 int 8410 bcm_tomahawk3_field_ace_entry_add( 8411 int unit, 8412 uint32 flags, 8413 bcm_field_ace_format_t ace_format_id , 8414 bcm_field_ace_entry_info_t *entry_info, 8415 uint32 *entry_handle) 8416 { 8417 return BCM_E_UNAVAIL; 8418 } 8419 8420 #ifdef BCM_TOMAHAWK3_SUPPORT 8421 int 8422 bcm_tomahawk3_field_ace_entry_delete( 8423 int unit, 8424 uint32 entry_handle) 8425 { 8426 return bcm_esw_field_ace_entry_delete(unit, entry_handle); 8427 } 8428 #endif 8429 8430 #ifdef BCM_TOMAHAWK3_SUPPORT 8431 int 8432 bcm_tomahawk3_field_ace_entry_info_get( 8433 int unit, 8434 uint32 entry_handle, 8435 bcm_field_ace_entry_info_t *entry_info) 8436 { 8437 return bcm_esw_field_ace_entry_info_get(unit, entry_handle, entry_info); 8438 } 8439 #endif 8440 8441 #ifdef BCM_TOMAHAWK3_SUPPORT 8442 int 8443 bcm_tomahawk3_field_ace_format_add( 8444 int unit, 8445 uint32 flags, 8446 bcm_field_ace_format_info_t *ace_format_info, 8447 bcm_field_ace_format_t *ace_format_id ) 8448 { 8449 return bcm_esw_field_ace_format_add(unit, flags, ace_format_info, ace_format_id ); 8450 } 8451 #endif 8452 8453 #ifdef BCM_TOMAHAWK3_SUPPORT 8454 int 8455 bcm_tomahawk3_field_ace_format_delete( 8456 int unit, 8457 bcm_field_ace_format_t ace_format_id) 8458 { 8459 return bcm_esw_field_ace_format_delete(unit, ace_format_id); 8460 } 8461 #endif 8462 8463 #ifdef BCM_TOMAHAWK3_SUPPORT 8464 int 8465 bcm_tomahawk3_field_ace_format_info_get( 8466 int unit, 8467 bcm_field_ace_format_t ace_format_id, 8468 bcm_field_ace_format_info_t *ace_format_info) 8469 { 8470 return bcm_esw_field_ace_format_info_get(unit, ace_format_id, ace_format_info); 8471 } 8472 #endif 8473 8474 #ifdef BCM_TOMAHAWK3_SUPPORT 8475 int 8476 bcm_tomahawk3_field_action_add( 8477 int unit, 8478 bcm_field_entry_t entry, 8479 bcm_field_action_t action, 8480 uint32 param0, 8481 uint32 param1) 8482 { 8483 return bcm_esw_field_action_add(unit, entry, action, param0, param1); 8484 } 8485 #endif 8486 8487 #ifdef BCM_TOMAHAWK3_SUPPORT 8488 int 8489 bcm_tomahawk3_field_action_class_add( 8490 int unit, 8491 bcm_field_entry_t entry, 8492 bcm_field_class_info_t *class_info) 8493 { 8494 return bcm_esw_field_action_class_add(unit, entry, class_info); 8495 } 8496 #endif 8497 8498 #ifdef BCM_TOMAHAWK3_SUPPORT 8499 int 8500 bcm_tomahawk3_field_action_class_get( 8501 int unit, 8502 bcm_field_entry_t entry, 8503 bcm_field_class_info_t *class_info) 8504 { 8505 return bcm_esw_field_action_class_get(unit, entry, class_info); 8506 } 8507 #endif 8508 8509 int 8510 bcm_tomahawk3_field_action_config_add( 8511 int unit, 8512 bcm_field_entry_t entry, 8513 bcm_field_action_t action, 8514 int core_config_arr_len, 8515 bcm_field_action_core_config_t *core_config_arr) 8516 { 8517 return BCM_E_UNAVAIL; 8518 } 8519 8520 int 8521 bcm_tomahawk3_field_action_config_get( 8522 int unit, 8523 bcm_field_entry_t entry, 8524 bcm_field_action_t action, 8525 int core_config_arr_len, 8526 bcm_field_action_core_config_t *core_config_arr) 8527 { 8528 return BCM_E_UNAVAIL; 8529 } 8530 8531 #ifdef BCM_TOMAHAWK3_SUPPORT 8532 int 8533 bcm_tomahawk3_field_action_config_info_add( 8534 int unit, 8535 bcm_field_entry_t entry, 8536 bcm_field_action_t action, 8537 bcm_field_action_params_t *params, 8538 bcm_field_action_match_config_t *match_config) 8539 { 8540 return bcm_esw_field_action_config_info_add(unit, entry, action, params, match_config); 8541 } 8542 #endif 8543 8544 #ifdef BCM_TOMAHAWK3_SUPPORT 8545 int 8546 bcm_tomahawk3_field_action_config_info_get( 8547 int unit, 8548 bcm_field_entry_t entry, 8549 bcm_field_action_t action, 8550 bcm_field_action_params_t *params, 8551 bcm_field_action_match_config_t *match_config) 8552 { 8553 return bcm_esw_field_action_config_info_get(unit, entry, action, params, match_config); 8554 } 8555 #endif 8556 8557 #ifdef BCM_TOMAHAWK3_SUPPORT 8558 int 8559 bcm_tomahawk3_field_action_copytocpu_config_get( 8560 int unit, 8561 bcm_field_entry_t entry, 8562 bcm_field_CopyToCpu_config_t *CopyToCpu_config) 8563 { 8564 return bcm_esw_field_action_copytocpu_config_get(unit, entry, CopyToCpu_config); 8565 } 8566 #endif 8567 8568 #ifdef BCM_TOMAHAWK3_SUPPORT 8569 int 8570 bcm_tomahawk3_field_action_copytocpu_config_set( 8571 int unit, 8572 bcm_field_entry_t entry, 8573 bcm_field_CopyToCpu_config_t CopyToCpu_config) 8574 { 8575 return bcm_esw_field_action_copytocpu_config_set(unit, entry, CopyToCpu_config); 8576 } 8577 #endif 8578 8579 #ifdef BCM_TOMAHAWK3_SUPPORT 8580 int 8581 bcm_tomahawk3_field_action_create( 8582 int unit, 8583 uint32 flags, 8584 bcm_field_action_info_t *action_info, 8585 bcm_field_action_t *action_id) 8586 { 8587 return bcm_esw_field_action_create(unit, flags, action_info, action_id); 8588 } 8589 #endif 8590 8591 #ifdef BCM_TOMAHAWK3_SUPPORT 8592 int 8593 bcm_tomahawk3_field_action_delete( 8594 int unit, 8595 bcm_field_entry_t entry, 8596 bcm_field_action_t action, 8597 uint32 param0, 8598 uint32 param1) 8599 { 8600 return bcm_esw_field_action_delete(unit, entry, action, param0, param1); 8601 } 8602 #endif 8603 8604 #ifdef BCM_TOMAHAWK3_SUPPORT 8605 int 8606 bcm_tomahawk3_field_action_destroy( 8607 int unit, 8608 bcm_field_action_t action_id) 8609 { 8610 return bcm_esw_field_action_destroy(unit, action_id); 8611 } 8612 #endif 8613 8614 #ifdef BCM_TOMAHAWK3_SUPPORT 8615 int 8616 bcm_tomahawk3_field_action_get( 8617 int unit, 8618 bcm_field_entry_t entry, 8619 bcm_field_action_t action, 8620 uint32 *param0, 8621 uint32 *param1) 8622 { 8623 return bcm_esw_field_action_get(unit, entry, action, param0, param1); 8624 } 8625 #endif 8626 8627 #ifdef BCM_TOMAHAWK3_SUPPORT 8628 int 8629 bcm_tomahawk3_field_action_info_get( 8630 int unit, 8631 bcm_field_action_t action_id, 8632 bcm_field_stage_t stage, 8633 bcm_field_action_info_t *action_info) 8634 { 8635 return bcm_esw_field_action_info_get(unit, action_id, stage, action_info); 8636 } 8637 #endif 8638 8639 #ifdef BCM_TOMAHAWK3_SUPPORT 8640 int 8641 bcm_tomahawk3_field_action_mac_add( 8642 int unit, 8643 bcm_field_entry_t entry, 8644 bcm_field_action_t action, 8645 bcm_mac_t mac) 8646 { 8647 return bcm_esw_field_action_mac_add(unit, entry, action, mac); 8648 } 8649 #endif 8650 8651 #ifdef BCM_TOMAHAWK3_SUPPORT 8652 int 8653 bcm_tomahawk3_field_action_mac_get( 8654 int unit, 8655 bcm_field_entry_t entry, 8656 bcm_field_action_t action, 8657 bcm_mac_t *mac) 8658 { 8659 return bcm_esw_field_action_mac_get(unit, entry, action, mac); 8660 } 8661 #endif 8662 8663 #ifdef BCM_TOMAHAWK3_SUPPORT 8664 int 8665 bcm_tomahawk3_field_action_ports_add( 8666 int unit, 8667 bcm_field_entry_t entry, 8668 bcm_field_action_t action, 8669 bcm_pbmp_t pbmp) 8670 { 8671 return bcm_esw_field_action_ports_add(unit, entry, action, pbmp); 8672 } 8673 #endif 8674 8675 #ifdef BCM_TOMAHAWK3_SUPPORT 8676 int 8677 bcm_tomahawk3_field_action_ports_get( 8678 int unit, 8679 bcm_field_entry_t entry, 8680 bcm_field_action_t action, 8681 bcm_pbmp_t *pbmp) 8682 { 8683 return bcm_esw_field_action_ports_get(unit, entry, action, pbmp); 8684 } 8685 #endif 8686 8687 #ifdef BCM_TOMAHAWK3_SUPPORT 8688 int 8689 bcm_tomahawk3_field_action_redirect_config_get( 8690 int unit, 8691 bcm_field_entry_t entry, 8692 bcm_field_redirect_config_t *redirect_config) 8693 { 8694 return bcm_esw_field_action_redirect_config_get(unit, entry, redirect_config); 8695 } 8696 #endif 8697 8698 #ifdef BCM_TOMAHAWK3_SUPPORT 8699 int 8700 bcm_tomahawk3_field_action_redirect_config_set( 8701 int unit, 8702 bcm_field_entry_t entry, 8703 bcm_field_redirect_config_t redirect_config) 8704 { 8705 return bcm_esw_field_action_redirect_config_set(unit, entry, redirect_config); 8706 } 8707 #endif 8708 8709 #ifdef BCM_TOMAHAWK3_SUPPORT 8710 int 8711 bcm_tomahawk3_field_action_remove( 8712 int unit, 8713 bcm_field_entry_t entry, 8714 bcm_field_action_t action) 8715 { 8716 return bcm_esw_field_action_remove(unit, entry, action); 8717 } 8718 #endif 8719 8720 #ifdef BCM_TOMAHAWK3_SUPPORT 8721 int 8722 bcm_tomahawk3_field_action_remove_all( 8723 int unit, 8724 bcm_field_entry_t entry) 8725 { 8726 return bcm_esw_field_action_remove_all(unit, entry); 8727 } 8728 #endif 8729 8730 #ifdef BCM_TOMAHAWK3_SUPPORT 8731 int 8732 bcm_tomahawk3_field_action_value_map( 8733 int unit, 8734 bcm_field_stage_t stage, 8735 bcm_field_action_t bcm_action, 8736 uint32 bcm_value[BCM_FIELD_ACTION_WIDTH_IN_WORDS], 8737 uint32 hw_value[BCM_FIELD_ACTION_WIDTH_IN_WORDS]) 8738 { 8739 return bcm_esw_field_action_value_map(unit, stage, bcm_action, bcm_value, hw_value); 8740 } 8741 #endif 8742 8743 #ifdef BCM_TOMAHAWK3_SUPPORT 8744 int 8745 bcm_tomahawk3_field_action_vlan_actions_add( 8746 int unit, 8747 bcm_field_entry_t entry, 8748 bcm_field_action_t action, 8749 bcm_vlan_action_set_t *vlan_action_set) 8750 { 8751 return bcm_esw_field_action_vlan_actions_add(unit, entry, action, vlan_action_set); 8752 } 8753 #endif 8754 8755 #ifdef BCM_TOMAHAWK3_SUPPORT 8756 int 8757 bcm_tomahawk3_field_action_vlan_actions_get( 8758 int unit, 8759 bcm_field_entry_t entry, 8760 bcm_field_action_t action, 8761 bcm_vlan_action_set_t *vlan_action_set) 8762 { 8763 return bcm_esw_field_action_vlan_actions_get(unit, entry, action, vlan_action_set); 8764 } 8765 #endif 8766 8767 int 8768 bcm_tomahawk3_field_action_width_get( 8769 int unit, 8770 uint32 flags, 8771 int internal_action, 8772 uint32 *width_p) 8773 { 8774 return BCM_E_UNAVAIL; 8775 } 8776 8777 int 8778 bcm_tomahawk3_field_action_width_set( 8779 int unit, 8780 uint32 flags, 8781 int internal_action, 8782 uint32 width) 8783 { 8784 return BCM_E_UNAVAIL; 8785 } 8786 8787 #ifdef BCM_TOMAHAWK3_SUPPORT 8788 int 8789 bcm_tomahawk3_field_class_map_get( 8790 int unit, 8791 bcm_field_stage_t stage, 8792 bcm_field_qualify_t qual, 8793 uint32 num_entries, 8794 uint32 *orig_values_array, 8795 uint32 *map_values_array) 8796 { 8797 return bcm_esw_field_class_map_get(unit, stage, qual, num_entries, orig_values_array, map_values_array); 8798 } 8799 #endif 8800 8801 #ifdef BCM_TOMAHAWK3_SUPPORT 8802 int 8803 bcm_tomahawk3_field_class_map_set( 8804 int unit, 8805 bcm_field_stage_t stage, 8806 bcm_field_qualify_t qual, 8807 uint32 num_entries, 8808 uint32 *orig_values_array, 8809 uint32 *map_values_array) 8810 { 8811 return bcm_esw_field_class_map_set(unit, stage, qual, num_entries, orig_values_array, map_values_array); 8812 } 8813 #endif 8814 8815 #ifdef BCM_TOMAHAWK3_SUPPORT 8816 int 8817 bcm_tomahawk3_field_class_size_get( 8818 int unit, 8819 bcm_field_qualify_t qual, 8820 uint16 *class_size) 8821 { 8822 return bcm_esw_field_class_size_get(unit, qual, class_size); 8823 } 8824 #endif 8825 8826 #ifdef BCM_TOMAHAWK3_SUPPORT 8827 int 8828 bcm_tomahawk3_field_compare_operand_offset_get( 8829 int unit, 8830 int pair_id, 8831 bcm_field_compare_operand_t compare_operand, 8832 int *offset) 8833 { 8834 return bcm_esw_field_compare_operand_offset_get(unit, pair_id, compare_operand, offset); 8835 } 8836 #endif 8837 8838 #ifdef BCM_TOMAHAWK3_SUPPORT 8839 int 8840 bcm_tomahawk3_field_context_compare_create( 8841 int unit, 8842 uint32 flags, 8843 bcm_field_stage_t stage, 8844 bcm_field_context_t context_id, 8845 uint32 pair_id, 8846 bcm_field_context_compare_info_t *cmp_info) 8847 { 8848 return bcm_esw_field_context_compare_create(unit, flags, stage, context_id, pair_id, cmp_info); 8849 } 8850 #endif 8851 8852 #ifdef BCM_TOMAHAWK3_SUPPORT 8853 int 8854 bcm_tomahawk3_field_context_compare_destroy( 8855 int unit, 8856 bcm_field_stage_t stage, 8857 bcm_field_context_t context_id, 8858 uint32 pair_id) 8859 { 8860 return bcm_esw_field_context_compare_destroy(unit, stage, context_id, pair_id); 8861 } 8862 #endif 8863 8864 #ifdef BCM_TOMAHAWK3_SUPPORT 8865 int 8866 bcm_tomahawk3_field_context_compare_info_get( 8867 int unit, 8868 bcm_field_stage_t stage, 8869 bcm_field_context_t context_id, 8870 uint32 pair_id, 8871 bcm_field_context_compare_info_t *cmp_info) 8872 { 8873 return bcm_esw_field_context_compare_info_get(unit, stage, context_id, pair_id, cmp_info); 8874 } 8875 #endif 8876 8877 #ifdef BCM_TOMAHAWK3_SUPPORT 8878 int 8879 bcm_tomahawk3_field_context_create( 8880 int unit, 8881 uint32 flags, 8882 bcm_field_stage_t stage, 8883 bcm_field_context_info_t *context_info, 8884 bcm_field_context_t *context_id) 8885 { 8886 return bcm_esw_field_context_create(unit, flags, stage, context_info, context_id); 8887 } 8888 #endif 8889 8890 #ifdef BCM_TOMAHAWK3_SUPPORT 8891 int 8892 bcm_tomahawk3_field_context_destroy( 8893 int unit, 8894 bcm_field_stage_t stage, 8895 bcm_field_context_t context_id) 8896 { 8897 return bcm_esw_field_context_destroy(unit, stage, context_id); 8898 } 8899 #endif 8900 8901 #ifdef BCM_TOMAHAWK3_SUPPORT 8902 int 8903 bcm_tomahawk3_field_context_hash_create( 8904 int unit, 8905 uint32 flags, 8906 bcm_field_stage_t stage, 8907 bcm_field_context_t context_id, 8908 bcm_field_context_hash_info_t *hash_info) 8909 { 8910 return bcm_esw_field_context_hash_create(unit, flags, stage, context_id, hash_info); 8911 } 8912 #endif 8913 8914 #ifdef BCM_TOMAHAWK3_SUPPORT 8915 int 8916 bcm_tomahawk3_field_context_hash_destroy( 8917 int unit, 8918 bcm_field_stage_t stage, 8919 bcm_field_context_t context_id) 8920 { 8921 return bcm_esw_field_context_hash_destroy(unit, stage, context_id); 8922 } 8923 #endif 8924 8925 #ifdef BCM_TOMAHAWK3_SUPPORT 8926 int 8927 bcm_tomahawk3_field_context_hash_info_get( 8928 int unit, 8929 bcm_field_stage_t stage, 8930 bcm_field_context_t context_id, 8931 bcm_field_context_hash_info_t *hash_info) 8932 { 8933 return bcm_esw_field_context_hash_info_get(unit, stage, context_id, hash_info); 8934 } 8935 #endif 8936 8937 #ifdef BCM_TOMAHAWK3_SUPPORT 8938 int 8939 bcm_tomahawk3_field_context_info_get( 8940 int unit, 8941 bcm_field_stage_t stage, 8942 bcm_field_context_t context_id, 8943 bcm_field_context_info_t *context_info) 8944 { 8945 return bcm_esw_field_context_info_get(unit, stage, context_id, context_info); 8946 } 8947 #endif 8948 8949 #ifdef BCM_TOMAHAWK3_SUPPORT 8950 int 8951 bcm_tomahawk3_field_context_param_set( 8952 int unit, 8953 uint32 flags, 8954 bcm_field_stage_t stage, 8955 bcm_field_context_t context_id, 8956 bcm_field_context_param_info_t *context_params) 8957 { 8958 return bcm_esw_field_context_param_set(unit, flags, stage, context_id, context_params); 8959 } 8960 #endif 8961 8962 #ifdef BCM_TOMAHAWK3_SUPPORT 8963 int 8964 bcm_tomahawk3_field_control_get( 8965 int unit, 8966 bcm_field_control_t control, 8967 uint32 *state) 8968 { 8969 return bcm_esw_field_control_get(unit, control, state); 8970 } 8971 #endif 8972 8973 #ifdef BCM_TOMAHAWK3_SUPPORT 8974 int 8975 bcm_tomahawk3_field_control_set( 8976 int unit, 8977 bcm_field_control_t control, 8978 uint32 state) 8979 { 8980 return bcm_esw_field_control_set(unit, control, state); 8981 } 8982 #endif 8983 8984 #ifdef BCM_TOMAHAWK3_SUPPORT 8985 int 8986 bcm_tomahawk3_field_data_qualifier_create( 8987 int unit, 8988 bcm_field_data_qualifier_t *data_qualifier) 8989 { 8990 return bcm_esw_field_data_qualifier_create(unit, data_qualifier); 8991 } 8992 #endif 8993 8994 #ifdef BCM_TOMAHAWK3_SUPPORT 8995 int 8996 bcm_tomahawk3_field_data_qualifier_destroy( 8997 int unit, 8998 int qual_id) 8999 { 9000 return bcm_esw_field_data_qualifier_destroy(unit, qual_id); 9001 } 9002 #endif 9003 9004 #ifdef BCM_TOMAHAWK3_SUPPORT 9005 int 9006 bcm_tomahawk3_field_data_qualifier_destroy_all( 9007 int unit) 9008 { 9009 return bcm_esw_field_data_qualifier_destroy_all(unit); 9010 } 9011 #endif 9012 9013 #ifdef BCM_TOMAHAWK3_SUPPORT 9014 int 9015 bcm_tomahawk3_field_data_qualifier_ethertype_add( 9016 int unit, 9017 int qual_id, 9018 bcm_field_data_ethertype_t *etype) 9019 { 9020 return bcm_esw_field_data_qualifier_ethertype_add(unit, qual_id, etype); 9021 } 9022 #endif 9023 9024 #ifdef BCM_TOMAHAWK3_SUPPORT 9025 int 9026 bcm_tomahawk3_field_data_qualifier_ethertype_delete( 9027 int unit, 9028 int qual_id, 9029 bcm_field_data_ethertype_t *etype) 9030 { 9031 return bcm_esw_field_data_qualifier_ethertype_delete(unit, qual_id, etype); 9032 } 9033 #endif 9034 9035 #ifdef BCM_TOMAHAWK3_SUPPORT 9036 int 9037 bcm_tomahawk3_field_data_qualifier_get( 9038 int unit, 9039 int qual_id, 9040 bcm_field_data_qualifier_t *qual) 9041 { 9042 return bcm_esw_field_data_qualifier_get(unit, qual_id, qual); 9043 } 9044 #endif 9045 9046 #ifdef BCM_TOMAHAWK3_SUPPORT 9047 int 9048 bcm_tomahawk3_field_data_qualifier_ip_protocol_add( 9049 int unit, 9050 int qual_id, 9051 bcm_field_data_ip_protocol_t *ip_protocol) 9052 { 9053 return bcm_esw_field_data_qualifier_ip_protocol_add(unit, qual_id, ip_protocol); 9054 } 9055 #endif 9056 9057 #ifdef BCM_TOMAHAWK3_SUPPORT 9058 int 9059 bcm_tomahawk3_field_data_qualifier_ip_protocol_delete( 9060 int unit, 9061 int qual_id, 9062 bcm_field_data_ip_protocol_t *ip_protocol) 9063 { 9064 return bcm_esw_field_data_qualifier_ip_protocol_delete(unit, qual_id, ip_protocol); 9065 } 9066 #endif 9067 9068 #ifdef BCM_TOMAHAWK3_SUPPORT 9069 int 9070 bcm_tomahawk3_field_data_qualifier_multi_get( 9071 int unit, 9072 int qual_size, 9073 int *qual_array, 9074 int *qual_count) 9075 { 9076 return bcm_esw_field_data_qualifier_multi_get(unit, qual_size, qual_array, qual_count); 9077 } 9078 #endif 9079 9080 #ifdef BCM_TOMAHAWK3_SUPPORT 9081 int 9082 bcm_tomahawk3_field_data_qualifier_packet_format_add( 9083 int unit, 9084 int qual_id, 9085 bcm_field_data_packet_format_t *packet_format) 9086 { 9087 return bcm_esw_field_data_qualifier_packet_format_add(unit, qual_id, packet_format); 9088 } 9089 #endif 9090 9091 #ifdef BCM_TOMAHAWK3_SUPPORT 9092 int 9093 bcm_tomahawk3_field_data_qualifier_packet_format_delete( 9094 int unit, 9095 int qual_id, 9096 bcm_field_data_packet_format_t *packet_format) 9097 { 9098 return bcm_esw_field_data_qualifier_packet_format_delete(unit, qual_id, packet_format); 9099 } 9100 #endif 9101 9102 #ifdef BCM_TOMAHAWK3_SUPPORT 9103 int 9104 bcm_tomahawk3_field_detach( 9105 int unit) 9106 { 9107 return bcm_esw_field_detach(unit); 9108 } 9109 #endif 9110 9111 #ifdef BCM_TOMAHAWK3_SUPPORT 9112 int 9113 bcm_tomahawk3_field_direct_extraction_action_add( 9114 int unit, 9115 bcm_field_entry_t entry, 9116 bcm_field_extraction_action_t action, 9117 int count, 9118 bcm_field_extraction_field_t *extractions) 9119 { 9120 return bcm_esw_field_direct_extraction_action_add(unit, entry, action, count, extractions); 9121 } 9122 #endif 9123 9124 #ifdef BCM_TOMAHAWK3_SUPPORT 9125 int 9126 bcm_tomahawk3_field_direct_extraction_action_get( 9127 int unit, 9128 bcm_field_entry_t entry, 9129 bcm_field_extraction_action_t *action, 9130 int max_count, 9131 bcm_field_extraction_field_t *extractions, 9132 int *actual_count) 9133 { 9134 return bcm_esw_field_direct_extraction_action_get(unit, entry, action, max_count, extractions, actual_count); 9135 } 9136 #endif 9137 9138 #ifdef BCM_TOMAHAWK3_SUPPORT 9139 int 9140 bcm_tomahawk3_field_entry_add( 9141 int unit, 9142 uint32 flags, 9143 bcm_field_group_t fg_id, 9144 bcm_field_entry_info_t *entry_info, 9145 bcm_field_entry_t *entry_handle) 9146 { 9147 return bcm_esw_field_entry_add(unit, flags, fg_id, entry_info, entry_handle); 9148 } 9149 #endif 9150 9151 #ifdef BCM_TOMAHAWK3_SUPPORT 9152 int 9153 bcm_tomahawk3_field_entry_config_copy( 9154 int unit, 9155 bcm_field_entry_t src_entry, 9156 bcm_field_entry_t *dst_entry, 9157 uint32 flags) 9158 { 9159 return bcm_esw_field_entry_config_copy(unit, src_entry, dst_entry, flags); 9160 } 9161 #endif 9162 9163 #ifdef BCM_TOMAHAWK3_SUPPORT 9164 int 9165 bcm_tomahawk3_field_entry_copy( 9166 int unit, 9167 bcm_field_entry_t src_entry, 9168 bcm_field_entry_t *dst_entry) 9169 { 9170 return bcm_esw_field_entry_copy(unit, src_entry, dst_entry); 9171 } 9172 #endif 9173 9174 #ifdef BCM_TOMAHAWK3_SUPPORT 9175 int 9176 bcm_tomahawk3_field_entry_copy_id( 9177 int unit, 9178 bcm_field_entry_t src_entry, 9179 bcm_field_entry_t dst_entry) 9180 { 9181 return bcm_esw_field_entry_copy_id(unit, src_entry, dst_entry); 9182 } 9183 #endif 9184 9185 #ifdef BCM_TOMAHAWK3_SUPPORT 9186 int 9187 bcm_tomahawk3_field_entry_create( 9188 int unit, 9189 bcm_field_group_t group, 9190 bcm_field_entry_t *entry) 9191 { 9192 return bcm_esw_field_entry_create(unit, group, entry); 9193 } 9194 #endif 9195 9196 #ifdef BCM_TOMAHAWK3_SUPPORT 9197 int 9198 bcm_tomahawk3_field_entry_create_id( 9199 int unit, 9200 bcm_field_group_t group, 9201 bcm_field_entry_t entry) 9202 { 9203 return bcm_esw_field_entry_create_id(unit, group, entry); 9204 } 9205 #endif 9206 9207 #ifdef BCM_TOMAHAWK3_SUPPORT 9208 int 9209 bcm_tomahawk3_field_entry_delete( 9210 int unit, 9211 bcm_field_group_t fg_id, 9212 bcm_field_entry_qual_t entry_qual_info[BCM_FIELD_NUMBER_OF_QUALS_PER_GROUP], 9213 bcm_field_entry_t entry_handle) 9214 { 9215 return bcm_esw_field_entry_delete(unit, fg_id, entry_qual_info, entry_handle); 9216 } 9217 #endif 9218 9219 #ifdef BCM_TOMAHAWK3_SUPPORT 9220 int 9221 bcm_tomahawk3_field_entry_delete_all( 9222 int unit) 9223 { 9224 return bcm_esw_field_entry_delete_all(unit); 9225 } 9226 #endif 9227 9228 #ifdef BCM_TOMAHAWK3_SUPPORT 9229 int 9230 bcm_tomahawk3_field_entry_destroy( 9231 int unit, 9232 bcm_field_entry_t entry) 9233 { 9234 return bcm_esw_field_entry_destroy(unit, entry); 9235 } 9236 #endif 9237 9238 #ifdef BCM_TOMAHAWK3_SUPPORT 9239 int 9240 bcm_tomahawk3_field_entry_destroy_all( 9241 int unit) 9242 { 9243 return bcm_esw_field_entry_destroy_all(unit); 9244 } 9245 #endif 9246 9247 #if defined(BROADCOM_DEBUG) 9248 #ifdef BCM_TOMAHAWK3_SUPPORT 9249 int 9250 bcm_tomahawk3_field_entry_dump( 9251 int unit, 9252 bcm_field_entry_t entry) 9253 { 9254 return bcm_esw_field_entry_dump(unit, entry); 9255 } 9256 #endif 9257 #endif 9258 9259 #ifdef BCM_TOMAHAWK3_SUPPORT 9260 int 9261 bcm_tomahawk3_field_entry_enable_get( 9262 int unit, 9263 bcm_field_entry_t entry, 9264 int *enable_flag) 9265 { 9266 return bcm_esw_field_entry_enable_get(unit, entry, enable_flag); 9267 } 9268 #endif 9269 9270 #ifdef BCM_TOMAHAWK3_SUPPORT 9271 int 9272 bcm_tomahawk3_field_entry_enable_set( 9273 int unit, 9274 bcm_field_entry_t entry, 9275 int enable_flag) 9276 { 9277 return bcm_esw_field_entry_enable_set(unit, entry, enable_flag); 9278 } 9279 #endif 9280 9281 #ifdef BCM_TOMAHAWK3_SUPPORT 9282 int 9283 bcm_tomahawk3_field_entry_hit_flush( 9284 int unit, 9285 uint32 flags, 9286 bcm_field_entry_t entry_handle) 9287 { 9288 return bcm_esw_field_entry_hit_flush(unit, flags, entry_handle); 9289 } 9290 #endif 9291 9292 #ifdef BCM_TOMAHAWK3_SUPPORT 9293 int 9294 bcm_tomahawk3_field_entry_hit_get( 9295 int unit, 9296 uint32 flags, 9297 bcm_field_entry_t entry_handle, 9298 uint8 *entry_hit_core_bmp) 9299 { 9300 return bcm_esw_field_entry_hit_get(unit, flags, entry_handle, entry_hit_core_bmp); 9301 } 9302 #endif 9303 9304 #ifdef BCM_TOMAHAWK3_SUPPORT 9305 int 9306 bcm_tomahawk3_field_entry_info_get( 9307 int unit, 9308 bcm_field_group_t fg_id, 9309 bcm_field_entry_t entry_handle, 9310 bcm_field_entry_info_t *entry_info) 9311 { 9312 return bcm_esw_field_entry_info_get(unit, fg_id, entry_handle, entry_info); 9313 } 9314 #endif 9315 9316 #ifdef BCM_TOMAHAWK3_SUPPORT 9317 int 9318 bcm_tomahawk3_field_entry_install( 9319 int unit, 9320 bcm_field_entry_t entry) 9321 { 9322 return bcm_esw_field_entry_install(unit, entry); 9323 } 9324 #endif 9325 9326 #ifdef BCM_TOMAHAWK3_SUPPORT 9327 int 9328 bcm_tomahawk3_field_entry_install_and_handler_update( 9329 int unit, 9330 bcm_field_entry_t entry, 9331 bcm_field_entry_t *large_dt_entry) 9332 { 9333 return bcm_esw_field_entry_install_and_handler_update(unit, entry, large_dt_entry); 9334 } 9335 #endif 9336 9337 #ifdef BCM_TOMAHAWK3_SUPPORT 9338 int 9339 bcm_tomahawk3_field_entry_multi_get( 9340 int unit, 9341 bcm_field_group_t group, 9342 int entry_size, 9343 bcm_field_entry_t *entry_array, 9344 int *entry_count) 9345 { 9346 return bcm_esw_field_entry_multi_get(unit, group, entry_size, entry_array, entry_count); 9347 } 9348 #endif 9349 9350 #ifdef BCM_TOMAHAWK3_SUPPORT 9351 int 9352 bcm_tomahawk3_field_entry_operation( 9353 int unit, 9354 bcm_field_entry_oper_t *entry_oper) 9355 { 9356 return bcm_esw_field_entry_operation(unit, entry_oper); 9357 } 9358 #endif 9359 9360 #ifdef BCM_TOMAHAWK3_SUPPORT 9361 int 9362 bcm_tomahawk3_field_entry_policer_attach( 9363 int unit, 9364 bcm_field_entry_t entry_id, 9365 int level, 9366 bcm_policer_t policer_id) 9367 { 9368 return bcm_esw_field_entry_policer_attach(unit, entry_id, level, policer_id); 9369 } 9370 #endif 9371 9372 #ifdef BCM_TOMAHAWK3_SUPPORT 9373 int 9374 bcm_tomahawk3_field_entry_policer_detach( 9375 int unit, 9376 bcm_field_entry_t entry_id, 9377 int level) 9378 { 9379 return bcm_esw_field_entry_policer_detach(unit, entry_id, level); 9380 } 9381 #endif 9382 9383 #ifdef BCM_TOMAHAWK3_SUPPORT 9384 int 9385 bcm_tomahawk3_field_entry_policer_detach_all( 9386 int unit, 9387 bcm_field_entry_t entry_id) 9388 { 9389 return bcm_esw_field_entry_policer_detach_all(unit, entry_id); 9390 } 9391 #endif 9392 9393 #ifdef BCM_TOMAHAWK3_SUPPORT 9394 int 9395 bcm_tomahawk3_field_entry_policer_get( 9396 int unit, 9397 bcm_field_entry_t entry_id, 9398 int level, 9399 bcm_policer_t *policer_id) 9400 { 9401 return bcm_esw_field_entry_policer_get(unit, entry_id, level, policer_id); 9402 } 9403 #endif 9404 9405 #ifdef BCM_TOMAHAWK3_SUPPORT 9406 int 9407 bcm_tomahawk3_field_entry_prio_get( 9408 int unit, 9409 bcm_field_entry_t entry, 9410 int *prio) 9411 { 9412 return bcm_esw_field_entry_prio_get(unit, entry, prio); 9413 } 9414 #endif 9415 9416 #ifdef BCM_TOMAHAWK3_SUPPORT 9417 int 9418 bcm_tomahawk3_field_entry_prio_set( 9419 int unit, 9420 bcm_field_entry_t entry, 9421 int prio) 9422 { 9423 return bcm_esw_field_entry_prio_set(unit, entry, prio); 9424 } 9425 #endif 9426 9427 #ifdef BCM_TOMAHAWK3_SUPPORT 9428 int 9429 bcm_tomahawk3_field_entry_reinstall( 9430 int unit, 9431 bcm_field_entry_t entry) 9432 { 9433 return bcm_esw_field_entry_reinstall(unit, entry); 9434 } 9435 #endif 9436 9437 #ifdef BCM_TOMAHAWK3_SUPPORT 9438 int 9439 bcm_tomahawk3_field_entry_remove( 9440 int unit, 9441 bcm_field_entry_t entry) 9442 { 9443 return bcm_esw_field_entry_remove(unit, entry); 9444 } 9445 #endif 9446 9447 #ifdef BCM_TOMAHAWK3_SUPPORT 9448 int 9449 bcm_tomahawk3_field_entry_stat_attach( 9450 int unit, 9451 bcm_field_entry_t entry, 9452 int stat_id) 9453 { 9454 return bcm_esw_field_entry_stat_attach(unit, entry, stat_id); 9455 } 9456 #endif 9457 9458 #ifdef BCM_TOMAHAWK3_SUPPORT 9459 int 9460 bcm_tomahawk3_field_entry_stat_detach( 9461 int unit, 9462 bcm_field_entry_t entry, 9463 int stat_id) 9464 { 9465 return bcm_esw_field_entry_stat_detach(unit, entry, stat_id); 9466 } 9467 #endif 9468 9469 #ifdef BCM_TOMAHAWK3_SUPPORT 9470 int 9471 bcm_tomahawk3_field_entry_stat_extended_attach( 9472 int unit, 9473 bcm_field_entry_t entry, 9474 int stat_id, 9475 bcm_field_stat_action_t stat_action) 9476 { 9477 return bcm_esw_field_entry_stat_extended_attach(unit, entry, stat_id, stat_action); 9478 } 9479 #endif 9480 9481 #ifdef BCM_TOMAHAWK3_SUPPORT 9482 int 9483 bcm_tomahawk3_field_entry_stat_extended_get( 9484 int unit, 9485 bcm_field_entry_t entry, 9486 int *stat_id, 9487 bcm_field_stat_action_t *stat_action) 9488 { 9489 return bcm_esw_field_entry_stat_extended_get(unit, entry, stat_id, stat_action); 9490 } 9491 #endif 9492 9493 #ifdef BCM_TOMAHAWK3_SUPPORT 9494 int 9495 bcm_tomahawk3_field_entry_stat_get( 9496 int unit, 9497 bcm_field_entry_t entry, 9498 int *stat_id) 9499 { 9500 return bcm_esw_field_entry_stat_get(unit, entry, stat_id); 9501 } 9502 #endif 9503 9504 #ifdef BCM_TOMAHAWK3_SUPPORT 9505 int 9506 bcm_tomahawk3_field_fem_action_add( 9507 int unit, 9508 uint32 flags, 9509 bcm_field_group_t fg_id, 9510 bcm_field_action_priority_t encoded_position, 9511 bcm_field_fem_action_info_t *fem_action_info) 9512 { 9513 return bcm_esw_field_fem_action_add(unit, flags, fg_id, encoded_position, fem_action_info); 9514 } 9515 #endif 9516 9517 #ifdef BCM_TOMAHAWK3_SUPPORT 9518 int 9519 bcm_tomahawk3_field_fem_action_delete( 9520 int unit, 9521 bcm_field_group_t fg_id, 9522 bcm_field_action_priority_t bcm_field_action_priority_t) 9523 { 9524 return bcm_esw_field_fem_action_delete(unit, fg_id, bcm_field_action_priority_t); 9525 } 9526 #endif 9527 9528 #ifdef BCM_TOMAHAWK3_SUPPORT 9529 int 9530 bcm_tomahawk3_field_fem_action_info_get( 9531 int unit, 9532 bcm_field_group_t fg_id, 9533 bcm_field_action_priority_t encoded_position, 9534 bcm_field_fem_action_info_t *fem_action_info) 9535 { 9536 return bcm_esw_field_fem_action_info_get(unit, fg_id, encoded_position, fem_action_info); 9537 } 9538 #endif 9539 9540 #ifdef BCM_TOMAHAWK3_SUPPORT 9541 int 9542 bcm_tomahawk3_field_group_action_get( 9543 int unit, 9544 bcm_field_group_t group, 9545 bcm_field_aset_t *aset) 9546 { 9547 return bcm_esw_field_group_action_get(unit, group, aset); 9548 } 9549 #endif 9550 9551 #ifdef BCM_TOMAHAWK3_SUPPORT 9552 int 9553 bcm_tomahawk3_field_group_action_offset_get( 9554 int unit, 9555 uint32 flags, 9556 bcm_field_group_t fg_id, 9557 bcm_field_action_t action, 9558 int *offset) 9559 { 9560 return bcm_esw_field_group_action_offset_get(unit, flags, fg_id, action, offset); 9561 } 9562 #endif 9563 9564 #ifdef BCM_TOMAHAWK3_SUPPORT 9565 int 9566 bcm_tomahawk3_field_group_action_set( 9567 int unit, 9568 bcm_field_group_t group, 9569 bcm_field_aset_t aset) 9570 { 9571 return bcm_esw_field_group_action_set(unit, group, aset); 9572 } 9573 #endif 9574 9575 #ifdef BCM_TOMAHAWK3_SUPPORT 9576 int 9577 bcm_tomahawk3_field_group_add( 9578 int unit, 9579 uint32 flags, 9580 bcm_field_group_info_t *fg_info, 9581 bcm_field_group_t *fg_id) 9582 { 9583 return bcm_esw_field_group_add(unit, flags, fg_info, fg_id); 9584 } 9585 #endif 9586 9587 #ifdef BCM_TOMAHAWK3_SUPPORT 9588 int 9589 bcm_tomahawk3_field_group_compress( 9590 int unit, 9591 bcm_field_group_t group) 9592 { 9593 return bcm_esw_field_group_compress(unit, group); 9594 } 9595 #endif 9596 9597 #ifdef BCM_TOMAHAWK3_SUPPORT 9598 int 9599 bcm_tomahawk3_field_group_config_create( 9600 int unit, 9601 bcm_field_group_config_t *group_config) 9602 { 9603 return bcm_esw_field_group_config_create(unit, group_config); 9604 } 9605 #endif 9606 9607 int 9608 bcm_tomahawk3_field_group_config_extension_create( 9609 int unit, 9610 bcm_field_group_config_extension_t *group_config) 9611 { 9612 return BCM_E_UNAVAIL; 9613 } 9614 9615 #ifdef BCM_TOMAHAWK3_SUPPORT 9616 int 9617 bcm_tomahawk3_field_group_config_validate( 9618 int unit, 9619 bcm_field_group_config_t *group_config, 9620 bcm_field_group_mode_t *mode) 9621 { 9622 return bcm_esw_field_group_config_validate(unit, group_config, mode); 9623 } 9624 #endif 9625 9626 #ifdef BCM_TOMAHAWK3_SUPPORT 9627 int 9628 bcm_tomahawk3_field_group_context_attach( 9629 int unit, 9630 uint32 flags, 9631 bcm_field_group_t fg_id, 9632 bcm_field_context_t context_id, 9633 bcm_field_group_attach_info_t *attach_info) 9634 { 9635 return bcm_esw_field_group_context_attach(unit, flags, fg_id, context_id, attach_info); 9636 } 9637 #endif 9638 9639 #ifdef BCM_TOMAHAWK3_SUPPORT 9640 int 9641 bcm_tomahawk3_field_group_context_detach( 9642 int unit, 9643 bcm_field_group_t fg_id, 9644 bcm_field_context_t context_id) 9645 { 9646 return bcm_esw_field_group_context_detach(unit, fg_id, context_id); 9647 } 9648 #endif 9649 9650 #ifdef BCM_TOMAHAWK3_SUPPORT 9651 int 9652 bcm_tomahawk3_field_group_context_info_get( 9653 int unit, 9654 bcm_field_group_t fg_id, 9655 bcm_field_context_t context_id, 9656 bcm_field_group_attach_info_t *attach_info) 9657 { 9658 return bcm_esw_field_group_context_info_get(unit, fg_id, context_id, attach_info); 9659 } 9660 #endif 9661 9662 #ifdef BCM_TOMAHAWK3_SUPPORT 9663 int 9664 bcm_tomahawk3_field_group_create( 9665 int unit, 9666 bcm_field_qset_t qset, 9667 int pri, 9668 bcm_field_group_t *group) 9669 { 9670 return bcm_esw_field_group_create(unit, qset, pri, group); 9671 } 9672 #endif 9673 9674 #ifdef BCM_TOMAHAWK3_SUPPORT 9675 int 9676 bcm_tomahawk3_field_group_create_id( 9677 int unit, 9678 bcm_field_qset_t qset, 9679 int pri, 9680 bcm_field_group_t group) 9681 { 9682 return bcm_esw_field_group_create_id(unit, qset, pri, group); 9683 } 9684 #endif 9685 9686 #ifdef BCM_TOMAHAWK3_SUPPORT 9687 int 9688 bcm_tomahawk3_field_group_create_mode( 9689 int unit, 9690 bcm_field_qset_t qset, 9691 int pri, 9692 bcm_field_group_mode_t mode, 9693 bcm_field_group_t *group) 9694 { 9695 return bcm_esw_field_group_create_mode(unit, qset, pri, mode, group); 9696 } 9697 #endif 9698 9699 #ifdef BCM_TOMAHAWK3_SUPPORT 9700 int 9701 bcm_tomahawk3_field_group_create_mode_id( 9702 int unit, 9703 bcm_field_qset_t qset, 9704 int pri, 9705 bcm_field_group_mode_t mode, 9706 bcm_field_group_t group) 9707 { 9708 return bcm_esw_field_group_create_mode_id(unit, qset, pri, mode, group); 9709 } 9710 #endif 9711 9712 #ifdef BCM_TOMAHAWK3_SUPPORT 9713 int 9714 bcm_tomahawk3_field_group_default_entry_get( 9715 int unit, 9716 bcm_field_group_t group, 9717 bcm_field_entry_t *entry) 9718 { 9719 return bcm_esw_field_group_default_entry_get(unit, group, entry); 9720 } 9721 #endif 9722 9723 #ifdef BCM_TOMAHAWK3_SUPPORT 9724 int 9725 bcm_tomahawk3_field_group_default_entry_set( 9726 int unit, 9727 bcm_field_group_t group, 9728 bcm_field_entry_t entry, 9729 int enable) 9730 { 9731 return bcm_esw_field_group_default_entry_set(unit, group, entry, enable); 9732 } 9733 #endif 9734 9735 #ifdef BCM_TOMAHAWK3_SUPPORT 9736 int 9737 bcm_tomahawk3_field_group_delete( 9738 int unit, 9739 bcm_field_group_t fg_id) 9740 { 9741 return bcm_esw_field_group_delete(unit, fg_id); 9742 } 9743 #endif 9744 9745 #ifdef BCM_TOMAHAWK3_SUPPORT 9746 int 9747 bcm_tomahawk3_field_group_destroy( 9748 int unit, 9749 bcm_field_group_t group) 9750 { 9751 return bcm_esw_field_group_destroy(unit, group); 9752 } 9753 #endif 9754 9755 #if defined(BROADCOM_DEBUG) 9756 #ifdef BCM_TOMAHAWK3_SUPPORT 9757 int 9758 bcm_tomahawk3_field_group_dump( 9759 int unit, 9760 bcm_field_group_t group) 9761 { 9762 return bcm_esw_field_group_dump(unit, group); 9763 } 9764 #endif 9765 #endif 9766 9767 #ifdef BCM_TOMAHAWK3_SUPPORT 9768 int 9769 bcm_tomahawk3_field_group_enable_get( 9770 int unit, 9771 bcm_field_group_t group, 9772 int *enable) 9773 { 9774 return bcm_esw_field_group_enable_get(unit, group, enable); 9775 } 9776 #endif 9777 9778 #ifdef BCM_TOMAHAWK3_SUPPORT 9779 int 9780 bcm_tomahawk3_field_group_enable_set( 9781 int unit, 9782 bcm_field_group_t group, 9783 int enable) 9784 { 9785 return bcm_esw_field_group_enable_set(unit, group, enable); 9786 } 9787 #endif 9788 9789 #ifdef BCM_TOMAHAWK3_SUPPORT 9790 int 9791 bcm_tomahawk3_field_group_expansion_enable_get( 9792 int unit, 9793 bcm_field_group_t group, 9794 int *enable) 9795 { 9796 return bcm_esw_field_group_expansion_enable_get(unit, group, enable); 9797 } 9798 #endif 9799 9800 #ifdef BCM_TOMAHAWK3_SUPPORT 9801 int 9802 bcm_tomahawk3_field_group_expansion_enable_set( 9803 int unit, 9804 bcm_field_group_t group, 9805 int enable) 9806 { 9807 return bcm_esw_field_group_expansion_enable_set(unit, group, enable); 9808 } 9809 #endif 9810 9811 #ifdef BCM_TOMAHAWK3_SUPPORT 9812 int 9813 bcm_tomahawk3_field_group_flush( 9814 int unit, 9815 bcm_field_group_t group) 9816 { 9817 return bcm_esw_field_group_flush(unit, group); 9818 } 9819 #endif 9820 9821 #ifdef BCM_TOMAHAWK3_SUPPORT 9822 int 9823 bcm_tomahawk3_field_group_get( 9824 int unit, 9825 bcm_field_group_t group, 9826 bcm_field_qset_t *qset) 9827 { 9828 return bcm_esw_field_group_get(unit, group, qset); 9829 } 9830 #endif 9831 9832 #ifdef BCM_TOMAHAWK3_SUPPORT 9833 int 9834 bcm_tomahawk3_field_group_info_get( 9835 int unit, 9836 bcm_field_group_t fg_id, 9837 bcm_field_group_info_t *fg_info) 9838 { 9839 return bcm_esw_field_group_info_get(unit, fg_id, fg_info); 9840 } 9841 #endif 9842 9843 #ifdef BCM_TOMAHAWK3_SUPPORT 9844 int 9845 bcm_tomahawk3_field_group_install( 9846 int unit, 9847 bcm_field_group_t group) 9848 { 9849 return bcm_esw_field_group_install(unit, group); 9850 } 9851 #endif 9852 9853 #ifdef BCM_TOMAHAWK3_SUPPORT 9854 int 9855 bcm_tomahawk3_field_group_mode_get( 9856 int unit, 9857 bcm_field_group_t group, 9858 bcm_field_group_mode_t *mode) 9859 { 9860 return bcm_esw_field_group_mode_get(unit, group, mode); 9861 } 9862 #endif 9863 9864 #ifdef BCM_TOMAHAWK3_SUPPORT 9865 int 9866 bcm_tomahawk3_field_group_oper_mode_get( 9867 int unit, 9868 bcm_field_qualify_t stage, 9869 bcm_field_group_oper_mode_t *mode) 9870 { 9871 return bcm_esw_field_group_oper_mode_get(unit, stage, mode); 9872 } 9873 #endif 9874 9875 #ifdef BCM_TOMAHAWK3_SUPPORT 9876 int 9877 bcm_tomahawk3_field_group_oper_mode_set( 9878 int unit, 9879 bcm_field_qualify_t stage, 9880 bcm_field_group_oper_mode_t mode) 9881 { 9882 return bcm_esw_field_group_oper_mode_set(unit, stage, mode); 9883 } 9884 #endif 9885 9886 #ifdef BCM_TOMAHAWK3_SUPPORT 9887 int 9888 bcm_tomahawk3_field_group_port_create_mode( 9889 int unit, 9890 bcm_port_t port, 9891 bcm_field_qset_t qset, 9892 int pri, 9893 bcm_field_group_mode_t mode, 9894 bcm_field_group_t *group) 9895 { 9896 return bcm_esw_field_group_port_create_mode(unit, port, qset, pri, mode, group); 9897 } 9898 #endif 9899 9900 #ifdef BCM_TOMAHAWK3_SUPPORT 9901 int 9902 bcm_tomahawk3_field_group_port_create_mode_id( 9903 int unit, 9904 bcm_port_t port, 9905 bcm_field_qset_t qset, 9906 int pri, 9907 bcm_field_group_mode_t mode, 9908 bcm_field_group_t group) 9909 { 9910 return bcm_esw_field_group_port_create_mode_id(unit, port, qset, pri, mode, group); 9911 } 9912 #endif 9913 9914 #ifdef BCM_TOMAHAWK3_SUPPORT 9915 int 9916 bcm_tomahawk3_field_group_ports_add( 9917 int unit, 9918 bcm_field_group_t group, 9919 bcm_pbmp_t pbmp) 9920 { 9921 return bcm_esw_field_group_ports_add(unit, group, pbmp); 9922 } 9923 #endif 9924 9925 #ifdef BCM_TOMAHAWK3_SUPPORT 9926 int 9927 bcm_tomahawk3_field_group_ports_create_mode( 9928 int unit, 9929 bcm_pbmp_t pbmp, 9930 bcm_field_qset_t qset, 9931 int pri, 9932 bcm_field_group_mode_t mode, 9933 bcm_field_group_t *group) 9934 { 9935 return bcm_esw_field_group_ports_create_mode(unit, pbmp, qset, pri, mode, group); 9936 } 9937 #endif 9938 9939 #ifdef BCM_TOMAHAWK3_SUPPORT 9940 int 9941 bcm_tomahawk3_field_group_ports_create_mode_id( 9942 int unit, 9943 bcm_pbmp_t pbmp, 9944 bcm_field_qset_t qset, 9945 int pri, 9946 bcm_field_group_mode_t mode, 9947 bcm_field_group_t group) 9948 { 9949 return bcm_esw_field_group_ports_create_mode_id(unit, pbmp, qset, pri, mode, group); 9950 } 9951 #endif 9952 9953 #ifdef BCM_TOMAHAWK3_SUPPORT 9954 int 9955 bcm_tomahawk3_field_group_ports_get( 9956 int unit, 9957 bcm_field_group_t group, 9958 bcm_pbmp_t *pbmp) 9959 { 9960 return bcm_esw_field_group_ports_get(unit, group, pbmp); 9961 } 9962 #endif 9963 9964 #ifdef BCM_TOMAHAWK3_SUPPORT 9965 int 9966 bcm_tomahawk3_field_group_ports_remove( 9967 int unit, 9968 bcm_field_group_t group, 9969 bcm_pbmp_t pbmp) 9970 { 9971 return bcm_esw_field_group_ports_remove(unit, group, pbmp); 9972 } 9973 #endif 9974 9975 #ifdef BCM_TOMAHAWK3_SUPPORT 9976 int 9977 bcm_tomahawk3_field_group_presel_get( 9978 int unit, 9979 bcm_field_group_t group, 9980 bcm_field_presel_set_t *presel) 9981 { 9982 return bcm_esw_field_group_presel_get(unit, group, presel); 9983 } 9984 #endif 9985 9986 #ifdef BCM_TOMAHAWK3_SUPPORT 9987 int 9988 bcm_tomahawk3_field_group_presel_set( 9989 int unit, 9990 bcm_field_group_t group, 9991 bcm_field_presel_set_t *presel) 9992 { 9993 return bcm_esw_field_group_presel_set(unit, group, presel); 9994 } 9995 #endif 9996 9997 #ifdef BCM_TOMAHAWK3_SUPPORT 9998 int 9999 bcm_tomahawk3_field_group_priority_get( 10000 int unit, 10001 bcm_field_group_t group, 10002 int *priority) 10003 { 10004 return bcm_esw_field_group_priority_get(unit, group, priority); 10005 } 10006 #endif 10007 10008 #ifdef BCM_TOMAHAWK3_SUPPORT 10009 int 10010 bcm_tomahawk3_field_group_priority_set( 10011 int unit, 10012 bcm_field_group_t group, 10013 int priority) 10014 { 10015 return bcm_esw_field_group_priority_set(unit, group, priority); 10016 } 10017 #endif 10018 10019 #ifdef BCM_TOMAHAWK3_SUPPORT 10020 int 10021 bcm_tomahawk3_field_group_qualifier_offset_get( 10022 int unit, 10023 uint32 flags, 10024 bcm_field_group_t fg_id, 10025 bcm_field_qualify_t qualifier, 10026 int *offset) 10027 { 10028 return bcm_esw_field_group_qualifier_offset_get(unit, flags, fg_id, qualifier, offset); 10029 } 10030 #endif 10031 10032 #ifdef BCM_TOMAHAWK3_SUPPORT 10033 int 10034 bcm_tomahawk3_field_group_remove( 10035 int unit, 10036 bcm_field_group_t group) 10037 { 10038 return bcm_esw_field_group_remove(unit, group); 10039 } 10040 #endif 10041 10042 #ifdef BCM_TOMAHAWK3_SUPPORT 10043 int 10044 bcm_tomahawk3_field_group_set( 10045 int unit, 10046 bcm_field_group_t group, 10047 bcm_field_qset_t qset) 10048 { 10049 return bcm_esw_field_group_set(unit, group, qset); 10050 } 10051 #endif 10052 10053 #ifdef BCM_TOMAHAWK3_SUPPORT 10054 int 10055 bcm_tomahawk3_field_group_status_get( 10056 int unit, 10057 bcm_field_group_t group, 10058 bcm_field_group_status_t *status) 10059 { 10060 return bcm_esw_field_group_status_get(unit, group, status); 10061 } 10062 #endif 10063 10064 #ifdef BCM_TOMAHAWK3_SUPPORT 10065 int 10066 bcm_tomahawk3_field_group_traverse( 10067 int unit, 10068 bcm_field_group_traverse_cb callback, 10069 void *user_data) 10070 { 10071 return bcm_esw_field_group_traverse(unit, callback, user_data); 10072 } 10073 #endif 10074 10075 #ifdef BCM_TOMAHAWK3_SUPPORT 10076 int 10077 bcm_tomahawk3_field_group_wlan_create_mode( 10078 int unit, 10079 bcm_field_qset_t qset, 10080 int pri, 10081 bcm_field_group_mode_t mode, 10082 bcm_field_group_t *group) 10083 { 10084 return bcm_esw_field_group_wlan_create_mode(unit, qset, pri, mode, group); 10085 } 10086 #endif 10087 10088 #ifdef BCM_TOMAHAWK3_SUPPORT 10089 int 10090 bcm_tomahawk3_field_group_wlan_create_mode_id( 10091 int unit, 10092 bcm_field_qset_t qset, 10093 int pri, 10094 bcm_field_group_mode_t mode, 10095 bcm_field_group_t group) 10096 { 10097 return bcm_esw_field_group_wlan_create_mode_id(unit, qset, pri, mode, group); 10098 } 10099 #endif 10100 10101 #ifdef BCM_TOMAHAWK3_SUPPORT 10102 int 10103 bcm_tomahawk3_field_hints_add( 10104 int unit, 10105 bcm_field_hintid_t hint_id, 10106 bcm_field_hint_t *hint) 10107 { 10108 return bcm_esw_field_hints_add(unit, hint_id, hint); 10109 } 10110 #endif 10111 10112 #ifdef BCM_TOMAHAWK3_SUPPORT 10113 int 10114 bcm_tomahawk3_field_hints_create( 10115 int unit, 10116 bcm_field_hintid_t *hint_id) 10117 { 10118 return bcm_esw_field_hints_create(unit, hint_id); 10119 } 10120 #endif 10121 10122 #ifdef BCM_TOMAHAWK3_SUPPORT 10123 int 10124 bcm_tomahawk3_field_hints_delete( 10125 int unit, 10126 bcm_field_hintid_t hint_id, 10127 bcm_field_hint_t *hint) 10128 { 10129 return bcm_esw_field_hints_delete(unit, hint_id, hint); 10130 } 10131 #endif 10132 10133 #ifdef BCM_TOMAHAWK3_SUPPORT 10134 int 10135 bcm_tomahawk3_field_hints_delete_all( 10136 int unit, 10137 bcm_field_hintid_t hint_id) 10138 { 10139 return bcm_esw_field_hints_delete_all(unit, hint_id); 10140 } 10141 #endif 10142 10143 #ifdef BCM_TOMAHAWK3_SUPPORT 10144 int 10145 bcm_tomahawk3_field_hints_destroy( 10146 int unit, 10147 bcm_field_hintid_t hint_id) 10148 { 10149 return bcm_esw_field_hints_destroy(unit, hint_id); 10150 } 10151 #endif 10152 10153 #ifdef BCM_TOMAHAWK3_SUPPORT 10154 int 10155 bcm_tomahawk3_field_hints_get( 10156 int unit, 10157 bcm_field_hintid_t hint_id, 10158 bcm_field_hint_t *hint) 10159 { 10160 return bcm_esw_field_hints_get(unit, hint_id, hint); 10161 } 10162 #endif 10163 10164 #ifdef BCM_TOMAHAWK3_SUPPORT 10165 int 10166 bcm_tomahawk3_field_init( 10167 int unit) 10168 { 10169 return bcm_esw_field_init(unit); 10170 } 10171 #endif 10172 10173 int 10174 bcm_tomahawk3_field_internal_to_bcm_action_map( 10175 int unit, 10176 uint32 flags, 10177 int internal_action, 10178 uint32 bcm_action_size, 10179 bcm_field_internal_to_bcm_map_t *bcm_action_stage, 10180 uint32 *bcm_action_size_actual) 10181 { 10182 return BCM_E_UNAVAIL; 10183 } 10184 10185 #ifdef BCM_TOMAHAWK3_SUPPORT 10186 int 10187 bcm_tomahawk3_field_macsec_DstMacRange_get( 10188 int unit, 10189 bcm_mac_t *lower_limit, 10190 bcm_mac_t *upper_limit) 10191 { 10192 return bcm_esw_field_macsec_DstMacRange_get(unit, lower_limit, upper_limit); 10193 } 10194 #endif 10195 10196 #ifdef BCM_TOMAHAWK3_SUPPORT 10197 int 10198 bcm_tomahawk3_field_macsec_DstMacRange_set( 10199 int unit, 10200 bcm_mac_t lower_limit, 10201 bcm_mac_t upper_limit) 10202 { 10203 return bcm_esw_field_macsec_DstMacRange_set(unit, lower_limit, upper_limit); 10204 } 10205 #endif 10206 10207 #ifdef BCM_TOMAHAWK3_SUPPORT 10208 int 10209 bcm_tomahawk3_field_oam_stat_action_add( 10210 int unit, 10211 bcm_field_entry_t entry, 10212 bcm_field_oam_stat_action_t *oam_stat_action) 10213 { 10214 return bcm_esw_field_oam_stat_action_add(unit, entry, oam_stat_action); 10215 } 10216 #endif 10217 10218 #ifdef BCM_TOMAHAWK3_SUPPORT 10219 int 10220 bcm_tomahawk3_field_oam_stat_action_delete( 10221 int unit, 10222 bcm_field_entry_t entry, 10223 bcm_field_oam_stat_action_t *oam_stat_action) 10224 { 10225 return bcm_esw_field_oam_stat_action_delete(unit, entry, oam_stat_action); 10226 } 10227 #endif 10228 10229 #ifdef BCM_TOMAHAWK3_SUPPORT 10230 int 10231 bcm_tomahawk3_field_oam_stat_action_delete_all( 10232 int unit, 10233 bcm_field_entry_t entry) 10234 { 10235 return bcm_esw_field_oam_stat_action_delete_all(unit, entry); 10236 } 10237 #endif 10238 10239 #ifdef BCM_TOMAHAWK3_SUPPORT 10240 int 10241 bcm_tomahawk3_field_oam_stat_action_get( 10242 int unit, 10243 bcm_field_entry_t entry, 10244 bcm_field_oam_stat_action_t *oam_stat_action) 10245 { 10246 return bcm_esw_field_oam_stat_action_get(unit, entry, oam_stat_action); 10247 } 10248 #endif 10249 10250 #ifdef BCM_TOMAHAWK3_SUPPORT 10251 int 10252 bcm_tomahawk3_field_oam_stat_action_get_all( 10253 int unit, 10254 bcm_field_entry_t entry, 10255 int oam_stat_max, 10256 bcm_field_oam_stat_action_t *oam_stat_action, 10257 int *oam_stat_count) 10258 { 10259 return bcm_esw_field_oam_stat_action_get_all(unit, entry, oam_stat_max, oam_stat_action, oam_stat_count); 10260 } 10261 #endif 10262 10263 int 10264 bcm_tomahawk3_field_presel_config_get( 10265 int unit, 10266 bcm_field_presel_t presel_id, 10267 bcm_field_presel_config_t *presel_config) 10268 { 10269 return BCM_E_UNAVAIL; 10270 } 10271 10272 int 10273 bcm_tomahawk3_field_presel_config_set( 10274 int unit, 10275 bcm_field_presel_t presel_id, 10276 bcm_field_presel_config_t *presel_config) 10277 { 10278 return BCM_E_UNAVAIL; 10279 } 10280 10281 #ifdef BCM_TOMAHAWK3_SUPPORT 10282 int 10283 bcm_tomahawk3_field_presel_create( 10284 int unit, 10285 bcm_field_presel_t *presel_id) 10286 { 10287 return bcm_esw_field_presel_create(unit, presel_id); 10288 } 10289 #endif 10290 10291 #ifdef BCM_TOMAHAWK3_SUPPORT 10292 int 10293 bcm_tomahawk3_field_presel_create_id( 10294 int unit, 10295 bcm_field_presel_t presel_id) 10296 { 10297 return bcm_esw_field_presel_create_id(unit, presel_id); 10298 } 10299 #endif 10300 10301 #ifdef BCM_TOMAHAWK3_SUPPORT 10302 int 10303 bcm_tomahawk3_field_presel_create_stage_id( 10304 int unit, 10305 bcm_field_stage_t stage, 10306 bcm_field_presel_t presel_id) 10307 { 10308 return bcm_esw_field_presel_create_stage_id(unit, stage, presel_id); 10309 } 10310 #endif 10311 10312 #ifdef BCM_TOMAHAWK3_SUPPORT 10313 int 10314 bcm_tomahawk3_field_presel_destroy( 10315 int unit, 10316 bcm_field_presel_t presel_id) 10317 { 10318 return bcm_esw_field_presel_destroy(unit, presel_id); 10319 } 10320 #endif 10321 10322 int 10323 bcm_tomahawk3_field_presel_get( 10324 int unit, 10325 uint32 flags, 10326 bcm_field_presel_entry_id_t *entry_id, 10327 bcm_field_presel_entry_data_t *entry_data) 10328 { 10329 return BCM_E_UNAVAIL; 10330 } 10331 10332 int 10333 bcm_tomahawk3_field_presel_set( 10334 int unit, 10335 uint32 flags, 10336 bcm_field_presel_entry_id_t *entry_id, 10337 bcm_field_presel_entry_data_t *entry_data) 10338 { 10339 return BCM_E_UNAVAIL; 10340 } 10341 10342 #ifdef BCM_TOMAHAWK3_SUPPORT 10343 int 10344 bcm_tomahawk3_field_qset_data_qualifier_add( 10345 int unit, 10346 bcm_field_qset_t *qset, 10347 int qual_id) 10348 { 10349 return bcm_esw_field_qset_data_qualifier_add(unit, qset, qual_id); 10350 } 10351 #endif 10352 10353 #ifdef BCM_TOMAHAWK3_SUPPORT 10354 int 10355 bcm_tomahawk3_field_qset_data_qualifier_delete( 10356 int unit, 10357 bcm_field_qset_t *qset, 10358 int qual_id) 10359 { 10360 return bcm_esw_field_qset_data_qualifier_delete(unit, qset, qual_id); 10361 } 10362 #endif 10363 10364 #ifdef BCM_TOMAHAWK3_SUPPORT 10365 int 10366 bcm_tomahawk3_field_qset_data_qualifier_get( 10367 int unit, 10368 bcm_field_qset_t qset, 10369 int qual_max, 10370 int *qual_arr, 10371 int *qual_count) 10372 { 10373 return bcm_esw_field_qset_data_qualifier_get(unit, qset, qual_max, qual_arr, qual_count); 10374 } 10375 #endif 10376 10377 #ifdef BCM_TOMAHAWK3_SUPPORT 10378 int 10379 bcm_tomahawk3_field_qset_id_multi_delete( 10380 int unit, 10381 bcm_field_qualify_t qualifier, 10382 int num_objects, 10383 int *object_list, 10384 bcm_field_qset_t *qset) 10385 { 10386 return bcm_esw_field_qset_id_multi_delete(unit, qualifier, num_objects, object_list, qset); 10387 } 10388 #endif 10389 10390 #ifdef BCM_TOMAHAWK3_SUPPORT 10391 int 10392 bcm_tomahawk3_field_qset_id_multi_get( 10393 int unit, 10394 bcm_field_qset_t qset, 10395 bcm_field_qualify_t qualifier, 10396 int max_objects, 10397 int *object_list, 10398 int *count_objects) 10399 { 10400 return bcm_esw_field_qset_id_multi_get(unit, qset, qualifier, max_objects, object_list, count_objects); 10401 } 10402 #endif 10403 10404 #ifdef BCM_TOMAHAWK3_SUPPORT 10405 int 10406 bcm_tomahawk3_field_qset_id_multi_set( 10407 int unit, 10408 bcm_field_qualify_t qualifier, 10409 int num_objects, 10410 int *object_list, 10411 bcm_field_qset_t *qset) 10412 { 10413 return bcm_esw_field_qset_id_multi_set(unit, qualifier, num_objects, object_list, qset); 10414 } 10415 #endif 10416 10417 #ifdef BCM_TOMAHAWK3_SUPPORT 10418 int 10419 bcm_tomahawk3_field_qualifier_create( 10420 int unit, 10421 uint32 flags, 10422 bcm_field_qualifier_info_create_t *qual_info, 10423 bcm_field_qualify_t *qual_id) 10424 { 10425 return bcm_esw_field_qualifier_create(unit, flags, qual_info, qual_id); 10426 } 10427 #endif 10428 10429 #ifdef BCM_TOMAHAWK3_SUPPORT 10430 int 10431 bcm_tomahawk3_field_qualifier_delete( 10432 int unit, 10433 bcm_field_entry_t entry, 10434 bcm_field_qualify_t qual_id) 10435 { 10436 return bcm_esw_field_qualifier_delete(unit, entry, qual_id); 10437 } 10438 #endif 10439 10440 #ifdef BCM_TOMAHAWK3_SUPPORT 10441 int 10442 bcm_tomahawk3_field_qualifier_destroy( 10443 int unit, 10444 bcm_field_qualify_t qual_id) 10445 { 10446 return bcm_esw_field_qualifier_destroy(unit, qual_id); 10447 } 10448 #endif 10449 10450 #ifdef BCM_TOMAHAWK3_SUPPORT 10451 int 10452 bcm_tomahawk3_field_qualifier_info_get( 10453 int unit, 10454 bcm_field_qualify_t qual_id, 10455 bcm_field_stage_t stage, 10456 bcm_field_qualifier_info_get_t *qual_info) 10457 { 10458 return bcm_esw_field_qualifier_info_get(unit, qual_id, stage, qual_info); 10459 } 10460 #endif 10461 10462 #ifdef BCM_TOMAHAWK3_SUPPORT 10463 int 10464 bcm_tomahawk3_field_qualifier_value_map( 10465 int unit, 10466 bcm_field_stage_t stage, 10467 bcm_field_qualify_t bcm_qual, 10468 uint32 bcm_value[BCM_FIELD_QUAL_WIDTH_IN_WORDS], 10469 uint32 hw_value[BCM_FIELD_QUAL_WIDTH_IN_WORDS]) 10470 { 10471 return bcm_esw_field_qualifier_value_map(unit, stage, bcm_qual, bcm_value, hw_value); 10472 } 10473 #endif 10474 10475 int 10476 bcm_tomahawk3_field_qualify_AppType( 10477 int unit, 10478 bcm_field_entry_t entry, 10479 bcm_field_AppType_t type) 10480 { 10481 return BCM_E_UNAVAIL; 10482 } 10483 10484 int 10485 bcm_tomahawk3_field_qualify_AppType_get( 10486 int unit, 10487 bcm_field_entry_t entry, 10488 bcm_field_AppType_t *type) 10489 { 10490 return BCM_E_UNAVAIL; 10491 } 10492 10493 #ifdef BCM_TOMAHAWK3_SUPPORT 10494 int 10495 bcm_tomahawk3_field_qualify_ArpOpcode( 10496 int unit, 10497 bcm_field_entry_t entry, 10498 bcm_field_ArpOpcode_t data) 10499 { 10500 return bcm_esw_field_qualify_ArpOpcode(unit, entry, data); 10501 } 10502 #endif 10503 10504 #ifdef BCM_TOMAHAWK3_SUPPORT 10505 int 10506 bcm_tomahawk3_field_qualify_ArpOpcode_get( 10507 int unit, 10508 bcm_field_entry_t entry, 10509 bcm_field_ArpOpcode_t *data) 10510 { 10511 return bcm_esw_field_qualify_ArpOpcode_get(unit, entry, data); 10512 } 10513 #endif 10514 10515 #ifdef BCM_TOMAHAWK3_SUPPORT 10516 int 10517 bcm_tomahawk3_field_qualify_ArpSenderIp4( 10518 int unit, 10519 bcm_field_entry_t entry, 10520 uint32 data, 10521 uint32 mask) 10522 { 10523 return bcm_esw_field_qualify_ArpSenderIp4(unit, entry, data, mask); 10524 } 10525 #endif 10526 10527 #ifdef BCM_TOMAHAWK3_SUPPORT 10528 int 10529 bcm_tomahawk3_field_qualify_ArpSenderIp4_get( 10530 int unit, 10531 bcm_field_entry_t entry, 10532 uint32 *data, 10533 uint32 *mask) 10534 { 10535 return bcm_esw_field_qualify_ArpSenderIp4_get(unit, entry, data, mask); 10536 } 10537 #endif 10538 10539 #ifdef BCM_TOMAHAWK3_SUPPORT 10540 int 10541 bcm_tomahawk3_field_qualify_ArpTargetIp4( 10542 int unit, 10543 bcm_field_entry_t entry, 10544 uint32 data, 10545 uint32 mask) 10546 { 10547 return bcm_esw_field_qualify_ArpTargetIp4(unit, entry, data, mask); 10548 } 10549 #endif 10550 10551 #ifdef BCM_TOMAHAWK3_SUPPORT 10552 int 10553 bcm_tomahawk3_field_qualify_ArpTargetIp4_get( 10554 int unit, 10555 bcm_field_entry_t entry, 10556 uint32 *data, 10557 uint32 *mask) 10558 { 10559 return bcm_esw_field_qualify_ArpTargetIp4_get(unit, entry, data, mask); 10560 } 10561 #endif 10562 10563 #ifdef BCM_TOMAHAWK3_SUPPORT 10564 int 10565 bcm_tomahawk3_field_qualify_BfdGoodPkt( 10566 int unit, 10567 bcm_field_entry_t entry, 10568 uint8 data, 10569 uint8 mask) 10570 { 10571 return bcm_esw_field_qualify_BfdGoodPkt(unit, entry, data, mask); 10572 } 10573 #endif 10574 10575 #ifdef BCM_TOMAHAWK3_SUPPORT 10576 int 10577 bcm_tomahawk3_field_qualify_BfdGoodPkt_get( 10578 int unit, 10579 bcm_field_entry_t entry, 10580 uint8 *data, 10581 uint8 *mask) 10582 { 10583 return bcm_esw_field_qualify_BfdGoodPkt_get(unit, entry, data, mask); 10584 } 10585 #endif 10586 10587 #ifdef BCM_TOMAHAWK3_SUPPORT 10588 int 10589 bcm_tomahawk3_field_qualify_BfdPktVersionOne( 10590 int unit, 10591 bcm_field_entry_t entry, 10592 uint8 data, 10593 uint8 mask) 10594 { 10595 return bcm_esw_field_qualify_BfdPktVersionOne(unit, entry, data, mask); 10596 } 10597 #endif 10598 10599 #ifdef BCM_TOMAHAWK3_SUPPORT 10600 int 10601 bcm_tomahawk3_field_qualify_BfdPktVersionOne_get( 10602 int unit, 10603 bcm_field_entry_t entry, 10604 uint8 *data, 10605 uint8 *mask) 10606 { 10607 return bcm_esw_field_qualify_BfdPktVersionOne_get(unit, entry, data, mask); 10608 } 10609 #endif 10610 10611 #ifdef BCM_TOMAHAWK3_SUPPORT 10612 int 10613 bcm_tomahawk3_field_qualify_BfdPktWithDstIpLoopbackAddr( 10614 int unit, 10615 bcm_field_entry_t entry, 10616 uint8 data, 10617 uint8 mask) 10618 { 10619 return bcm_esw_field_qualify_BfdPktWithDstIpLoopbackAddr(unit, entry, data, mask); 10620 } 10621 #endif 10622 10623 #ifdef BCM_TOMAHAWK3_SUPPORT 10624 int 10625 bcm_tomahawk3_field_qualify_BfdPktWithDstIpLoopbackAddr_get( 10626 int unit, 10627 bcm_field_entry_t entry, 10628 uint8 *data, 10629 uint8 *mask) 10630 { 10631 return bcm_esw_field_qualify_BfdPktWithDstIpLoopbackAddr_get(unit, entry, data, mask); 10632 } 10633 #endif 10634 10635 #ifdef BCM_TOMAHAWK3_SUPPORT 10636 int 10637 bcm_tomahawk3_field_qualify_BfdYourDiscriminator( 10638 int unit, 10639 bcm_field_entry_t entry, 10640 uint32 data, 10641 uint32 mask) 10642 { 10643 return bcm_esw_field_qualify_BfdYourDiscriminator(unit, entry, data, mask); 10644 } 10645 #endif 10646 10647 #ifdef BCM_TOMAHAWK3_SUPPORT 10648 int 10649 bcm_tomahawk3_field_qualify_BfdYourDiscriminator_get( 10650 int unit, 10651 bcm_field_entry_t entry, 10652 uint32 *data, 10653 uint32 *mask) 10654 { 10655 return bcm_esw_field_qualify_BfdYourDiscriminator_get(unit, entry, data, mask); 10656 } 10657 #endif 10658 10659 #ifdef BCM_TOMAHAWK3_SUPPORT 10660 int 10661 bcm_tomahawk3_field_qualify_BypassFilter( 10662 int unit, 10663 bcm_field_entry_t entry, 10664 uint8 data, 10665 uint8 mask) 10666 { 10667 return bcm_esw_field_qualify_BypassFilter(unit, entry, data, mask); 10668 } 10669 #endif 10670 10671 #ifdef BCM_TOMAHAWK3_SUPPORT 10672 int 10673 bcm_tomahawk3_field_qualify_BypassFilter32( 10674 int unit, 10675 bcm_field_entry_t entry, 10676 uint32 data, 10677 uint32 mask) 10678 { 10679 return bcm_esw_field_qualify_BypassFilter32(unit, entry, data, mask); 10680 } 10681 #endif 10682 10683 #ifdef BCM_TOMAHAWK3_SUPPORT 10684 int 10685 bcm_tomahawk3_field_qualify_BypassFilter32_get( 10686 int unit, 10687 bcm_field_entry_t entry, 10688 uint32 *data, 10689 uint32 *mask) 10690 { 10691 return bcm_esw_field_qualify_BypassFilter32_get(unit, entry, data, mask); 10692 } 10693 #endif 10694 10695 #ifdef BCM_TOMAHAWK3_SUPPORT 10696 int 10697 bcm_tomahawk3_field_qualify_BypassFilter_get( 10698 int unit, 10699 bcm_field_entry_t entry, 10700 uint8 *data, 10701 uint8 *mask) 10702 { 10703 return bcm_esw_field_qualify_BypassFilter_get(unit, entry, data, mask); 10704 } 10705 #endif 10706 10707 int 10708 bcm_tomahawk3_field_qualify_BypassSrcMacFilter( 10709 int unit, 10710 bcm_field_entry_t entry, 10711 uint8 data, 10712 uint8 mask) 10713 { 10714 return BCM_E_UNAVAIL; 10715 } 10716 10717 int 10718 bcm_tomahawk3_field_qualify_BypassSrcMacFilter_get( 10719 int unit, 10720 bcm_field_entry_t entry, 10721 uint8 *data, 10722 uint8 *mask) 10723 { 10724 return BCM_E_UNAVAIL; 10725 } 10726 10727 #ifdef BCM_TOMAHAWK3_SUPPORT 10728 int 10729 bcm_tomahawk3_field_qualify_CapwapHdrRid( 10730 int unit, 10731 bcm_field_entry_t entry, 10732 uint8 data, 10733 uint8 mask) 10734 { 10735 return bcm_esw_field_qualify_CapwapHdrRid(unit, entry, data, mask); 10736 } 10737 #endif 10738 10739 #ifdef BCM_TOMAHAWK3_SUPPORT 10740 int 10741 bcm_tomahawk3_field_qualify_CapwapHdrRid_get( 10742 int unit, 10743 bcm_field_entry_t entry, 10744 uint8 *data, 10745 uint8 *mask) 10746 { 10747 return bcm_esw_field_qualify_CapwapHdrRid_get(unit, entry, data, mask); 10748 } 10749 #endif 10750 10751 #ifdef BCM_TOMAHAWK3_SUPPORT 10752 int 10753 bcm_tomahawk3_field_qualify_CapwapHdrType( 10754 int unit, 10755 bcm_field_entry_t entry, 10756 uint8 data, 10757 uint8 mask) 10758 { 10759 return bcm_esw_field_qualify_CapwapHdrType(unit, entry, data, mask); 10760 } 10761 #endif 10762 10763 #ifdef BCM_TOMAHAWK3_SUPPORT 10764 int 10765 bcm_tomahawk3_field_qualify_CapwapHdrType_get( 10766 int unit, 10767 bcm_field_entry_t entry, 10768 uint8 *data, 10769 uint8 *mask) 10770 { 10771 return bcm_esw_field_qualify_CapwapHdrType_get(unit, entry, data, mask); 10772 } 10773 #endif 10774 10775 #ifdef BCM_TOMAHAWK3_SUPPORT 10776 int 10777 bcm_tomahawk3_field_qualify_CapwapPayloadDip( 10778 int unit, 10779 bcm_field_entry_t entry, 10780 bcm_ip_t data, 10781 bcm_ip_t mask) 10782 { 10783 return bcm_esw_field_qualify_CapwapPayloadDip(unit, entry, data, mask); 10784 } 10785 #endif 10786 10787 #ifdef BCM_TOMAHAWK3_SUPPORT 10788 int 10789 bcm_tomahawk3_field_qualify_CapwapPayloadDip6( 10790 int unit, 10791 bcm_field_entry_t entry, 10792 bcm_ip6_t data, 10793 bcm_ip6_t mask) 10794 { 10795 return bcm_esw_field_qualify_CapwapPayloadDip6(unit, entry, data, mask); 10796 } 10797 #endif 10798 10799 #ifdef BCM_TOMAHAWK3_SUPPORT 10800 int 10801 bcm_tomahawk3_field_qualify_CapwapPayloadDip6_get( 10802 int unit, 10803 bcm_field_entry_t entry, 10804 bcm_ip6_t *data, 10805 bcm_ip6_t *mask) 10806 { 10807 return bcm_esw_field_qualify_CapwapPayloadDip6_get(unit, entry, data, mask); 10808 } 10809 #endif 10810 10811 #ifdef BCM_TOMAHAWK3_SUPPORT 10812 int 10813 bcm_tomahawk3_field_qualify_CapwapPayloadDip_get( 10814 int unit, 10815 bcm_field_entry_t entry, 10816 bcm_ip_t *data, 10817 bcm_ip_t *mask) 10818 { 10819 return bcm_esw_field_qualify_CapwapPayloadDip_get(unit, entry, data, mask); 10820 } 10821 #endif 10822 10823 #ifdef BCM_TOMAHAWK3_SUPPORT 10824 int 10825 bcm_tomahawk3_field_qualify_CapwapPayloadDstMac( 10826 int unit, 10827 bcm_field_entry_t entry, 10828 bcm_mac_t data, 10829 bcm_mac_t mask) 10830 { 10831 return bcm_esw_field_qualify_CapwapPayloadDstMac(unit, entry, data, mask); 10832 } 10833 #endif 10834 10835 #ifdef BCM_TOMAHAWK3_SUPPORT 10836 int 10837 bcm_tomahawk3_field_qualify_CapwapPayloadDstMac_get( 10838 int unit, 10839 bcm_field_entry_t entry, 10840 bcm_mac_t *data, 10841 bcm_mac_t *mask) 10842 { 10843 return bcm_esw_field_qualify_CapwapPayloadDstMac_get(unit, entry, data, mask); 10844 } 10845 #endif 10846 10847 #ifdef BCM_TOMAHAWK3_SUPPORT 10848 int 10849 bcm_tomahawk3_field_qualify_CapwapPayloadEtherType( 10850 int unit, 10851 bcm_field_entry_t entry, 10852 uint16 data, 10853 uint16 mask) 10854 { 10855 return bcm_esw_field_qualify_CapwapPayloadEtherType(unit, entry, data, mask); 10856 } 10857 #endif 10858 10859 #ifdef BCM_TOMAHAWK3_SUPPORT 10860 int 10861 bcm_tomahawk3_field_qualify_CapwapPayloadEtherType_get( 10862 int unit, 10863 bcm_field_entry_t entry, 10864 uint16 *data, 10865 uint16 *mask) 10866 { 10867 return bcm_esw_field_qualify_CapwapPayloadEtherType_get(unit, entry, data, mask); 10868 } 10869 #endif 10870 10871 #ifdef BCM_TOMAHAWK3_SUPPORT 10872 int 10873 bcm_tomahawk3_field_qualify_CapwapPayloadInnerVlan( 10874 int unit, 10875 bcm_field_entry_t entry, 10876 bcm_vlan_t data, 10877 bcm_vlan_t mask) 10878 { 10879 return bcm_esw_field_qualify_CapwapPayloadInnerVlan(unit, entry, data, mask); 10880 } 10881 #endif 10882 10883 #ifdef BCM_TOMAHAWK3_SUPPORT 10884 int 10885 bcm_tomahawk3_field_qualify_CapwapPayloadInnerVlanCfi( 10886 int unit, 10887 bcm_field_entry_t entry, 10888 uint8 data, 10889 uint8 mask) 10890 { 10891 return bcm_esw_field_qualify_CapwapPayloadInnerVlanCfi(unit, entry, data, mask); 10892 } 10893 #endif 10894 10895 #ifdef BCM_TOMAHAWK3_SUPPORT 10896 int 10897 bcm_tomahawk3_field_qualify_CapwapPayloadInnerVlanCfi_get( 10898 int unit, 10899 bcm_field_entry_t entry, 10900 uint8 *data, 10901 uint8 *mask) 10902 { 10903 return bcm_esw_field_qualify_CapwapPayloadInnerVlanCfi_get(unit, entry, data, mask); 10904 } 10905 #endif 10906 10907 #ifdef BCM_TOMAHAWK3_SUPPORT 10908 int 10909 bcm_tomahawk3_field_qualify_CapwapPayloadInnerVlanId( 10910 int unit, 10911 bcm_field_entry_t entry, 10912 bcm_vlan_t data, 10913 bcm_vlan_t mask) 10914 { 10915 return bcm_esw_field_qualify_CapwapPayloadInnerVlanId(unit, entry, data, mask); 10916 } 10917 #endif 10918 10919 #ifdef BCM_TOMAHAWK3_SUPPORT 10920 int 10921 bcm_tomahawk3_field_qualify_CapwapPayloadInnerVlanId_get( 10922 int unit, 10923 bcm_field_entry_t entry, 10924 bcm_vlan_t *data, 10925 bcm_vlan_t *mask) 10926 { 10927 return bcm_esw_field_qualify_CapwapPayloadInnerVlanId_get(unit, entry, data, mask); 10928 } 10929 #endif 10930 10931 #ifdef BCM_TOMAHAWK3_SUPPORT 10932 int 10933 bcm_tomahawk3_field_qualify_CapwapPayloadInnerVlanPri( 10934 int unit, 10935 bcm_field_entry_t entry, 10936 uint8 data, 10937 uint8 mask) 10938 { 10939 return bcm_esw_field_qualify_CapwapPayloadInnerVlanPri(unit, entry, data, mask); 10940 } 10941 #endif 10942 10943 #ifdef BCM_TOMAHAWK3_SUPPORT 10944 int 10945 bcm_tomahawk3_field_qualify_CapwapPayloadInnerVlanPri_get( 10946 int unit, 10947 bcm_field_entry_t entry, 10948 uint8 *data, 10949 uint8 *mask) 10950 { 10951 return bcm_esw_field_qualify_CapwapPayloadInnerVlanPri_get(unit, entry, data, mask); 10952 } 10953 #endif 10954 10955 #ifdef BCM_TOMAHAWK3_SUPPORT 10956 int 10957 bcm_tomahawk3_field_qualify_CapwapPayloadInnerVlan_get( 10958 int unit, 10959 bcm_field_entry_t entry, 10960 bcm_vlan_t *data, 10961 bcm_vlan_t *mask) 10962 { 10963 return bcm_esw_field_qualify_CapwapPayloadInnerVlan_get(unit, entry, data, mask); 10964 } 10965 #endif 10966 10967 #ifdef BCM_TOMAHAWK3_SUPPORT 10968 int 10969 bcm_tomahawk3_field_qualify_CapwapPayloadIpProtocol( 10970 int unit, 10971 bcm_field_entry_t entry, 10972 uint8 data, 10973 uint8 mask) 10974 { 10975 return bcm_esw_field_qualify_CapwapPayloadIpProtocol(unit, entry, data, mask); 10976 } 10977 #endif 10978 10979 #ifdef BCM_TOMAHAWK3_SUPPORT 10980 int 10981 bcm_tomahawk3_field_qualify_CapwapPayloadIpProtocol_get( 10982 int unit, 10983 bcm_field_entry_t entry, 10984 uint8 *data, 10985 uint8 *mask) 10986 { 10987 return bcm_esw_field_qualify_CapwapPayloadIpProtocol_get(unit, entry, data, mask); 10988 } 10989 #endif 10990 10991 #ifdef BCM_TOMAHAWK3_SUPPORT 10992 int 10993 bcm_tomahawk3_field_qualify_CapwapPayloadL3HdrParseable( 10994 int unit, 10995 bcm_field_entry_t entry, 10996 uint8 data, 10997 uint8 mask) 10998 { 10999 return bcm_esw_field_qualify_CapwapPayloadL3HdrParseable(unit, entry, data, mask); 11000 } 11001 #endif 11002 11003 #ifdef BCM_TOMAHAWK3_SUPPORT 11004 int 11005 bcm_tomahawk3_field_qualify_CapwapPayloadL3HdrParseable_get( 11006 int unit, 11007 bcm_field_entry_t entry, 11008 uint8 *data, 11009 uint8 *mask) 11010 { 11011 return bcm_esw_field_qualify_CapwapPayloadL3HdrParseable_get(unit, entry, data, mask); 11012 } 11013 #endif 11014 11015 #ifdef BCM_TOMAHAWK3_SUPPORT 11016 int 11017 bcm_tomahawk3_field_qualify_CapwapPayloadL4DstPort( 11018 int unit, 11019 bcm_field_entry_t entry, 11020 bcm_l4_port_t data, 11021 bcm_l4_port_t mask) 11022 { 11023 return bcm_esw_field_qualify_CapwapPayloadL4DstPort(unit, entry, data, mask); 11024 } 11025 #endif 11026 11027 #ifdef BCM_TOMAHAWK3_SUPPORT 11028 int 11029 bcm_tomahawk3_field_qualify_CapwapPayloadL4DstPort_get( 11030 int unit, 11031 bcm_field_entry_t entry, 11032 bcm_l4_port_t *data, 11033 bcm_l4_port_t *mask) 11034 { 11035 return bcm_esw_field_qualify_CapwapPayloadL4DstPort_get(unit, entry, data, mask); 11036 } 11037 #endif 11038 11039 #ifdef BCM_TOMAHAWK3_SUPPORT 11040 int 11041 bcm_tomahawk3_field_qualify_CapwapPayloadL4HdrParseable( 11042 int unit, 11043 bcm_field_entry_t entry, 11044 uint8 data, 11045 uint8 mask) 11046 { 11047 return bcm_esw_field_qualify_CapwapPayloadL4HdrParseable(unit, entry, data, mask); 11048 } 11049 #endif 11050 11051 #ifdef BCM_TOMAHAWK3_SUPPORT 11052 int 11053 bcm_tomahawk3_field_qualify_CapwapPayloadL4HdrParseable_get( 11054 int unit, 11055 bcm_field_entry_t entry, 11056 uint8 *data, 11057 uint8 *mask) 11058 { 11059 return bcm_esw_field_qualify_CapwapPayloadL4HdrParseable_get(unit, entry, data, mask); 11060 } 11061 #endif 11062 11063 #ifdef BCM_TOMAHAWK3_SUPPORT 11064 int 11065 bcm_tomahawk3_field_qualify_CapwapPayloadL4SrcPort( 11066 int unit, 11067 bcm_field_entry_t entry, 11068 bcm_l4_port_t data, 11069 bcm_l4_port_t mask) 11070 { 11071 return bcm_esw_field_qualify_CapwapPayloadL4SrcPort(unit, entry, data, mask); 11072 } 11073 #endif 11074 11075 #ifdef BCM_TOMAHAWK3_SUPPORT 11076 int 11077 bcm_tomahawk3_field_qualify_CapwapPayloadL4SrcPort_get( 11078 int unit, 11079 bcm_field_entry_t entry, 11080 bcm_l4_port_t *data, 11081 bcm_l4_port_t *mask) 11082 { 11083 return bcm_esw_field_qualify_CapwapPayloadL4SrcPort_get(unit, entry, data, mask); 11084 } 11085 #endif 11086 11087 #ifdef BCM_TOMAHAWK3_SUPPORT 11088 int 11089 bcm_tomahawk3_field_qualify_CapwapPayloadOuterVlan( 11090 int unit, 11091 bcm_field_entry_t entry, 11092 bcm_vlan_t data, 11093 bcm_vlan_t mask) 11094 { 11095 return bcm_esw_field_qualify_CapwapPayloadOuterVlan(unit, entry, data, mask); 11096 } 11097 #endif 11098 11099 #ifdef BCM_TOMAHAWK3_SUPPORT 11100 int 11101 bcm_tomahawk3_field_qualify_CapwapPayloadOuterVlanCfi( 11102 int unit, 11103 bcm_field_entry_t entry, 11104 uint8 data, 11105 uint8 mask) 11106 { 11107 return bcm_esw_field_qualify_CapwapPayloadOuterVlanCfi(unit, entry, data, mask); 11108 } 11109 #endif 11110 11111 #ifdef BCM_TOMAHAWK3_SUPPORT 11112 int 11113 bcm_tomahawk3_field_qualify_CapwapPayloadOuterVlanCfi_get( 11114 int unit, 11115 bcm_field_entry_t entry, 11116 uint8 *data, 11117 uint8 *mask) 11118 { 11119 return bcm_esw_field_qualify_CapwapPayloadOuterVlanCfi_get(unit, entry, data, mask); 11120 } 11121 #endif 11122 11123 #ifdef BCM_TOMAHAWK3_SUPPORT 11124 int 11125 bcm_tomahawk3_field_qualify_CapwapPayloadOuterVlanId( 11126 int unit, 11127 bcm_field_entry_t entry, 11128 bcm_vlan_t data, 11129 bcm_vlan_t mask) 11130 { 11131 return bcm_esw_field_qualify_CapwapPayloadOuterVlanId(unit, entry, data, mask); 11132 } 11133 #endif 11134 11135 #ifdef BCM_TOMAHAWK3_SUPPORT 11136 int 11137 bcm_tomahawk3_field_qualify_CapwapPayloadOuterVlanId_get( 11138 int unit, 11139 bcm_field_entry_t entry, 11140 bcm_vlan_t *data, 11141 bcm_vlan_t *mask) 11142 { 11143 return bcm_esw_field_qualify_CapwapPayloadOuterVlanId_get(unit, entry, data, mask); 11144 } 11145 #endif 11146 11147 #ifdef BCM_TOMAHAWK3_SUPPORT 11148 int 11149 bcm_tomahawk3_field_qualify_CapwapPayloadOuterVlanPri( 11150 int unit, 11151 bcm_field_entry_t entry, 11152 uint8 data, 11153 uint8 mask) 11154 { 11155 return bcm_esw_field_qualify_CapwapPayloadOuterVlanPri(unit, entry, data, mask); 11156 } 11157 #endif 11158 11159 #ifdef BCM_TOMAHAWK3_SUPPORT 11160 int 11161 bcm_tomahawk3_field_qualify_CapwapPayloadOuterVlanPri_get( 11162 int unit, 11163 bcm_field_entry_t entry, 11164 uint8 *data, 11165 uint8 *mask) 11166 { 11167 return bcm_esw_field_qualify_CapwapPayloadOuterVlanPri_get(unit, entry, data, mask); 11168 } 11169 #endif 11170 11171 #ifdef BCM_TOMAHAWK3_SUPPORT 11172 int 11173 bcm_tomahawk3_field_qualify_CapwapPayloadOuterVlan_get( 11174 int unit, 11175 bcm_field_entry_t entry, 11176 bcm_vlan_t *data, 11177 bcm_vlan_t *mask) 11178 { 11179 return bcm_esw_field_qualify_CapwapPayloadOuterVlan_get(unit, entry, data, mask); 11180 } 11181 #endif 11182 11183 #ifdef BCM_TOMAHAWK3_SUPPORT 11184 int 11185 bcm_tomahawk3_field_qualify_CapwapPayloadSOF( 11186 int unit, 11187 bcm_field_entry_t entry, 11188 uint8 data, 11189 uint8 mask) 11190 { 11191 return bcm_esw_field_qualify_CapwapPayloadSOF(unit, entry, data, mask); 11192 } 11193 #endif 11194 11195 #ifdef BCM_TOMAHAWK3_SUPPORT 11196 int 11197 bcm_tomahawk3_field_qualify_CapwapPayloadSOF_get( 11198 int unit, 11199 bcm_field_entry_t entry, 11200 uint8 *data, 11201 uint8 *mask) 11202 { 11203 return bcm_esw_field_qualify_CapwapPayloadSOF_get(unit, entry, data, mask); 11204 } 11205 #endif 11206 11207 #ifdef BCM_TOMAHAWK3_SUPPORT 11208 int 11209 bcm_tomahawk3_field_qualify_CapwapPayloadSip( 11210 int unit, 11211 bcm_field_entry_t entry, 11212 bcm_ip_t data, 11213 bcm_ip_t mask) 11214 { 11215 return bcm_esw_field_qualify_CapwapPayloadSip(unit, entry, data, mask); 11216 } 11217 #endif 11218 11219 #ifdef BCM_TOMAHAWK3_SUPPORT 11220 int 11221 bcm_tomahawk3_field_qualify_CapwapPayloadSip6( 11222 int unit, 11223 bcm_field_entry_t entry, 11224 bcm_ip6_t data, 11225 bcm_ip6_t mask) 11226 { 11227 return bcm_esw_field_qualify_CapwapPayloadSip6(unit, entry, data, mask); 11228 } 11229 #endif 11230 11231 #ifdef BCM_TOMAHAWK3_SUPPORT 11232 int 11233 bcm_tomahawk3_field_qualify_CapwapPayloadSip6_get( 11234 int unit, 11235 bcm_field_entry_t entry, 11236 bcm_ip6_t *data, 11237 bcm_ip6_t *mask) 11238 { 11239 return bcm_esw_field_qualify_CapwapPayloadSip6_get(unit, entry, data, mask); 11240 } 11241 #endif 11242 11243 #ifdef BCM_TOMAHAWK3_SUPPORT 11244 int 11245 bcm_tomahawk3_field_qualify_CapwapPayloadSip_get( 11246 int unit, 11247 bcm_field_entry_t entry, 11248 bcm_ip_t *data, 11249 bcm_ip_t *mask) 11250 { 11251 return bcm_esw_field_qualify_CapwapPayloadSip_get(unit, entry, data, mask); 11252 } 11253 #endif 11254 11255 #ifdef BCM_TOMAHAWK3_SUPPORT 11256 int 11257 bcm_tomahawk3_field_qualify_CapwapPayloadSrcMac( 11258 int unit, 11259 bcm_field_entry_t entry, 11260 bcm_mac_t data, 11261 bcm_mac_t mask) 11262 { 11263 return bcm_esw_field_qualify_CapwapPayloadSrcMac(unit, entry, data, mask); 11264 } 11265 #endif 11266 11267 #ifdef BCM_TOMAHAWK3_SUPPORT 11268 int 11269 bcm_tomahawk3_field_qualify_CapwapPayloadSrcMac_get( 11270 int unit, 11271 bcm_field_entry_t entry, 11272 bcm_mac_t *data, 11273 bcm_mac_t *mask) 11274 { 11275 return bcm_esw_field_qualify_CapwapPayloadSrcMac_get(unit, entry, data, mask); 11276 } 11277 #endif 11278 11279 #ifdef BCM_TOMAHAWK3_SUPPORT 11280 int 11281 bcm_tomahawk3_field_qualify_CapwapPayloadTos( 11282 int unit, 11283 bcm_field_entry_t entry, 11284 uint8 data, 11285 uint8 mask) 11286 { 11287 return bcm_esw_field_qualify_CapwapPayloadTos(unit, entry, data, mask); 11288 } 11289 #endif 11290 11291 #ifdef BCM_TOMAHAWK3_SUPPORT 11292 int 11293 bcm_tomahawk3_field_qualify_CapwapPayloadTos_get( 11294 int unit, 11295 bcm_field_entry_t entry, 11296 uint8 *data, 11297 uint8 *mask) 11298 { 11299 return bcm_esw_field_qualify_CapwapPayloadTos_get(unit, entry, data, mask); 11300 } 11301 #endif 11302 11303 #ifdef BCM_TOMAHAWK3_SUPPORT 11304 int 11305 bcm_tomahawk3_field_qualify_CapwapPayloadVlanFormat( 11306 int unit, 11307 bcm_field_entry_t entry, 11308 uint8 data, 11309 uint8 mask) 11310 { 11311 return bcm_esw_field_qualify_CapwapPayloadVlanFormat(unit, entry, data, mask); 11312 } 11313 #endif 11314 11315 #ifdef BCM_TOMAHAWK3_SUPPORT 11316 int 11317 bcm_tomahawk3_field_qualify_CapwapPayloadVlanFormat_get( 11318 int unit, 11319 bcm_field_entry_t entry, 11320 uint8 *data, 11321 uint8 *mask) 11322 { 11323 return bcm_esw_field_qualify_CapwapPayloadVlanFormat_get(unit, entry, data, mask); 11324 } 11325 #endif 11326 11327 #ifdef BCM_TOMAHAWK3_SUPPORT 11328 int 11329 bcm_tomahawk3_field_qualify_CascadedKeyValue( 11330 int unit, 11331 bcm_field_entry_t entry, 11332 uint32 data, 11333 uint32 mask) 11334 { 11335 return bcm_esw_field_qualify_CascadedKeyValue(unit, entry, data, mask); 11336 } 11337 #endif 11338 11339 #ifdef BCM_TOMAHAWK3_SUPPORT 11340 int 11341 bcm_tomahawk3_field_qualify_CascadedKeyValue_get( 11342 int unit, 11343 bcm_field_entry_t entry, 11344 uint32 *data, 11345 uint32 *mask) 11346 { 11347 return bcm_esw_field_qualify_CascadedKeyValue_get(unit, entry, data, mask); 11348 } 11349 #endif 11350 11351 int 11352 bcm_tomahawk3_field_qualify_ClassId( 11353 int unit, 11354 bcm_field_entry_t entry, 11355 uint32 data, 11356 uint32 mask) 11357 { 11358 return BCM_E_UNAVAIL; 11359 } 11360 11361 int 11362 bcm_tomahawk3_field_qualify_ClassId_get( 11363 int unit, 11364 bcm_field_entry_t entry, 11365 uint32 *data, 11366 uint32 *mask) 11367 { 11368 return BCM_E_UNAVAIL; 11369 } 11370 11371 #ifdef BCM_TOMAHAWK3_SUPPORT 11372 int 11373 bcm_tomahawk3_field_qualify_CnTag( 11374 int unit, 11375 bcm_field_entry_t entry, 11376 uint32 data, 11377 uint32 mask) 11378 { 11379 return bcm_esw_field_qualify_CnTag(unit, entry, data, mask); 11380 } 11381 #endif 11382 11383 #ifdef BCM_TOMAHAWK3_SUPPORT 11384 int 11385 bcm_tomahawk3_field_qualify_CnTagPresent( 11386 int unit, 11387 bcm_field_entry_t entry, 11388 uint8 data, 11389 uint8 mask) 11390 { 11391 return bcm_esw_field_qualify_CnTagPresent(unit, entry, data, mask); 11392 } 11393 #endif 11394 11395 #ifdef BCM_TOMAHAWK3_SUPPORT 11396 int 11397 bcm_tomahawk3_field_qualify_CnTagPresent_get( 11398 int unit, 11399 bcm_field_entry_t entry, 11400 uint8 *data, 11401 uint8 *mask) 11402 { 11403 return bcm_esw_field_qualify_CnTagPresent_get(unit, entry, data, mask); 11404 } 11405 #endif 11406 11407 #ifdef BCM_TOMAHAWK3_SUPPORT 11408 int 11409 bcm_tomahawk3_field_qualify_CnTag_get( 11410 int unit, 11411 bcm_field_entry_t entry, 11412 uint32 *data, 11413 uint32 *mask) 11414 { 11415 return bcm_esw_field_qualify_CnTag_get(unit, entry, data, mask); 11416 } 11417 #endif 11418 11419 #ifdef BCM_TOMAHAWK3_SUPPORT 11420 int 11421 bcm_tomahawk3_field_qualify_Color( 11422 int unit, 11423 bcm_field_entry_t entry, 11424 uint8 color) 11425 { 11426 return bcm_esw_field_qualify_Color(unit, entry, color); 11427 } 11428 #endif 11429 11430 #ifdef BCM_TOMAHAWK3_SUPPORT 11431 int 11432 bcm_tomahawk3_field_qualify_Color_get( 11433 int unit, 11434 bcm_field_entry_t entry, 11435 uint8 *color) 11436 { 11437 return bcm_esw_field_qualify_Color_get(unit, entry, color); 11438 } 11439 #endif 11440 11441 #ifdef BCM_TOMAHAWK3_SUPPORT 11442 int 11443 bcm_tomahawk3_field_qualify_Container( 11444 int unit, 11445 bcm_field_entry_t entry, 11446 uint64 data, 11447 uint64 mask) 11448 { 11449 return bcm_esw_field_qualify_Container(unit, entry, data, mask); 11450 } 11451 #endif 11452 11453 #ifdef BCM_TOMAHAWK3_SUPPORT 11454 int 11455 bcm_tomahawk3_field_qualify_Container_get( 11456 int unit, 11457 bcm_field_entry_t entry, 11458 uint64 *data, 11459 uint64 *mask) 11460 { 11461 return bcm_esw_field_qualify_Container_get(unit, entry, data, mask); 11462 } 11463 #endif 11464 11465 #ifdef BCM_TOMAHAWK3_SUPPORT 11466 int 11467 bcm_tomahawk3_field_qualify_CosMapSelect( 11468 int unit, 11469 bcm_field_entry_t entry, 11470 bcm_field_cos_map_select_t cos_map_select) 11471 { 11472 return bcm_esw_field_qualify_CosMapSelect(unit, entry, cos_map_select); 11473 } 11474 #endif 11475 11476 #ifdef BCM_TOMAHAWK3_SUPPORT 11477 int 11478 bcm_tomahawk3_field_qualify_CosMapSelect_get( 11479 int unit, 11480 bcm_field_entry_t entry, 11481 bcm_field_cos_map_select_t *cos_map_select) 11482 { 11483 return bcm_esw_field_qualify_CosMapSelect_get(unit, entry, cos_map_select); 11484 } 11485 #endif 11486 11487 #ifdef BCM_TOMAHAWK3_SUPPORT 11488 int 11489 bcm_tomahawk3_field_qualify_CpuQueue( 11490 int unit, 11491 bcm_field_entry_t entry, 11492 uint8 data, 11493 uint8 mask) 11494 { 11495 return bcm_esw_field_qualify_CpuQueue(unit, entry, data, mask); 11496 } 11497 #endif 11498 11499 #ifdef BCM_TOMAHAWK3_SUPPORT 11500 int 11501 bcm_tomahawk3_field_qualify_CpuQueue_get( 11502 int unit, 11503 bcm_field_entry_t entry, 11504 uint8 *data, 11505 uint8 *mask) 11506 { 11507 return bcm_esw_field_qualify_CpuQueue_get(unit, entry, data, mask); 11508 } 11509 #endif 11510 11511 #ifdef BCM_TOMAHAWK3_SUPPORT 11512 int 11513 bcm_tomahawk3_field_qualify_CpuVisibilityPacket( 11514 int unit, 11515 bcm_field_entry_t entry, 11516 uint8 data, 11517 uint8 mask) 11518 { 11519 return bcm_esw_field_qualify_CpuVisibilityPacket(unit, entry, data, mask); 11520 } 11521 #endif 11522 11523 #ifdef BCM_TOMAHAWK3_SUPPORT 11524 int 11525 bcm_tomahawk3_field_qualify_CpuVisibilityPacket_get( 11526 int unit, 11527 bcm_field_entry_t entry, 11528 uint8 *data, 11529 uint8 *mask) 11530 { 11531 return bcm_esw_field_qualify_CpuVisibilityPacket_get(unit, entry, data, mask); 11532 } 11533 #endif 11534 11535 #ifdef BCM_TOMAHAWK3_SUPPORT 11536 int 11537 bcm_tomahawk3_field_qualify_CustomHeaderData( 11538 int unit, 11539 bcm_field_entry_t entry, 11540 uint32 data, 11541 uint32 mask) 11542 { 11543 return bcm_esw_field_qualify_CustomHeaderData(unit, entry, data, mask); 11544 } 11545 #endif 11546 11547 #ifdef BCM_TOMAHAWK3_SUPPORT 11548 int 11549 bcm_tomahawk3_field_qualify_CustomHeaderData_get( 11550 int unit, 11551 bcm_field_entry_t entry, 11552 uint32 *data, 11553 uint32 *mask) 11554 { 11555 return bcm_esw_field_qualify_CustomHeaderData_get(unit, entry, data, mask); 11556 } 11557 #endif 11558 11559 #ifdef BCM_TOMAHAWK3_SUPPORT 11560 int 11561 bcm_tomahawk3_field_qualify_CustomHeaderPkt( 11562 int unit, 11563 bcm_field_entry_t entry, 11564 uint8 data, 11565 uint8 mask) 11566 { 11567 return bcm_esw_field_qualify_CustomHeaderPkt(unit, entry, data, mask); 11568 } 11569 #endif 11570 11571 #ifdef BCM_TOMAHAWK3_SUPPORT 11572 int 11573 bcm_tomahawk3_field_qualify_CustomHeaderPkt_get( 11574 int unit, 11575 bcm_field_entry_t entry, 11576 uint8 *data, 11577 uint8 *mask) 11578 { 11579 return bcm_esw_field_qualify_CustomHeaderPkt_get(unit, entry, data, mask); 11580 } 11581 #endif 11582 11583 #ifdef BCM_TOMAHAWK3_SUPPORT 11584 int 11585 bcm_tomahawk3_field_qualify_DSCP( 11586 int unit, 11587 bcm_field_entry_t entry, 11588 uint8 data, 11589 uint8 mask) 11590 { 11591 return bcm_esw_field_qualify_DSCP(unit, entry, data, mask); 11592 } 11593 #endif 11594 11595 #ifdef BCM_TOMAHAWK3_SUPPORT 11596 int 11597 bcm_tomahawk3_field_qualify_DSCP_get( 11598 int unit, 11599 bcm_field_entry_t entry, 11600 uint8 *data, 11601 uint8 *mask) 11602 { 11603 return bcm_esw_field_qualify_DSCP_get(unit, entry, data, mask); 11604 } 11605 #endif 11606 11607 #ifdef BCM_TOMAHAWK3_SUPPORT 11608 int 11609 bcm_tomahawk3_field_qualify_Decap( 11610 int unit, 11611 bcm_field_entry_t entry, 11612 bcm_field_decap_t decap) 11613 { 11614 return bcm_esw_field_qualify_Decap(unit, entry, decap); 11615 } 11616 #endif 11617 11618 #ifdef BCM_TOMAHAWK3_SUPPORT 11619 int 11620 bcm_tomahawk3_field_qualify_Decap_get( 11621 int unit, 11622 bcm_field_entry_t entry, 11623 bcm_field_decap_t *decap) 11624 { 11625 return bcm_esw_field_qualify_Decap_get(unit, entry, decap); 11626 } 11627 #endif 11628 11629 #ifdef BCM_TOMAHAWK3_SUPPORT 11630 int 11631 bcm_tomahawk3_field_qualify_DestVirtualPortValid( 11632 int unit, 11633 bcm_field_entry_t entry, 11634 uint8 data, 11635 uint8 mask) 11636 { 11637 return bcm_esw_field_qualify_DestVirtualPortValid(unit, entry, data, mask); 11638 } 11639 #endif 11640 11641 #ifdef BCM_TOMAHAWK3_SUPPORT 11642 int 11643 bcm_tomahawk3_field_qualify_DestVirtualPortValid_get( 11644 int unit, 11645 bcm_field_entry_t entry, 11646 uint8 *data, 11647 uint8 *mask) 11648 { 11649 return bcm_esw_field_qualify_DestVirtualPortValid_get(unit, entry, data, mask); 11650 } 11651 #endif 11652 11653 #ifdef BCM_TOMAHAWK3_SUPPORT 11654 int 11655 bcm_tomahawk3_field_qualify_DevicePortBitmap( 11656 int unit, 11657 bcm_field_entry_t entry, 11658 bcm_pbmp_t data, 11659 bcm_pbmp_t mask) 11660 { 11661 return bcm_esw_field_qualify_DevicePortBitmap(unit, entry, data, mask); 11662 } 11663 #endif 11664 11665 #ifdef BCM_TOMAHAWK3_SUPPORT 11666 int 11667 bcm_tomahawk3_field_qualify_DevicePortBitmap_get( 11668 int unit, 11669 bcm_field_entry_t entry, 11670 bcm_pbmp_t *data, 11671 bcm_pbmp_t *mask) 11672 { 11673 return bcm_esw_field_qualify_DevicePortBitmap_get(unit, entry, data, mask); 11674 } 11675 #endif 11676 11677 #ifdef BCM_TOMAHAWK3_SUPPORT 11678 int 11679 bcm_tomahawk3_field_qualify_Dhcp( 11680 int unit, 11681 bcm_field_entry_t entry, 11682 uint8 data, 11683 uint8 mask) 11684 { 11685 return bcm_esw_field_qualify_Dhcp(unit, entry, data, mask); 11686 } 11687 #endif 11688 11689 #ifdef BCM_TOMAHAWK3_SUPPORT 11690 int 11691 bcm_tomahawk3_field_qualify_Dhcp_get( 11692 int unit, 11693 bcm_field_entry_t entry, 11694 uint8 *data, 11695 uint8 *mask) 11696 { 11697 return bcm_esw_field_qualify_Dhcp_get(unit, entry, data, mask); 11698 } 11699 #endif 11700 11701 #ifdef BCM_TOMAHAWK3_SUPPORT 11702 int 11703 bcm_tomahawk3_field_qualify_DosAttack( 11704 int unit, 11705 bcm_field_entry_t entry, 11706 uint8 data, 11707 uint8 mask) 11708 { 11709 return bcm_esw_field_qualify_DosAttack(unit, entry, data, mask); 11710 } 11711 #endif 11712 11713 #ifdef BCM_TOMAHAWK3_SUPPORT 11714 int 11715 bcm_tomahawk3_field_qualify_DosAttackEvents( 11716 int unit, 11717 bcm_field_entry_t entry, 11718 uint32 data, 11719 uint32 mask) 11720 { 11721 return bcm_esw_field_qualify_DosAttackEvents(unit, entry, data, mask); 11722 } 11723 #endif 11724 11725 #ifdef BCM_TOMAHAWK3_SUPPORT 11726 int 11727 bcm_tomahawk3_field_qualify_DosAttackEvents_get( 11728 int unit, 11729 bcm_field_entry_t entry, 11730 uint32 *data, 11731 uint32 *mask) 11732 { 11733 return bcm_esw_field_qualify_DosAttackEvents_get(unit, entry, data, mask); 11734 } 11735 #endif 11736 11737 #ifdef BCM_TOMAHAWK3_SUPPORT 11738 int 11739 bcm_tomahawk3_field_qualify_DosAttack_get( 11740 int unit, 11741 bcm_field_entry_t entry, 11742 uint8 *data, 11743 uint8 *mask) 11744 { 11745 return bcm_esw_field_qualify_DosAttack_get(unit, entry, data, mask); 11746 } 11747 #endif 11748 11749 #ifdef BCM_TOMAHAWK3_SUPPORT 11750 int 11751 bcm_tomahawk3_field_qualify_DownMepSatTerminated( 11752 int unit, 11753 bcm_field_entry_t entry, 11754 uint8 data, 11755 uint8 mask) 11756 { 11757 return bcm_esw_field_qualify_DownMepSatTerminated(unit, entry, data, mask); 11758 } 11759 #endif 11760 11761 #ifdef BCM_TOMAHAWK3_SUPPORT 11762 int 11763 bcm_tomahawk3_field_qualify_DownMepSatTerminated_get( 11764 int unit, 11765 bcm_field_entry_t entry, 11766 uint8 *data, 11767 uint8 *mask) 11768 { 11769 return bcm_esw_field_qualify_DownMepSatTerminated_get(unit, entry, data, mask); 11770 } 11771 #endif 11772 11773 #ifdef BCM_TOMAHAWK3_SUPPORT 11774 int 11775 bcm_tomahawk3_field_qualify_Drop( 11776 int unit, 11777 bcm_field_entry_t entry, 11778 uint8 data, 11779 uint8 mask) 11780 { 11781 return bcm_esw_field_qualify_Drop(unit, entry, data, mask); 11782 } 11783 #endif 11784 11785 #ifdef BCM_TOMAHAWK3_SUPPORT 11786 int 11787 bcm_tomahawk3_field_qualify_Drop_get( 11788 int unit, 11789 bcm_field_entry_t entry, 11790 uint8 *data, 11791 uint8 *mask) 11792 { 11793 return bcm_esw_field_qualify_Drop_get(unit, entry, data, mask); 11794 } 11795 #endif 11796 11797 #ifdef BCM_TOMAHAWK3_SUPPORT 11798 int 11799 bcm_tomahawk3_field_qualify_DstClassField( 11800 int unit, 11801 bcm_field_entry_t entry, 11802 uint32 data, 11803 uint32 mask) 11804 { 11805 return bcm_esw_field_qualify_DstClassField(unit, entry, data, mask); 11806 } 11807 #endif 11808 11809 #ifdef BCM_TOMAHAWK3_SUPPORT 11810 int 11811 bcm_tomahawk3_field_qualify_DstClassField_get( 11812 int unit, 11813 bcm_field_entry_t entry, 11814 uint32 *data, 11815 uint32 *mask) 11816 { 11817 return bcm_esw_field_qualify_DstClassField_get(unit, entry, data, mask); 11818 } 11819 #endif 11820 11821 #ifdef BCM_TOMAHAWK3_SUPPORT 11822 int 11823 bcm_tomahawk3_field_qualify_DstClassL2( 11824 int unit, 11825 bcm_field_entry_t entry, 11826 uint32 data, 11827 uint32 mask) 11828 { 11829 return bcm_esw_field_qualify_DstClassL2(unit, entry, data, mask); 11830 } 11831 #endif 11832 11833 #ifdef BCM_TOMAHAWK3_SUPPORT 11834 int 11835 bcm_tomahawk3_field_qualify_DstClassL2_get( 11836 int unit, 11837 bcm_field_entry_t entry, 11838 uint32 *data, 11839 uint32 *mask) 11840 { 11841 return bcm_esw_field_qualify_DstClassL2_get(unit, entry, data, mask); 11842 } 11843 #endif 11844 11845 #ifdef BCM_TOMAHAWK3_SUPPORT 11846 int 11847 bcm_tomahawk3_field_qualify_DstClassL3( 11848 int unit, 11849 bcm_field_entry_t entry, 11850 uint32 data, 11851 uint32 mask) 11852 { 11853 return bcm_esw_field_qualify_DstClassL3(unit, entry, data, mask); 11854 } 11855 #endif 11856 11857 #ifdef BCM_TOMAHAWK3_SUPPORT 11858 int 11859 bcm_tomahawk3_field_qualify_DstClassL3_get( 11860 int unit, 11861 bcm_field_entry_t entry, 11862 uint32 *data, 11863 uint32 *mask) 11864 { 11865 return bcm_esw_field_qualify_DstClassL3_get(unit, entry, data, mask); 11866 } 11867 #endif 11868 11869 #ifdef BCM_TOMAHAWK3_SUPPORT 11870 int 11871 bcm_tomahawk3_field_qualify_DstGport( 11872 int unit, 11873 bcm_field_entry_t entry, 11874 bcm_gport_t port_id) 11875 { 11876 return bcm_esw_field_qualify_DstGport(unit, entry, port_id); 11877 } 11878 #endif 11879 11880 #ifdef BCM_TOMAHAWK3_SUPPORT 11881 int 11882 bcm_tomahawk3_field_qualify_DstGport_get( 11883 int unit, 11884 bcm_field_entry_t entry, 11885 bcm_gport_t *port_id) 11886 { 11887 return bcm_esw_field_qualify_DstGport_get(unit, entry, port_id); 11888 } 11889 #endif 11890 11891 #ifdef BCM_TOMAHAWK3_SUPPORT 11892 int 11893 bcm_tomahawk3_field_qualify_DstGports( 11894 int unit, 11895 bcm_field_entry_t entry, 11896 bcm_gport_t port_id, 11897 bcm_gport_t port_mask) 11898 { 11899 return bcm_esw_field_qualify_DstGports(unit, entry, port_id, port_mask); 11900 } 11901 #endif 11902 11903 #ifdef BCM_TOMAHAWK3_SUPPORT 11904 int 11905 bcm_tomahawk3_field_qualify_DstGports_get( 11906 int unit, 11907 bcm_field_entry_t entry, 11908 bcm_gport_t *port_id, 11909 bcm_gport_t *port_mask) 11910 { 11911 return bcm_esw_field_qualify_DstGports_get(unit, entry, port_id, port_mask); 11912 } 11913 #endif 11914 11915 #ifdef BCM_TOMAHAWK3_SUPPORT 11916 int 11917 bcm_tomahawk3_field_qualify_DstHiGig( 11918 int unit, 11919 bcm_field_entry_t entry, 11920 uint8 data, 11921 uint8 mask) 11922 { 11923 return bcm_esw_field_qualify_DstHiGig(unit, entry, data, mask); 11924 } 11925 #endif 11926 11927 #ifdef BCM_TOMAHAWK3_SUPPORT 11928 int 11929 bcm_tomahawk3_field_qualify_DstHiGig_get( 11930 int unit, 11931 bcm_field_entry_t entry, 11932 uint8 *data, 11933 uint8 *mask) 11934 { 11935 return bcm_esw_field_qualify_DstHiGig_get(unit, entry, data, mask); 11936 } 11937 #endif 11938 11939 #ifdef BCM_TOMAHAWK3_SUPPORT 11940 int 11941 bcm_tomahawk3_field_qualify_DstIp( 11942 int unit, 11943 bcm_field_entry_t entry, 11944 bcm_ip_t data, 11945 bcm_ip_t mask) 11946 { 11947 return bcm_esw_field_qualify_DstIp(unit, entry, data, mask); 11948 } 11949 #endif 11950 11951 #ifdef BCM_TOMAHAWK3_SUPPORT 11952 int 11953 bcm_tomahawk3_field_qualify_DstIp6( 11954 int unit, 11955 bcm_field_entry_t entry, 11956 bcm_ip6_t data, 11957 bcm_ip6_t mask) 11958 { 11959 return bcm_esw_field_qualify_DstIp6(unit, entry, data, mask); 11960 } 11961 #endif 11962 11963 #ifdef BCM_TOMAHAWK3_SUPPORT 11964 int 11965 bcm_tomahawk3_field_qualify_DstIp6Class( 11966 int unit, 11967 bcm_field_entry_t entry, 11968 bcm_class_t data, 11969 bcm_class_t mask) 11970 { 11971 return bcm_esw_field_qualify_DstIp6Class(unit, entry, data, mask); 11972 } 11973 #endif 11974 11975 #ifdef BCM_TOMAHAWK3_SUPPORT 11976 int 11977 bcm_tomahawk3_field_qualify_DstIp6ClassLower( 11978 int unit, 11979 bcm_field_entry_t entry, 11980 bcm_class_t data, 11981 bcm_class_t mask) 11982 { 11983 return bcm_esw_field_qualify_DstIp6ClassLower(unit, entry, data, mask); 11984 } 11985 #endif 11986 11987 #ifdef BCM_TOMAHAWK3_SUPPORT 11988 int 11989 bcm_tomahawk3_field_qualify_DstIp6ClassLower_get( 11990 int unit, 11991 bcm_field_entry_t entry, 11992 bcm_class_t *data, 11993 bcm_class_t *mask) 11994 { 11995 return bcm_esw_field_qualify_DstIp6ClassLower_get(unit, entry, data, mask); 11996 } 11997 #endif 11998 11999 #ifdef BCM_TOMAHAWK3_SUPPORT 12000 int 12001 bcm_tomahawk3_field_qualify_DstIp6ClassMsbNibble( 12002 int unit, 12003 bcm_field_entry_t entry, 12004 bcm_class_t data, 12005 bcm_class_t mask) 12006 { 12007 return bcm_esw_field_qualify_DstIp6ClassMsbNibble(unit, entry, data, mask); 12008 } 12009 #endif 12010 12011 #ifdef BCM_TOMAHAWK3_SUPPORT 12012 int 12013 bcm_tomahawk3_field_qualify_DstIp6ClassMsbNibble_get( 12014 int unit, 12015 bcm_field_entry_t entry, 12016 bcm_class_t *data, 12017 bcm_class_t *mask) 12018 { 12019 return bcm_esw_field_qualify_DstIp6ClassMsbNibble_get(unit, entry, data, mask); 12020 } 12021 #endif 12022 12023 #ifdef BCM_TOMAHAWK3_SUPPORT 12024 int 12025 bcm_tomahawk3_field_qualify_DstIp6ClassUpper( 12026 int unit, 12027 bcm_field_entry_t entry, 12028 bcm_class_t data, 12029 bcm_class_t mask) 12030 { 12031 return bcm_esw_field_qualify_DstIp6ClassUpper(unit, entry, data, mask); 12032 } 12033 #endif 12034 12035 #ifdef BCM_TOMAHAWK3_SUPPORT 12036 int 12037 bcm_tomahawk3_field_qualify_DstIp6ClassUpper_get( 12038 int unit, 12039 bcm_field_entry_t entry, 12040 bcm_class_t *data, 12041 bcm_class_t *mask) 12042 { 12043 return bcm_esw_field_qualify_DstIp6ClassUpper_get(unit, entry, data, mask); 12044 } 12045 #endif 12046 12047 #ifdef BCM_TOMAHAWK3_SUPPORT 12048 int 12049 bcm_tomahawk3_field_qualify_DstIp6Class_get( 12050 int unit, 12051 bcm_field_entry_t entry, 12052 bcm_class_t *data, 12053 bcm_class_t *mask) 12054 { 12055 return bcm_esw_field_qualify_DstIp6Class_get(unit, entry, data, mask); 12056 } 12057 #endif 12058 12059 #ifdef BCM_TOMAHAWK3_SUPPORT 12060 int 12061 bcm_tomahawk3_field_qualify_DstIp6High( 12062 int unit, 12063 bcm_field_entry_t entry, 12064 bcm_ip6_t data, 12065 bcm_ip6_t mask) 12066 { 12067 return bcm_esw_field_qualify_DstIp6High(unit, entry, data, mask); 12068 } 12069 #endif 12070 12071 #ifdef BCM_TOMAHAWK3_SUPPORT 12072 int 12073 bcm_tomahawk3_field_qualify_DstIp6High_get( 12074 int unit, 12075 bcm_field_entry_t entry, 12076 bcm_ip6_t *data, 12077 bcm_ip6_t *mask) 12078 { 12079 return bcm_esw_field_qualify_DstIp6High_get(unit, entry, data, mask); 12080 } 12081 #endif 12082 12083 #ifdef BCM_TOMAHAWK3_SUPPORT 12084 int 12085 bcm_tomahawk3_field_qualify_DstIp6Low( 12086 int unit, 12087 bcm_field_entry_t entry, 12088 bcm_ip6_t data, 12089 bcm_ip6_t mask) 12090 { 12091 return bcm_esw_field_qualify_DstIp6Low(unit, entry, data, mask); 12092 } 12093 #endif 12094 12095 #ifdef BCM_TOMAHAWK3_SUPPORT 12096 int 12097 bcm_tomahawk3_field_qualify_DstIp6Low_get( 12098 int unit, 12099 bcm_field_entry_t entry, 12100 bcm_ip6_t *data, 12101 bcm_ip6_t *mask) 12102 { 12103 return bcm_esw_field_qualify_DstIp6Low_get(unit, entry, data, mask); 12104 } 12105 #endif 12106 12107 #ifdef BCM_TOMAHAWK3_SUPPORT 12108 int 12109 bcm_tomahawk3_field_qualify_DstIp6_get( 12110 int unit, 12111 bcm_field_entry_t entry, 12112 bcm_ip6_t *data, 12113 bcm_ip6_t *mask) 12114 { 12115 return bcm_esw_field_qualify_DstIp6_get(unit, entry, data, mask); 12116 } 12117 #endif 12118 12119 #ifdef BCM_TOMAHAWK3_SUPPORT 12120 int 12121 bcm_tomahawk3_field_qualify_DstIpClass( 12122 int unit, 12123 bcm_field_entry_t entry, 12124 bcm_class_t data, 12125 bcm_class_t mask) 12126 { 12127 return bcm_esw_field_qualify_DstIpClass(unit, entry, data, mask); 12128 } 12129 #endif 12130 12131 #ifdef BCM_TOMAHAWK3_SUPPORT 12132 int 12133 bcm_tomahawk3_field_qualify_DstIpClassLower( 12134 int unit, 12135 bcm_field_entry_t entry, 12136 bcm_class_t data, 12137 bcm_class_t mask) 12138 { 12139 return bcm_esw_field_qualify_DstIpClassLower(unit, entry, data, mask); 12140 } 12141 #endif 12142 12143 #ifdef BCM_TOMAHAWK3_SUPPORT 12144 int 12145 bcm_tomahawk3_field_qualify_DstIpClassLower_get( 12146 int unit, 12147 bcm_field_entry_t entry, 12148 bcm_class_t *data, 12149 bcm_class_t *mask) 12150 { 12151 return bcm_esw_field_qualify_DstIpClassLower_get(unit, entry, data, mask); 12152 } 12153 #endif 12154 12155 #ifdef BCM_TOMAHAWK3_SUPPORT 12156 int 12157 bcm_tomahawk3_field_qualify_DstIpClassMsbNibble( 12158 int unit, 12159 bcm_field_entry_t entry, 12160 bcm_class_t data, 12161 bcm_class_t mask) 12162 { 12163 return bcm_esw_field_qualify_DstIpClassMsbNibble(unit, entry, data, mask); 12164 } 12165 #endif 12166 12167 #ifdef BCM_TOMAHAWK3_SUPPORT 12168 int 12169 bcm_tomahawk3_field_qualify_DstIpClassMsbNibble_get( 12170 int unit, 12171 bcm_field_entry_t entry, 12172 bcm_class_t *data, 12173 bcm_class_t *mask) 12174 { 12175 return bcm_esw_field_qualify_DstIpClassMsbNibble_get(unit, entry, data, mask); 12176 } 12177 #endif 12178 12179 #ifdef BCM_TOMAHAWK3_SUPPORT 12180 int 12181 bcm_tomahawk3_field_qualify_DstIpClassUpper( 12182 int unit, 12183 bcm_field_entry_t entry, 12184 bcm_class_t data, 12185 bcm_class_t mask) 12186 { 12187 return bcm_esw_field_qualify_DstIpClassUpper(unit, entry, data, mask); 12188 } 12189 #endif 12190 12191 #ifdef BCM_TOMAHAWK3_SUPPORT 12192 int 12193 bcm_tomahawk3_field_qualify_DstIpClassUpper_get( 12194 int unit, 12195 bcm_field_entry_t entry, 12196 bcm_class_t *data, 12197 bcm_class_t *mask) 12198 { 12199 return bcm_esw_field_qualify_DstIpClassUpper_get(unit, entry, data, mask); 12200 } 12201 #endif 12202 12203 #ifdef BCM_TOMAHAWK3_SUPPORT 12204 int 12205 bcm_tomahawk3_field_qualify_DstIpClass_get( 12206 int unit, 12207 bcm_field_entry_t entry, 12208 bcm_class_t *data, 12209 bcm_class_t *mask) 12210 { 12211 return bcm_esw_field_qualify_DstIpClass_get(unit, entry, data, mask); 12212 } 12213 #endif 12214 12215 #ifdef BCM_TOMAHAWK3_SUPPORT 12216 int 12217 bcm_tomahawk3_field_qualify_DstIpLocal( 12218 int unit, 12219 bcm_field_entry_t entry, 12220 uint8 data, 12221 uint8 mask) 12222 { 12223 return bcm_esw_field_qualify_DstIpLocal(unit, entry, data, mask); 12224 } 12225 #endif 12226 12227 #ifdef BCM_TOMAHAWK3_SUPPORT 12228 int 12229 bcm_tomahawk3_field_qualify_DstIpLocal_get( 12230 int unit, 12231 bcm_field_entry_t entry, 12232 uint8 *data, 12233 uint8 *mask) 12234 { 12235 return bcm_esw_field_qualify_DstIpLocal_get(unit, entry, data, mask); 12236 } 12237 #endif 12238 12239 #ifdef BCM_TOMAHAWK3_SUPPORT 12240 int 12241 bcm_tomahawk3_field_qualify_DstIp_get( 12242 int unit, 12243 bcm_field_entry_t entry, 12244 bcm_ip_t *data, 12245 bcm_ip_t *mask) 12246 { 12247 return bcm_esw_field_qualify_DstIp_get(unit, entry, data, mask); 12248 } 12249 #endif 12250 12251 #ifdef BCM_TOMAHAWK3_SUPPORT 12252 int 12253 bcm_tomahawk3_field_qualify_DstL2MulticastGroup( 12254 int unit, 12255 bcm_field_entry_t entry, 12256 bcm_multicast_t group, 12257 bcm_multicast_t mask) 12258 { 12259 return bcm_esw_field_qualify_DstL2MulticastGroup(unit, entry, group, mask); 12260 } 12261 #endif 12262 12263 #ifdef BCM_TOMAHAWK3_SUPPORT 12264 int 12265 bcm_tomahawk3_field_qualify_DstL2MulticastGroup_get( 12266 int unit, 12267 bcm_field_entry_t entry, 12268 bcm_multicast_t *group, 12269 bcm_multicast_t *mask) 12270 { 12271 return bcm_esw_field_qualify_DstL2MulticastGroup_get(unit, entry, group, mask); 12272 } 12273 #endif 12274 12275 #ifdef BCM_TOMAHAWK3_SUPPORT 12276 int 12277 bcm_tomahawk3_field_qualify_DstL3Egress( 12278 int unit, 12279 bcm_field_entry_t entry, 12280 bcm_if_t if_id) 12281 { 12282 return bcm_esw_field_qualify_DstL3Egress(unit, entry, if_id); 12283 } 12284 #endif 12285 12286 #ifdef BCM_TOMAHAWK3_SUPPORT 12287 int 12288 bcm_tomahawk3_field_qualify_DstL3EgressNextHops( 12289 int unit, 12290 bcm_field_entry_t entry, 12291 uint32 data, 12292 uint32 mask) 12293 { 12294 return bcm_esw_field_qualify_DstL3EgressNextHops(unit, entry, data, mask); 12295 } 12296 #endif 12297 12298 #ifdef BCM_TOMAHAWK3_SUPPORT 12299 int 12300 bcm_tomahawk3_field_qualify_DstL3EgressNextHopsUnderlay( 12301 int unit, 12302 bcm_field_entry_t entry, 12303 uint32 data, 12304 uint32 mask) 12305 { 12306 return bcm_esw_field_qualify_DstL3EgressNextHopsUnderlay(unit, entry, data, mask); 12307 } 12308 #endif 12309 12310 #ifdef BCM_TOMAHAWK3_SUPPORT 12311 int 12312 bcm_tomahawk3_field_qualify_DstL3EgressNextHopsUnderlay_get( 12313 int unit, 12314 bcm_field_entry_t entry, 12315 uint32 *data, 12316 uint32 *mask) 12317 { 12318 return bcm_esw_field_qualify_DstL3EgressNextHopsUnderlay_get(unit, entry, data, mask); 12319 } 12320 #endif 12321 12322 #ifdef BCM_TOMAHAWK3_SUPPORT 12323 int 12324 bcm_tomahawk3_field_qualify_DstL3EgressNextHops_get( 12325 int unit, 12326 bcm_field_entry_t entry, 12327 uint32 *data, 12328 uint32 *mask) 12329 { 12330 return bcm_esw_field_qualify_DstL3EgressNextHops_get(unit, entry, data, mask); 12331 } 12332 #endif 12333 12334 #ifdef BCM_TOMAHAWK3_SUPPORT 12335 int 12336 bcm_tomahawk3_field_qualify_DstL3EgressUnderlay( 12337 int unit, 12338 bcm_field_entry_t entry, 12339 bcm_if_t if_id) 12340 { 12341 return bcm_esw_field_qualify_DstL3EgressUnderlay(unit, entry, if_id); 12342 } 12343 #endif 12344 12345 #ifdef BCM_TOMAHAWK3_SUPPORT 12346 int 12347 bcm_tomahawk3_field_qualify_DstL3EgressUnderlay_get( 12348 int unit, 12349 bcm_field_entry_t entry, 12350 bcm_if_t *if_id) 12351 { 12352 return bcm_esw_field_qualify_DstL3EgressUnderlay_get(unit, entry, if_id); 12353 } 12354 #endif 12355 12356 #ifdef BCM_TOMAHAWK3_SUPPORT 12357 int 12358 bcm_tomahawk3_field_qualify_DstL3Egress_get( 12359 int unit, 12360 bcm_field_entry_t entry, 12361 bcm_if_t *if_id) 12362 { 12363 return bcm_esw_field_qualify_DstL3Egress_get(unit, entry, if_id); 12364 } 12365 #endif 12366 12367 #ifdef BCM_TOMAHAWK3_SUPPORT 12368 int 12369 bcm_tomahawk3_field_qualify_DstL3MulticastGroup( 12370 int unit, 12371 bcm_field_entry_t entry, 12372 bcm_multicast_t group, 12373 bcm_multicast_t mask) 12374 { 12375 return bcm_esw_field_qualify_DstL3MulticastGroup(unit, entry, group, mask); 12376 } 12377 #endif 12378 12379 #ifdef BCM_TOMAHAWK3_SUPPORT 12380 int 12381 bcm_tomahawk3_field_qualify_DstL3MulticastGroup_get( 12382 int unit, 12383 bcm_field_entry_t entry, 12384 bcm_multicast_t *group, 12385 bcm_multicast_t *mask) 12386 { 12387 return bcm_esw_field_qualify_DstL3MulticastGroup_get(unit, entry, group, mask); 12388 } 12389 #endif 12390 12391 #ifdef BCM_TOMAHAWK3_SUPPORT 12392 int 12393 bcm_tomahawk3_field_qualify_DstMac( 12394 int unit, 12395 bcm_field_entry_t entry, 12396 bcm_mac_t data, 12397 bcm_mac_t mask) 12398 { 12399 return bcm_esw_field_qualify_DstMac(unit, entry, data, mask); 12400 } 12401 #endif 12402 12403 #ifdef BCM_TOMAHAWK3_SUPPORT 12404 int 12405 bcm_tomahawk3_field_qualify_DstMac_get( 12406 int unit, 12407 bcm_field_entry_t entry, 12408 bcm_mac_t *data, 12409 bcm_mac_t *mask) 12410 { 12411 return bcm_esw_field_qualify_DstMac_get(unit, entry, data, mask); 12412 } 12413 #endif 12414 12415 #ifdef BCM_TOMAHAWK3_SUPPORT 12416 int 12417 bcm_tomahawk3_field_qualify_DstMimGport( 12418 int unit, 12419 bcm_field_entry_t entry, 12420 bcm_gport_t mim_port_id) 12421 { 12422 return bcm_esw_field_qualify_DstMimGport(unit, entry, mim_port_id); 12423 } 12424 #endif 12425 12426 #ifdef BCM_TOMAHAWK3_SUPPORT 12427 int 12428 bcm_tomahawk3_field_qualify_DstMimGport_get( 12429 int unit, 12430 bcm_field_entry_t entry, 12431 bcm_gport_t *mim_port_id) 12432 { 12433 return bcm_esw_field_qualify_DstMimGport_get(unit, entry, mim_port_id); 12434 } 12435 #endif 12436 12437 #ifdef BCM_TOMAHAWK3_SUPPORT 12438 int 12439 bcm_tomahawk3_field_qualify_DstMimGports( 12440 int unit, 12441 bcm_field_entry_t entry, 12442 bcm_gport_t mim_port_id, 12443 bcm_gport_t mim_port_mask) 12444 { 12445 return bcm_esw_field_qualify_DstMimGports(unit, entry, mim_port_id, mim_port_mask); 12446 } 12447 #endif 12448 12449 #ifdef BCM_TOMAHAWK3_SUPPORT 12450 int 12451 bcm_tomahawk3_field_qualify_DstMimGports_get( 12452 int unit, 12453 bcm_field_entry_t entry, 12454 bcm_gport_t *mim_port_id, 12455 bcm_gport_t *mim_port_mask) 12456 { 12457 return bcm_esw_field_qualify_DstMimGports_get(unit, entry, mim_port_id, mim_port_mask); 12458 } 12459 #endif 12460 12461 #ifdef BCM_TOMAHAWK3_SUPPORT 12462 int 12463 bcm_tomahawk3_field_qualify_DstMplsGport( 12464 int unit, 12465 bcm_field_entry_t entry, 12466 bcm_gport_t mpls_port_id) 12467 { 12468 return bcm_esw_field_qualify_DstMplsGport(unit, entry, mpls_port_id); 12469 } 12470 #endif 12471 12472 #ifdef BCM_TOMAHAWK3_SUPPORT 12473 int 12474 bcm_tomahawk3_field_qualify_DstMplsGport_get( 12475 int unit, 12476 bcm_field_entry_t entry, 12477 bcm_gport_t *mpls_port_id) 12478 { 12479 return bcm_esw_field_qualify_DstMplsGport_get(unit, entry, mpls_port_id); 12480 } 12481 #endif 12482 12483 #ifdef BCM_TOMAHAWK3_SUPPORT 12484 int 12485 bcm_tomahawk3_field_qualify_DstMplsGports( 12486 int unit, 12487 bcm_field_entry_t entry, 12488 bcm_gport_t mpls_port_id, 12489 bcm_gport_t mpls_port_mask) 12490 { 12491 return bcm_esw_field_qualify_DstMplsGports(unit, entry, mpls_port_id, mpls_port_mask); 12492 } 12493 #endif 12494 12495 #ifdef BCM_TOMAHAWK3_SUPPORT 12496 int 12497 bcm_tomahawk3_field_qualify_DstMplsGports_get( 12498 int unit, 12499 bcm_field_entry_t entry, 12500 bcm_gport_t *mpls_port_id, 12501 bcm_gport_t *mpls_port_mask) 12502 { 12503 return bcm_esw_field_qualify_DstMplsGports_get(unit, entry, mpls_port_id, mpls_port_mask); 12504 } 12505 #endif 12506 12507 #ifdef BCM_TOMAHAWK3_SUPPORT 12508 int 12509 bcm_tomahawk3_field_qualify_DstMulticastGroup( 12510 int unit, 12511 bcm_field_entry_t entry, 12512 bcm_multicast_t group) 12513 { 12514 return bcm_esw_field_qualify_DstMulticastGroup(unit, entry, group); 12515 } 12516 #endif 12517 12518 #ifdef BCM_TOMAHAWK3_SUPPORT 12519 int 12520 bcm_tomahawk3_field_qualify_DstMulticastGroup_get( 12521 int unit, 12522 bcm_field_entry_t entry, 12523 bcm_multicast_t *group) 12524 { 12525 return bcm_esw_field_qualify_DstMulticastGroup_get(unit, entry, group); 12526 } 12527 #endif 12528 12529 #ifdef BCM_TOMAHAWK3_SUPPORT 12530 int 12531 bcm_tomahawk3_field_qualify_DstMulticastGroups( 12532 int unit, 12533 bcm_field_entry_t entry, 12534 bcm_multicast_t group, 12535 bcm_multicast_t mask) 12536 { 12537 return bcm_esw_field_qualify_DstMulticastGroups(unit, entry, group, mask); 12538 } 12539 #endif 12540 12541 #ifdef BCM_TOMAHAWK3_SUPPORT 12542 int 12543 bcm_tomahawk3_field_qualify_DstMulticastGroups_get( 12544 int unit, 12545 bcm_field_entry_t entry, 12546 bcm_multicast_t *group, 12547 bcm_multicast_t *mask) 12548 { 12549 return bcm_esw_field_qualify_DstMulticastGroups_get(unit, entry, group, mask); 12550 } 12551 #endif 12552 12553 #ifdef BCM_TOMAHAWK3_SUPPORT 12554 int 12555 bcm_tomahawk3_field_qualify_DstMultipath( 12556 int unit, 12557 bcm_field_entry_t entry, 12558 bcm_if_t mpintf) 12559 { 12560 return bcm_esw_field_qualify_DstMultipath(unit, entry, mpintf); 12561 } 12562 #endif 12563 12564 #ifdef BCM_TOMAHAWK3_SUPPORT 12565 int 12566 bcm_tomahawk3_field_qualify_DstMultipathOverlay( 12567 int unit, 12568 bcm_field_entry_t entry, 12569 bcm_if_t data, 12570 bcm_if_t mask) 12571 { 12572 return bcm_esw_field_qualify_DstMultipathOverlay(unit, entry, data, mask); 12573 } 12574 #endif 12575 12576 #ifdef BCM_TOMAHAWK3_SUPPORT 12577 int 12578 bcm_tomahawk3_field_qualify_DstMultipathOverlay_get( 12579 int unit, 12580 bcm_field_entry_t entry, 12581 bcm_if_t *data, 12582 bcm_if_t *mask) 12583 { 12584 return bcm_esw_field_qualify_DstMultipathOverlay_get(unit, entry, data, mask); 12585 } 12586 #endif 12587 12588 #ifdef BCM_TOMAHAWK3_SUPPORT 12589 int 12590 bcm_tomahawk3_field_qualify_DstMultipathUnderlay( 12591 int unit, 12592 bcm_field_entry_t entry, 12593 bcm_if_t data, 12594 bcm_if_t mask) 12595 { 12596 return bcm_esw_field_qualify_DstMultipathUnderlay(unit, entry, data, mask); 12597 } 12598 #endif 12599 12600 #ifdef BCM_TOMAHAWK3_SUPPORT 12601 int 12602 bcm_tomahawk3_field_qualify_DstMultipathUnderlay_get( 12603 int unit, 12604 bcm_field_entry_t entry, 12605 bcm_if_t *data, 12606 bcm_if_t *mask) 12607 { 12608 return bcm_esw_field_qualify_DstMultipathUnderlay_get(unit, entry, data, mask); 12609 } 12610 #endif 12611 12612 #ifdef BCM_TOMAHAWK3_SUPPORT 12613 int 12614 bcm_tomahawk3_field_qualify_DstMultipath_get( 12615 int unit, 12616 bcm_field_entry_t entry, 12617 bcm_if_t *mpintf) 12618 { 12619 return bcm_esw_field_qualify_DstMultipath_get(unit, entry, mpintf); 12620 } 12621 #endif 12622 12623 #ifdef BCM_TOMAHAWK3_SUPPORT 12624 int 12625 bcm_tomahawk3_field_qualify_DstNivGport( 12626 int unit, 12627 bcm_field_entry_t entry, 12628 bcm_gport_t niv_port_id) 12629 { 12630 return bcm_esw_field_qualify_DstNivGport(unit, entry, niv_port_id); 12631 } 12632 #endif 12633 12634 #ifdef BCM_TOMAHAWK3_SUPPORT 12635 int 12636 bcm_tomahawk3_field_qualify_DstNivGport_get( 12637 int unit, 12638 bcm_field_entry_t entry, 12639 bcm_gport_t *niv_port_id) 12640 { 12641 return bcm_esw_field_qualify_DstNivGport_get(unit, entry, niv_port_id); 12642 } 12643 #endif 12644 12645 #ifdef BCM_TOMAHAWK3_SUPPORT 12646 int 12647 bcm_tomahawk3_field_qualify_DstNivGports( 12648 int unit, 12649 bcm_field_entry_t entry, 12650 bcm_gport_t niv_port_id, 12651 bcm_gport_t niv_port_mask) 12652 { 12653 return bcm_esw_field_qualify_DstNivGports(unit, entry, niv_port_id, niv_port_mask); 12654 } 12655 #endif 12656 12657 #ifdef BCM_TOMAHAWK3_SUPPORT 12658 int 12659 bcm_tomahawk3_field_qualify_DstNivGports_get( 12660 int unit, 12661 bcm_field_entry_t entry, 12662 bcm_gport_t *niv_port_id, 12663 bcm_gport_t *niv_port_mask) 12664 { 12665 return bcm_esw_field_qualify_DstNivGports_get(unit, entry, niv_port_id, niv_port_mask); 12666 } 12667 #endif 12668 12669 #ifdef BCM_TOMAHAWK3_SUPPORT 12670 int 12671 bcm_tomahawk3_field_qualify_DstPort( 12672 int unit, 12673 bcm_field_entry_t entry, 12674 bcm_module_t data_modid, 12675 bcm_module_t mask_modid, 12676 bcm_port_t data_port, 12677 bcm_port_t mask_port) 12678 { 12679 return bcm_esw_field_qualify_DstPort(unit, entry, data_modid, mask_modid, data_port, mask_port); 12680 } 12681 #endif 12682 12683 #ifdef BCM_TOMAHAWK3_SUPPORT 12684 int 12685 bcm_tomahawk3_field_qualify_DstPortSRLanId( 12686 int unit, 12687 bcm_field_entry_t entry, 12688 uint8 lan_id) 12689 { 12690 return bcm_esw_field_qualify_DstPortSRLanId(unit, entry, lan_id); 12691 } 12692 #endif 12693 12694 #ifdef BCM_TOMAHAWK3_SUPPORT 12695 int 12696 bcm_tomahawk3_field_qualify_DstPortSRLanId_get( 12697 int unit, 12698 bcm_field_entry_t entry, 12699 uint8 *lan_id) 12700 { 12701 return bcm_esw_field_qualify_DstPortSRLanId_get(unit, entry, lan_id); 12702 } 12703 #endif 12704 12705 #ifdef BCM_TOMAHAWK3_SUPPORT 12706 int 12707 bcm_tomahawk3_field_qualify_DstPortSRMode( 12708 int unit, 12709 bcm_field_entry_t entry, 12710 bcm_field_sr_port_mode_t type, 12711 uint8 mask) 12712 { 12713 return bcm_esw_field_qualify_DstPortSRMode(unit, entry, type, mask); 12714 } 12715 #endif 12716 12717 #ifdef BCM_TOMAHAWK3_SUPPORT 12718 int 12719 bcm_tomahawk3_field_qualify_DstPortSRMode_get( 12720 int unit, 12721 bcm_field_entry_t entry, 12722 bcm_field_sr_port_mode_t *type, 12723 uint8 *mask) 12724 { 12725 return bcm_esw_field_qualify_DstPortSRMode_get(unit, entry, type, mask); 12726 } 12727 #endif 12728 12729 #ifdef BCM_TOMAHAWK3_SUPPORT 12730 int 12731 bcm_tomahawk3_field_qualify_DstPortSRNetId( 12732 int unit, 12733 bcm_field_entry_t entry, 12734 uint8 net_id, 12735 uint8 mask) 12736 { 12737 return bcm_esw_field_qualify_DstPortSRNetId(unit, entry, net_id, mask); 12738 } 12739 #endif 12740 12741 #ifdef BCM_TOMAHAWK3_SUPPORT 12742 int 12743 bcm_tomahawk3_field_qualify_DstPortSRNetId_get( 12744 int unit, 12745 bcm_field_entry_t entry, 12746 uint8 *net_id, 12747 uint8 *mask) 12748 { 12749 return bcm_esw_field_qualify_DstPortSRNetId_get(unit, entry, net_id, mask); 12750 } 12751 #endif 12752 12753 #ifdef BCM_TOMAHAWK3_SUPPORT 12754 int 12755 bcm_tomahawk3_field_qualify_DstPortSRRoleInterlink( 12756 int unit, 12757 bcm_field_entry_t entry, 12758 uint8 data) 12759 { 12760 return bcm_esw_field_qualify_DstPortSRRoleInterlink(unit, entry, data); 12761 } 12762 #endif 12763 12764 #ifdef BCM_TOMAHAWK3_SUPPORT 12765 int 12766 bcm_tomahawk3_field_qualify_DstPortSRRoleInterlink_get( 12767 int unit, 12768 bcm_field_entry_t entry, 12769 uint8 *data) 12770 { 12771 return bcm_esw_field_qualify_DstPortSRRoleInterlink_get(unit, entry, data); 12772 } 12773 #endif 12774 12775 #ifdef BCM_TOMAHAWK3_SUPPORT 12776 int 12777 bcm_tomahawk3_field_qualify_DstPortSRType( 12778 int unit, 12779 bcm_field_entry_t entry, 12780 bcm_field_port_sr_type_t type) 12781 { 12782 return bcm_esw_field_qualify_DstPortSRType(unit, entry, type); 12783 } 12784 #endif 12785 12786 #ifdef BCM_TOMAHAWK3_SUPPORT 12787 int 12788 bcm_tomahawk3_field_qualify_DstPortSRType_get( 12789 int unit, 12790 bcm_field_entry_t entry, 12791 bcm_field_port_sr_type_t *type) 12792 { 12793 return bcm_esw_field_qualify_DstPortSRType_get(unit, entry, type); 12794 } 12795 #endif 12796 12797 #ifdef BCM_TOMAHAWK3_SUPPORT 12798 int 12799 bcm_tomahawk3_field_qualify_DstPort_get( 12800 int unit, 12801 bcm_field_entry_t entry, 12802 bcm_module_t *data_modid, 12803 bcm_module_t *mask_modid, 12804 bcm_port_t *data_port, 12805 bcm_port_t *mask_port) 12806 { 12807 return bcm_esw_field_qualify_DstPort_get(unit, entry, data_modid, mask_modid, data_port, mask_port); 12808 } 12809 #endif 12810 12811 #ifdef BCM_TOMAHAWK3_SUPPORT 12812 int 12813 bcm_tomahawk3_field_qualify_DstRpfGport( 12814 int unit, 12815 bcm_field_entry_t entry, 12816 bcm_gport_t data) 12817 { 12818 return bcm_esw_field_qualify_DstRpfGport(unit, entry, data); 12819 } 12820 #endif 12821 12822 #ifdef BCM_TOMAHAWK3_SUPPORT 12823 int 12824 bcm_tomahawk3_field_qualify_DstRpfGport_get( 12825 int unit, 12826 bcm_field_entry_t entry, 12827 bcm_gport_t *data) 12828 { 12829 return bcm_esw_field_qualify_DstRpfGport_get(unit, entry, data); 12830 } 12831 #endif 12832 12833 int 12834 bcm_tomahawk3_field_qualify_DstSysPortExt( 12835 int unit, 12836 bcm_field_entry_t entry, 12837 uint16 data, 12838 uint16 mask) 12839 { 12840 return BCM_E_UNAVAIL; 12841 } 12842 12843 int 12844 bcm_tomahawk3_field_qualify_DstSysPortExt_get( 12845 int unit, 12846 bcm_field_entry_t entry, 12847 uint16 *data, 12848 uint16 *mask) 12849 { 12850 return BCM_E_UNAVAIL; 12851 } 12852 12853 #ifdef BCM_TOMAHAWK3_SUPPORT 12854 int 12855 bcm_tomahawk3_field_qualify_DstTrunk( 12856 int unit, 12857 bcm_field_entry_t entry, 12858 bcm_trunk_t data, 12859 bcm_trunk_t mask) 12860 { 12861 return bcm_esw_field_qualify_DstTrunk(unit, entry, data, mask); 12862 } 12863 #endif 12864 12865 #ifdef BCM_TOMAHAWK3_SUPPORT 12866 int 12867 bcm_tomahawk3_field_qualify_DstTrunk_get( 12868 int unit, 12869 bcm_field_entry_t entry, 12870 bcm_trunk_t *data, 12871 bcm_trunk_t *mask) 12872 { 12873 return bcm_esw_field_qualify_DstTrunk_get(unit, entry, data, mask); 12874 } 12875 #endif 12876 12877 #ifdef BCM_TOMAHAWK3_SUPPORT 12878 int 12879 bcm_tomahawk3_field_qualify_DstVlanGport( 12880 int unit, 12881 bcm_field_entry_t entry, 12882 bcm_gport_t vlan_port_id) 12883 { 12884 return bcm_esw_field_qualify_DstVlanGport(unit, entry, vlan_port_id); 12885 } 12886 #endif 12887 12888 #ifdef BCM_TOMAHAWK3_SUPPORT 12889 int 12890 bcm_tomahawk3_field_qualify_DstVlanGport_get( 12891 int unit, 12892 bcm_field_entry_t entry, 12893 bcm_gport_t *vlan_port_id) 12894 { 12895 return bcm_esw_field_qualify_DstVlanGport_get(unit, entry, vlan_port_id); 12896 } 12897 #endif 12898 12899 #ifdef BCM_TOMAHAWK3_SUPPORT 12900 int 12901 bcm_tomahawk3_field_qualify_DstVlanGports( 12902 int unit, 12903 bcm_field_entry_t entry, 12904 bcm_gport_t vlan_port_id, 12905 bcm_gport_t vlan_port_mask) 12906 { 12907 return bcm_esw_field_qualify_DstVlanGports(unit, entry, vlan_port_id, vlan_port_mask); 12908 } 12909 #endif 12910 12911 #ifdef BCM_TOMAHAWK3_SUPPORT 12912 int 12913 bcm_tomahawk3_field_qualify_DstVlanGports_get( 12914 int unit, 12915 bcm_field_entry_t entry, 12916 bcm_gport_t *vlan_port_id, 12917 bcm_gport_t *vlan_port_mask) 12918 { 12919 return bcm_esw_field_qualify_DstVlanGports_get(unit, entry, vlan_port_id, vlan_port_mask); 12920 } 12921 #endif 12922 12923 #ifdef BCM_TOMAHAWK3_SUPPORT 12924 int 12925 bcm_tomahawk3_field_qualify_DstVxlanGport( 12926 int unit, 12927 bcm_field_entry_t entry, 12928 bcm_gport_t vxlan_port_id) 12929 { 12930 return bcm_esw_field_qualify_DstVxlanGport(unit, entry, vxlan_port_id); 12931 } 12932 #endif 12933 12934 #ifdef BCM_TOMAHAWK3_SUPPORT 12935 int 12936 bcm_tomahawk3_field_qualify_DstVxlanGport_get( 12937 int unit, 12938 bcm_field_entry_t entry, 12939 bcm_gport_t *vxlan_port_id) 12940 { 12941 return bcm_esw_field_qualify_DstVxlanGport_get(unit, entry, vxlan_port_id); 12942 } 12943 #endif 12944 12945 #ifdef BCM_TOMAHAWK3_SUPPORT 12946 int 12947 bcm_tomahawk3_field_qualify_DstVxlanGports( 12948 int unit, 12949 bcm_field_entry_t entry, 12950 bcm_gport_t vxlan_port_id, 12951 bcm_gport_t vxlan_port_mask) 12952 { 12953 return bcm_esw_field_qualify_DstVxlanGports(unit, entry, vxlan_port_id, vxlan_port_mask); 12954 } 12955 #endif 12956 12957 #ifdef BCM_TOMAHAWK3_SUPPORT 12958 int 12959 bcm_tomahawk3_field_qualify_DstVxlanGports_get( 12960 int unit, 12961 bcm_field_entry_t entry, 12962 bcm_gport_t *vxlan_port_id, 12963 bcm_gport_t *vxlan_port_mask) 12964 { 12965 return bcm_esw_field_qualify_DstVxlanGports_get(unit, entry, vxlan_port_id, vxlan_port_mask); 12966 } 12967 #endif 12968 12969 #ifdef BCM_TOMAHAWK3_SUPPORT 12970 int 12971 bcm_tomahawk3_field_qualify_DstWlanGport( 12972 int unit, 12973 bcm_field_entry_t entry, 12974 bcm_gport_t wlan_port_id) 12975 { 12976 return bcm_esw_field_qualify_DstWlanGport(unit, entry, wlan_port_id); 12977 } 12978 #endif 12979 12980 #ifdef BCM_TOMAHAWK3_SUPPORT 12981 int 12982 bcm_tomahawk3_field_qualify_DstWlanGport_get( 12983 int unit, 12984 bcm_field_entry_t entry, 12985 bcm_gport_t *wlan_port_id) 12986 { 12987 return bcm_esw_field_qualify_DstWlanGport_get(unit, entry, wlan_port_id); 12988 } 12989 #endif 12990 12991 #ifdef BCM_TOMAHAWK3_SUPPORT 12992 int 12993 bcm_tomahawk3_field_qualify_DstWlanGports( 12994 int unit, 12995 bcm_field_entry_t entry, 12996 bcm_gport_t wlan_port_id, 12997 bcm_gport_t wlan_port_mask) 12998 { 12999 return bcm_esw_field_qualify_DstWlanGports(unit, entry, wlan_port_id, wlan_port_mask); 13000 } 13001 #endif 13002 13003 #ifdef BCM_TOMAHAWK3_SUPPORT 13004 int 13005 bcm_tomahawk3_field_qualify_DstWlanGports_get( 13006 int unit, 13007 bcm_field_entry_t entry, 13008 bcm_gport_t *wlan_port_id, 13009 bcm_gport_t *wlan_port_mask) 13010 { 13011 return bcm_esw_field_qualify_DstWlanGports_get(unit, entry, wlan_port_id, wlan_port_mask); 13012 } 13013 #endif 13014 13015 int 13016 bcm_tomahawk3_field_qualify_ECid( 13017 int unit, 13018 bcm_field_entry_t entry, 13019 uint32 data, 13020 uint32 mask) 13021 { 13022 return BCM_E_UNAVAIL; 13023 } 13024 13025 int 13026 bcm_tomahawk3_field_qualify_ECid_get( 13027 int unit, 13028 bcm_field_entry_t entry, 13029 uint32 *data, 13030 uint32 *mask) 13031 { 13032 return BCM_E_UNAVAIL; 13033 } 13034 13035 #ifdef BCM_TOMAHAWK3_SUPPORT 13036 int 13037 bcm_tomahawk3_field_qualify_ETag( 13038 int unit, 13039 bcm_field_entry_t entry, 13040 uint64 data, 13041 uint64 mask) 13042 { 13043 return bcm_esw_field_qualify_ETag(unit, entry, data, mask); 13044 } 13045 #endif 13046 13047 #ifdef BCM_TOMAHAWK3_SUPPORT 13048 int 13049 bcm_tomahawk3_field_qualify_ETag_get( 13050 int unit, 13051 bcm_field_entry_t entry, 13052 uint64 *data, 13053 uint64 *mask) 13054 { 13055 return bcm_esw_field_qualify_ETag_get(unit, entry, data, mask); 13056 } 13057 #endif 13058 13059 #ifdef BCM_TOMAHAWK3_SUPPORT 13060 int 13061 bcm_tomahawk3_field_qualify_EcnValue( 13062 int unit, 13063 bcm_field_entry_t entry, 13064 uint8 data, 13065 uint8 mask) 13066 { 13067 return bcm_esw_field_qualify_EcnValue(unit, entry, data, mask); 13068 } 13069 #endif 13070 13071 #ifdef BCM_TOMAHAWK3_SUPPORT 13072 int 13073 bcm_tomahawk3_field_qualify_EcnValue_get( 13074 int unit, 13075 bcm_field_entry_t entry, 13076 uint8 *data, 13077 uint8 *mask) 13078 { 13079 return bcm_esw_field_qualify_EcnValue_get(unit, entry, data, mask); 13080 } 13081 #endif 13082 13083 #ifdef BCM_TOMAHAWK3_SUPPORT 13084 int 13085 bcm_tomahawk3_field_qualify_EgressClass( 13086 int unit, 13087 bcm_field_entry_t entry, 13088 uint16 data, 13089 uint16 mask) 13090 { 13091 return bcm_esw_field_qualify_EgressClass(unit, entry, data, mask); 13092 } 13093 #endif 13094 13095 #ifdef BCM_TOMAHAWK3_SUPPORT 13096 int 13097 bcm_tomahawk3_field_qualify_EgressClassL2Gre( 13098 int unit, 13099 bcm_field_entry_t entry, 13100 uint16 data, 13101 uint16 mask) 13102 { 13103 return bcm_esw_field_qualify_EgressClassL2Gre(unit, entry, data, mask); 13104 } 13105 #endif 13106 13107 #ifdef BCM_TOMAHAWK3_SUPPORT 13108 int 13109 bcm_tomahawk3_field_qualify_EgressClassL2Gre_get( 13110 int unit, 13111 bcm_field_entry_t entry, 13112 uint16 *data, 13113 uint16 *mask) 13114 { 13115 return bcm_esw_field_qualify_EgressClassL2Gre_get(unit, entry, data, mask); 13116 } 13117 #endif 13118 13119 #ifdef BCM_TOMAHAWK3_SUPPORT 13120 int 13121 bcm_tomahawk3_field_qualify_EgressClassL3Interface( 13122 int unit, 13123 bcm_field_entry_t entry, 13124 uint16 data, 13125 uint16 mask) 13126 { 13127 return bcm_esw_field_qualify_EgressClassL3Interface(unit, entry, data, mask); 13128 } 13129 #endif 13130 13131 #ifdef BCM_TOMAHAWK3_SUPPORT 13132 int 13133 bcm_tomahawk3_field_qualify_EgressClassL3InterfaceTunnel( 13134 int unit, 13135 bcm_field_entry_t entry, 13136 uint16 data, 13137 uint16 mask) 13138 { 13139 return bcm_esw_field_qualify_EgressClassL3InterfaceTunnel(unit, entry, data, mask); 13140 } 13141 #endif 13142 13143 #ifdef BCM_TOMAHAWK3_SUPPORT 13144 int 13145 bcm_tomahawk3_field_qualify_EgressClassL3InterfaceTunnel_get( 13146 int unit, 13147 bcm_field_entry_t entry, 13148 uint16 *data, 13149 uint16 *mask) 13150 { 13151 return bcm_esw_field_qualify_EgressClassL3InterfaceTunnel_get(unit, entry, data, mask); 13152 } 13153 #endif 13154 13155 #ifdef BCM_TOMAHAWK3_SUPPORT 13156 int 13157 bcm_tomahawk3_field_qualify_EgressClassL3Interface_get( 13158 int unit, 13159 bcm_field_entry_t entry, 13160 uint16 *data, 13161 uint16 *mask) 13162 { 13163 return bcm_esw_field_qualify_EgressClassL3Interface_get(unit, entry, data, mask); 13164 } 13165 #endif 13166 13167 #ifdef BCM_TOMAHAWK3_SUPPORT 13168 int 13169 bcm_tomahawk3_field_qualify_EgressClassPort( 13170 int unit, 13171 bcm_field_entry_t entry, 13172 uint16 data, 13173 uint16 mask) 13174 { 13175 return bcm_esw_field_qualify_EgressClassPort(unit, entry, data, mask); 13176 } 13177 #endif 13178 13179 #ifdef BCM_TOMAHAWK3_SUPPORT 13180 int 13181 bcm_tomahawk3_field_qualify_EgressClassPort_get( 13182 int unit, 13183 bcm_field_entry_t entry, 13184 uint16 *data, 13185 uint16 *mask) 13186 { 13187 return bcm_esw_field_qualify_EgressClassPort_get(unit, entry, data, mask); 13188 } 13189 #endif 13190 13191 #ifdef BCM_TOMAHAWK3_SUPPORT 13192 int 13193 bcm_tomahawk3_field_qualify_EgressClassTrill( 13194 int unit, 13195 bcm_field_entry_t entry, 13196 uint16 data, 13197 uint16 mask) 13198 { 13199 return bcm_esw_field_qualify_EgressClassTrill(unit, entry, data, mask); 13200 } 13201 #endif 13202 13203 #ifdef BCM_TOMAHAWK3_SUPPORT 13204 int 13205 bcm_tomahawk3_field_qualify_EgressClassTrill_get( 13206 int unit, 13207 bcm_field_entry_t entry, 13208 uint16 *data, 13209 uint16 *mask) 13210 { 13211 return bcm_esw_field_qualify_EgressClassTrill_get(unit, entry, data, mask); 13212 } 13213 #endif 13214 13215 #ifdef BCM_TOMAHAWK3_SUPPORT 13216 int 13217 bcm_tomahawk3_field_qualify_EgressClassTunnel( 13218 int unit, 13219 bcm_field_entry_t entry, 13220 uint16 data, 13221 uint16 mask) 13222 { 13223 return bcm_esw_field_qualify_EgressClassTunnel(unit, entry, data, mask); 13224 } 13225 #endif 13226 13227 #ifdef BCM_TOMAHAWK3_SUPPORT 13228 int 13229 bcm_tomahawk3_field_qualify_EgressClassTunnel_get( 13230 int unit, 13231 bcm_field_entry_t entry, 13232 uint16 *data, 13233 uint16 *mask) 13234 { 13235 return bcm_esw_field_qualify_EgressClassTunnel_get(unit, entry, data, mask); 13236 } 13237 #endif 13238 13239 #ifdef BCM_TOMAHAWK3_SUPPORT 13240 int 13241 bcm_tomahawk3_field_qualify_EgressClassVxlan( 13242 int unit, 13243 bcm_field_entry_t entry, 13244 uint16 data, 13245 uint16 mask) 13246 { 13247 return bcm_esw_field_qualify_EgressClassVxlan(unit, entry, data, mask); 13248 } 13249 #endif 13250 13251 #ifdef BCM_TOMAHAWK3_SUPPORT 13252 int 13253 bcm_tomahawk3_field_qualify_EgressClassVxlan_get( 13254 int unit, 13255 bcm_field_entry_t entry, 13256 uint16 *data, 13257 uint16 *mask) 13258 { 13259 return bcm_esw_field_qualify_EgressClassVxlan_get(unit, entry, data, mask); 13260 } 13261 #endif 13262 13263 #ifdef BCM_TOMAHAWK3_SUPPORT 13264 int 13265 bcm_tomahawk3_field_qualify_EgressClassWlan( 13266 int unit, 13267 bcm_field_entry_t entry, 13268 uint16 data, 13269 uint16 mask) 13270 { 13271 return bcm_esw_field_qualify_EgressClassWlan(unit, entry, data, mask); 13272 } 13273 #endif 13274 13275 #ifdef BCM_TOMAHAWK3_SUPPORT 13276 int 13277 bcm_tomahawk3_field_qualify_EgressClassWlan_get( 13278 int unit, 13279 bcm_field_entry_t entry, 13280 uint16 *data, 13281 uint16 *mask) 13282 { 13283 return bcm_esw_field_qualify_EgressClassWlan_get(unit, entry, data, mask); 13284 } 13285 #endif 13286 13287 #ifdef BCM_TOMAHAWK3_SUPPORT 13288 int 13289 bcm_tomahawk3_field_qualify_EgressClass_get( 13290 int unit, 13291 bcm_field_entry_t entry, 13292 uint16 *data, 13293 uint16 *mask) 13294 { 13295 return bcm_esw_field_qualify_EgressClass_get(unit, entry, data, mask); 13296 } 13297 #endif 13298 13299 #ifdef BCM_TOMAHAWK3_SUPPORT 13300 int 13301 bcm_tomahawk3_field_qualify_EgressForwardingClassId( 13302 int unit, 13303 bcm_field_entry_t entry, 13304 int data, 13305 int mask) 13306 { 13307 return bcm_esw_field_qualify_EgressForwardingClassId(unit, entry, data, mask); 13308 } 13309 #endif 13310 13311 #ifdef BCM_TOMAHAWK3_SUPPORT 13312 int 13313 bcm_tomahawk3_field_qualify_EgressForwardingClassId_get( 13314 int unit, 13315 bcm_field_entry_t entry, 13316 int *data, 13317 int *mask) 13318 { 13319 return bcm_esw_field_qualify_EgressForwardingClassId_get(unit, entry, data, mask); 13320 } 13321 #endif 13322 13323 #ifdef BCM_TOMAHAWK3_SUPPORT 13324 int 13325 bcm_tomahawk3_field_qualify_EtherType( 13326 int unit, 13327 bcm_field_entry_t entry, 13328 uint16 data, 13329 uint16 mask) 13330 { 13331 return bcm_esw_field_qualify_EtherType(unit, entry, data, mask); 13332 } 13333 #endif 13334 13335 #ifdef BCM_TOMAHAWK3_SUPPORT 13336 int 13337 bcm_tomahawk3_field_qualify_EtherTypeClass( 13338 int unit, 13339 bcm_field_entry_t entry, 13340 bcm_class_t data, 13341 bcm_class_t mask) 13342 { 13343 return bcm_esw_field_qualify_EtherTypeClass(unit, entry, data, mask); 13344 } 13345 #endif 13346 13347 #ifdef BCM_TOMAHAWK3_SUPPORT 13348 int 13349 bcm_tomahawk3_field_qualify_EtherTypeClass_get( 13350 int unit, 13351 bcm_field_entry_t entry, 13352 bcm_class_t *data, 13353 bcm_class_t *mask) 13354 { 13355 return bcm_esw_field_qualify_EtherTypeClass_get(unit, entry, data, mask); 13356 } 13357 #endif 13358 13359 #ifdef BCM_TOMAHAWK3_SUPPORT 13360 int 13361 bcm_tomahawk3_field_qualify_EtherType_get( 13362 int unit, 13363 bcm_field_entry_t entry, 13364 uint16 *data, 13365 uint16 *mask) 13366 { 13367 return bcm_esw_field_qualify_EtherType_get(unit, entry, data, mask); 13368 } 13369 #endif 13370 13371 #ifdef BCM_TOMAHAWK3_SUPPORT 13372 int 13373 bcm_tomahawk3_field_qualify_EthernetOamClassVlanTranslateKeyFirst( 13374 int unit, 13375 bcm_field_entry_t entry, 13376 uint8 data, 13377 uint8 mask) 13378 { 13379 return bcm_esw_field_qualify_EthernetOamClassVlanTranslateKeyFirst(unit, entry, data, mask); 13380 } 13381 #endif 13382 13383 #ifdef BCM_TOMAHAWK3_SUPPORT 13384 int 13385 bcm_tomahawk3_field_qualify_EthernetOamClassVlanTranslateKeyFirst_get( 13386 int unit, 13387 bcm_field_entry_t entry, 13388 uint8 *data, 13389 uint8 *mask) 13390 { 13391 return bcm_esw_field_qualify_EthernetOamClassVlanTranslateKeyFirst_get(unit, entry, data, mask); 13392 } 13393 #endif 13394 13395 #ifdef BCM_TOMAHAWK3_SUPPORT 13396 int 13397 bcm_tomahawk3_field_qualify_EthernetOamClassVlanTranslateKeySecond( 13398 int unit, 13399 bcm_field_entry_t entry, 13400 uint8 data, 13401 uint8 mask) 13402 { 13403 return bcm_esw_field_qualify_EthernetOamClassVlanTranslateKeySecond(unit, entry, data, mask); 13404 } 13405 #endif 13406 13407 #ifdef BCM_TOMAHAWK3_SUPPORT 13408 int 13409 bcm_tomahawk3_field_qualify_EthernetOamClassVlanTranslateKeySecond_get( 13410 int unit, 13411 bcm_field_entry_t entry, 13412 uint8 *data, 13413 uint8 *mask) 13414 { 13415 return bcm_esw_field_qualify_EthernetOamClassVlanTranslateKeySecond_get(unit, entry, data, mask); 13416 } 13417 #endif 13418 13419 #ifdef BCM_TOMAHAWK3_SUPPORT 13420 int 13421 bcm_tomahawk3_field_qualify_EthernetOamClassVpn( 13422 int unit, 13423 bcm_field_entry_t entry, 13424 uint8 data, 13425 uint8 mask) 13426 { 13427 return bcm_esw_field_qualify_EthernetOamClassVpn(unit, entry, data, mask); 13428 } 13429 #endif 13430 13431 #ifdef BCM_TOMAHAWK3_SUPPORT 13432 int 13433 bcm_tomahawk3_field_qualify_EthernetOamClassVpn_get( 13434 int unit, 13435 bcm_field_entry_t entry, 13436 uint8 *data, 13437 uint8 *mask) 13438 { 13439 return bcm_esw_field_qualify_EthernetOamClassVpn_get(unit, entry, data, mask); 13440 } 13441 #endif 13442 13443 #ifdef BCM_TOMAHAWK3_SUPPORT 13444 int 13445 bcm_tomahawk3_field_qualify_EthernetOamDstClassL2( 13446 int unit, 13447 bcm_field_entry_t entry, 13448 uint8 data, 13449 uint8 mask) 13450 { 13451 return bcm_esw_field_qualify_EthernetOamDstClassL2(unit, entry, data, mask); 13452 } 13453 #endif 13454 13455 #ifdef BCM_TOMAHAWK3_SUPPORT 13456 int 13457 bcm_tomahawk3_field_qualify_EthernetOamDstClassL2_get( 13458 int unit, 13459 bcm_field_entry_t entry, 13460 uint8 *data, 13461 uint8 *mask) 13462 { 13463 return bcm_esw_field_qualify_EthernetOamDstClassL2_get(unit, entry, data, mask); 13464 } 13465 #endif 13466 13467 #ifdef BCM_TOMAHAWK3_SUPPORT 13468 int 13469 bcm_tomahawk3_field_qualify_EthernetOamHeaderBits0_31( 13470 int unit, 13471 bcm_field_entry_t entry, 13472 uint32 data, 13473 uint32 mask) 13474 { 13475 return bcm_esw_field_qualify_EthernetOamHeaderBits0_31(unit, entry, data, mask); 13476 } 13477 #endif 13478 13479 #ifdef BCM_TOMAHAWK3_SUPPORT 13480 int 13481 bcm_tomahawk3_field_qualify_EthernetOamHeaderBits0_31_get( 13482 int unit, 13483 bcm_field_entry_t entry, 13484 uint32 *data, 13485 uint32 *mask) 13486 { 13487 return bcm_esw_field_qualify_EthernetOamHeaderBits0_31_get(unit, entry, data, mask); 13488 } 13489 #endif 13490 13491 #ifdef BCM_TOMAHAWK3_SUPPORT 13492 int 13493 bcm_tomahawk3_field_qualify_EthernetOamHeaderBits32_63( 13494 int unit, 13495 bcm_field_entry_t entry, 13496 uint32 data, 13497 uint32 mask) 13498 { 13499 return bcm_esw_field_qualify_EthernetOamHeaderBits32_63(unit, entry, data, mask); 13500 } 13501 #endif 13502 13503 #ifdef BCM_TOMAHAWK3_SUPPORT 13504 int 13505 bcm_tomahawk3_field_qualify_EthernetOamHeaderBits32_63_get( 13506 int unit, 13507 bcm_field_entry_t entry, 13508 uint32 *data, 13509 uint32 *mask) 13510 { 13511 return bcm_esw_field_qualify_EthernetOamHeaderBits32_63_get(unit, entry, data, mask); 13512 } 13513 #endif 13514 13515 #ifdef BCM_TOMAHAWK3_SUPPORT 13516 int 13517 bcm_tomahawk3_field_qualify_EthernetOamInterfaceClassMim( 13518 int unit, 13519 bcm_field_entry_t entry, 13520 uint8 data, 13521 uint8 mask) 13522 { 13523 return bcm_esw_field_qualify_EthernetOamInterfaceClassMim(unit, entry, data, mask); 13524 } 13525 #endif 13526 13527 #ifdef BCM_TOMAHAWK3_SUPPORT 13528 int 13529 bcm_tomahawk3_field_qualify_EthernetOamInterfaceClassMim_get( 13530 int unit, 13531 bcm_field_entry_t entry, 13532 uint8 *data, 13533 uint8 *mask) 13534 { 13535 return bcm_esw_field_qualify_EthernetOamInterfaceClassMim_get(unit, entry, data, mask); 13536 } 13537 #endif 13538 13539 #ifdef BCM_TOMAHAWK3_SUPPORT 13540 int 13541 bcm_tomahawk3_field_qualify_EthernetOamInterfaceClassMpls( 13542 int unit, 13543 bcm_field_entry_t entry, 13544 uint8 data, 13545 uint8 mask) 13546 { 13547 return bcm_esw_field_qualify_EthernetOamInterfaceClassMpls(unit, entry, data, mask); 13548 } 13549 #endif 13550 13551 #ifdef BCM_TOMAHAWK3_SUPPORT 13552 int 13553 bcm_tomahawk3_field_qualify_EthernetOamInterfaceClassMpls_get( 13554 int unit, 13555 bcm_field_entry_t entry, 13556 uint8 *data, 13557 uint8 *mask) 13558 { 13559 return bcm_esw_field_qualify_EthernetOamInterfaceClassMpls_get(unit, entry, data, mask); 13560 } 13561 #endif 13562 13563 #ifdef BCM_TOMAHAWK3_SUPPORT 13564 int 13565 bcm_tomahawk3_field_qualify_EthernetOamInterfaceClassNiv( 13566 int unit, 13567 bcm_field_entry_t entry, 13568 uint8 data, 13569 uint8 mask) 13570 { 13571 return bcm_esw_field_qualify_EthernetOamInterfaceClassNiv(unit, entry, data, mask); 13572 } 13573 #endif 13574 13575 #ifdef BCM_TOMAHAWK3_SUPPORT 13576 int 13577 bcm_tomahawk3_field_qualify_EthernetOamInterfaceClassNiv_get( 13578 int unit, 13579 bcm_field_entry_t entry, 13580 uint8 *data, 13581 uint8 *mask) 13582 { 13583 return bcm_esw_field_qualify_EthernetOamInterfaceClassNiv_get(unit, entry, data, mask); 13584 } 13585 #endif 13586 13587 #ifdef BCM_TOMAHAWK3_SUPPORT 13588 int 13589 bcm_tomahawk3_field_qualify_EthernetOamInterfaceClassPort( 13590 int unit, 13591 bcm_field_entry_t entry, 13592 uint8 data, 13593 uint8 mask) 13594 { 13595 return bcm_esw_field_qualify_EthernetOamInterfaceClassPort(unit, entry, data, mask); 13596 } 13597 #endif 13598 13599 #ifdef BCM_TOMAHAWK3_SUPPORT 13600 int 13601 bcm_tomahawk3_field_qualify_EthernetOamInterfaceClassPort_get( 13602 int unit, 13603 bcm_field_entry_t entry, 13604 uint8 *data, 13605 uint8 *mask) 13606 { 13607 return bcm_esw_field_qualify_EthernetOamInterfaceClassPort_get(unit, entry, data, mask); 13608 } 13609 #endif 13610 13611 #ifdef BCM_TOMAHAWK3_SUPPORT 13612 int 13613 bcm_tomahawk3_field_qualify_EthernetOamInterfaceClassVlan( 13614 int unit, 13615 bcm_field_entry_t entry, 13616 uint8 data, 13617 uint8 mask) 13618 { 13619 return bcm_esw_field_qualify_EthernetOamInterfaceClassVlan(unit, entry, data, mask); 13620 } 13621 #endif 13622 13623 #ifdef BCM_TOMAHAWK3_SUPPORT 13624 int 13625 bcm_tomahawk3_field_qualify_EthernetOamInterfaceClassVlan_get( 13626 int unit, 13627 bcm_field_entry_t entry, 13628 uint8 *data, 13629 uint8 *mask) 13630 { 13631 return bcm_esw_field_qualify_EthernetOamInterfaceClassVlan_get(unit, entry, data, mask); 13632 } 13633 #endif 13634 13635 #ifdef BCM_TOMAHAWK3_SUPPORT 13636 int 13637 bcm_tomahawk3_field_qualify_EthernetOamInterfaceClassVxlan( 13638 int unit, 13639 bcm_field_entry_t entry, 13640 uint8 data, 13641 uint8 mask) 13642 { 13643 return bcm_esw_field_qualify_EthernetOamInterfaceClassVxlan(unit, entry, data, mask); 13644 } 13645 #endif 13646 13647 #ifdef BCM_TOMAHAWK3_SUPPORT 13648 int 13649 bcm_tomahawk3_field_qualify_EthernetOamInterfaceClassVxlan_get( 13650 int unit, 13651 bcm_field_entry_t entry, 13652 uint8 *data, 13653 uint8 *mask) 13654 { 13655 return bcm_esw_field_qualify_EthernetOamInterfaceClassVxlan_get(unit, entry, data, mask); 13656 } 13657 #endif 13658 13659 #ifdef BCM_TOMAHAWK3_SUPPORT 13660 int 13661 bcm_tomahawk3_field_qualify_EthernetOamTxPktUPMEP( 13662 int unit, 13663 bcm_field_entry_t entry, 13664 uint8 data, 13665 uint8 mask) 13666 { 13667 return bcm_esw_field_qualify_EthernetOamTxPktUPMEP(unit, entry, data, mask); 13668 } 13669 #endif 13670 13671 #ifdef BCM_TOMAHAWK3_SUPPORT 13672 int 13673 bcm_tomahawk3_field_qualify_EthernetOamTxPktUPMEP_get( 13674 int unit, 13675 bcm_field_entry_t entry, 13676 uint8 *data, 13677 uint8 *mask) 13678 { 13679 return bcm_esw_field_qualify_EthernetOamTxPktUPMEP_get(unit, entry, data, mask); 13680 } 13681 #endif 13682 13683 #ifdef BCM_TOMAHAWK3_SUPPORT 13684 int 13685 bcm_tomahawk3_field_qualify_ExactMatchActionClassId( 13686 int unit, 13687 bcm_field_entry_t entry, 13688 int group_pri, 13689 uint32 data, 13690 uint32 mask) 13691 { 13692 return bcm_esw_field_qualify_ExactMatchActionClassId(unit, entry, group_pri, data, mask); 13693 } 13694 #endif 13695 13696 #ifdef BCM_TOMAHAWK3_SUPPORT 13697 int 13698 bcm_tomahawk3_field_qualify_ExactMatchActionClassId_get( 13699 int unit, 13700 bcm_field_entry_t entry, 13701 int group_pri, 13702 uint32 *data, 13703 uint32 *mask) 13704 { 13705 return bcm_esw_field_qualify_ExactMatchActionClassId_get(unit, entry, group_pri, data, mask); 13706 } 13707 #endif 13708 13709 #ifdef BCM_TOMAHAWK3_SUPPORT 13710 int 13711 bcm_tomahawk3_field_qualify_ExactMatchGroupClassId( 13712 int unit, 13713 bcm_field_entry_t entry, 13714 int group_pri, 13715 bcm_field_group_t group) 13716 { 13717 return bcm_esw_field_qualify_ExactMatchGroupClassId(unit, entry, group_pri, group); 13718 } 13719 #endif 13720 13721 #ifdef BCM_TOMAHAWK3_SUPPORT 13722 int 13723 bcm_tomahawk3_field_qualify_ExactMatchGroupClassId_get( 13724 int unit, 13725 bcm_field_entry_t entry, 13726 int group_pri, 13727 bcm_field_group_t *group) 13728 { 13729 return bcm_esw_field_qualify_ExactMatchGroupClassId_get(unit, entry, group_pri, group); 13730 } 13731 #endif 13732 13733 #ifdef BCM_TOMAHAWK3_SUPPORT 13734 int 13735 bcm_tomahawk3_field_qualify_ExactMatchHitStatus( 13736 int unit, 13737 bcm_field_entry_t entry, 13738 int group_pri, 13739 uint8 data, 13740 uint8 mask) 13741 { 13742 return bcm_esw_field_qualify_ExactMatchHitStatus(unit, entry, group_pri, data, mask); 13743 } 13744 #endif 13745 13746 #ifdef BCM_TOMAHAWK3_SUPPORT 13747 int 13748 bcm_tomahawk3_field_qualify_ExactMatchHitStatus_get( 13749 int unit, 13750 bcm_field_entry_t entry, 13751 int group_pri, 13752 uint8 *data, 13753 uint8 *mask) 13754 { 13755 return bcm_esw_field_qualify_ExactMatchHitStatus_get(unit, entry, group_pri, data, mask); 13756 } 13757 #endif 13758 13759 #ifdef BCM_TOMAHAWK3_SUPPORT 13760 int 13761 bcm_tomahawk3_field_qualify_ExtensionHeader2Type( 13762 int unit, 13763 bcm_field_entry_t entry, 13764 uint8 data, 13765 uint8 mask) 13766 { 13767 return bcm_esw_field_qualify_ExtensionHeader2Type(unit, entry, data, mask); 13768 } 13769 #endif 13770 13771 #ifdef BCM_TOMAHAWK3_SUPPORT 13772 int 13773 bcm_tomahawk3_field_qualify_ExtensionHeader2Type_get( 13774 int unit, 13775 bcm_field_entry_t entry, 13776 uint8 *data, 13777 uint8 *mask) 13778 { 13779 return bcm_esw_field_qualify_ExtensionHeader2Type_get(unit, entry, data, mask); 13780 } 13781 #endif 13782 13783 #ifdef BCM_TOMAHAWK3_SUPPORT 13784 int 13785 bcm_tomahawk3_field_qualify_ExtensionHeaderSubCode( 13786 int unit, 13787 bcm_field_entry_t entry, 13788 uint8 data, 13789 uint8 mask) 13790 { 13791 return bcm_esw_field_qualify_ExtensionHeaderSubCode(unit, entry, data, mask); 13792 } 13793 #endif 13794 13795 #ifdef BCM_TOMAHAWK3_SUPPORT 13796 int 13797 bcm_tomahawk3_field_qualify_ExtensionHeaderSubCode_get( 13798 int unit, 13799 bcm_field_entry_t entry, 13800 uint8 *data, 13801 uint8 *mask) 13802 { 13803 return bcm_esw_field_qualify_ExtensionHeaderSubCode_get(unit, entry, data, mask); 13804 } 13805 #endif 13806 13807 #ifdef BCM_TOMAHAWK3_SUPPORT 13808 int 13809 bcm_tomahawk3_field_qualify_ExtensionHeaderType( 13810 int unit, 13811 bcm_field_entry_t entry, 13812 uint8 data, 13813 uint8 mask) 13814 { 13815 return bcm_esw_field_qualify_ExtensionHeaderType(unit, entry, data, mask); 13816 } 13817 #endif 13818 13819 #ifdef BCM_TOMAHAWK3_SUPPORT 13820 int 13821 bcm_tomahawk3_field_qualify_ExtensionHeaderType_get( 13822 int unit, 13823 bcm_field_entry_t entry, 13824 uint8 *data, 13825 uint8 *mask) 13826 { 13827 return bcm_esw_field_qualify_ExtensionHeaderType_get(unit, entry, data, mask); 13828 } 13829 #endif 13830 13831 #ifdef BCM_TOMAHAWK3_SUPPORT 13832 int 13833 bcm_tomahawk3_field_qualify_ExternalHit0( 13834 int unit, 13835 bcm_field_entry_t entry, 13836 uint8 data, 13837 uint8 mask) 13838 { 13839 return bcm_esw_field_qualify_ExternalHit0(unit, entry, data, mask); 13840 } 13841 #endif 13842 13843 #ifdef BCM_TOMAHAWK3_SUPPORT 13844 int 13845 bcm_tomahawk3_field_qualify_ExternalHit0_get( 13846 int unit, 13847 bcm_field_entry_t entry, 13848 uint8 *data, 13849 uint8 *mask) 13850 { 13851 return bcm_esw_field_qualify_ExternalHit0_get(unit, entry, data, mask); 13852 } 13853 #endif 13854 13855 #ifdef BCM_TOMAHAWK3_SUPPORT 13856 int 13857 bcm_tomahawk3_field_qualify_ExternalHit1( 13858 int unit, 13859 bcm_field_entry_t entry, 13860 uint8 data, 13861 uint8 mask) 13862 { 13863 return bcm_esw_field_qualify_ExternalHit1(unit, entry, data, mask); 13864 } 13865 #endif 13866 13867 #ifdef BCM_TOMAHAWK3_SUPPORT 13868 int 13869 bcm_tomahawk3_field_qualify_ExternalHit1_get( 13870 int unit, 13871 bcm_field_entry_t entry, 13872 uint8 *data, 13873 uint8 *mask) 13874 { 13875 return bcm_esw_field_qualify_ExternalHit1_get(unit, entry, data, mask); 13876 } 13877 #endif 13878 13879 #ifdef BCM_TOMAHAWK3_SUPPORT 13880 int 13881 bcm_tomahawk3_field_qualify_ExternalHit2( 13882 int unit, 13883 bcm_field_entry_t entry, 13884 uint8 data, 13885 uint8 mask) 13886 { 13887 return bcm_esw_field_qualify_ExternalHit2(unit, entry, data, mask); 13888 } 13889 #endif 13890 13891 #ifdef BCM_TOMAHAWK3_SUPPORT 13892 int 13893 bcm_tomahawk3_field_qualify_ExternalHit2_get( 13894 int unit, 13895 bcm_field_entry_t entry, 13896 uint8 *data, 13897 uint8 *mask) 13898 { 13899 return bcm_esw_field_qualify_ExternalHit2_get(unit, entry, data, mask); 13900 } 13901 #endif 13902 13903 #ifdef BCM_TOMAHAWK3_SUPPORT 13904 int 13905 bcm_tomahawk3_field_qualify_ExternalHit3( 13906 int unit, 13907 bcm_field_entry_t entry, 13908 uint8 data, 13909 uint8 mask) 13910 { 13911 return bcm_esw_field_qualify_ExternalHit3(unit, entry, data, mask); 13912 } 13913 #endif 13914 13915 #ifdef BCM_TOMAHAWK3_SUPPORT 13916 int 13917 bcm_tomahawk3_field_qualify_ExternalHit3_get( 13918 int unit, 13919 bcm_field_entry_t entry, 13920 uint8 *data, 13921 uint8 *mask) 13922 { 13923 return bcm_esw_field_qualify_ExternalHit3_get(unit, entry, data, mask); 13924 } 13925 #endif 13926 13927 int 13928 bcm_tomahawk3_field_qualify_ExternalHit4( 13929 int unit, 13930 bcm_field_entry_t entry, 13931 uint8 data, 13932 uint8 mask) 13933 { 13934 return BCM_E_UNAVAIL; 13935 } 13936 13937 int 13938 bcm_tomahawk3_field_qualify_ExternalHit4_get( 13939 int unit, 13940 bcm_field_entry_t entry, 13941 uint8 *data, 13942 uint8 *mask) 13943 { 13944 return BCM_E_UNAVAIL; 13945 } 13946 13947 int 13948 bcm_tomahawk3_field_qualify_ExternalHit5( 13949 int unit, 13950 bcm_field_entry_t entry, 13951 uint8 data, 13952 uint8 mask) 13953 { 13954 return BCM_E_UNAVAIL; 13955 } 13956 13957 int 13958 bcm_tomahawk3_field_qualify_ExternalHit5_get( 13959 int unit, 13960 bcm_field_entry_t entry, 13961 uint8 *data, 13962 uint8 *mask) 13963 { 13964 return BCM_E_UNAVAIL; 13965 } 13966 13967 #ifdef BCM_TOMAHAWK3_SUPPORT 13968 int 13969 bcm_tomahawk3_field_qualify_ExternalHit6( 13970 int unit, 13971 bcm_field_entry_t entry, 13972 uint8 data, 13973 uint8 mask) 13974 { 13975 return bcm_esw_field_qualify_ExternalHit6(unit, entry, data, mask); 13976 } 13977 #endif 13978 13979 #ifdef BCM_TOMAHAWK3_SUPPORT 13980 int 13981 bcm_tomahawk3_field_qualify_ExternalHit6_get( 13982 int unit, 13983 bcm_field_entry_t entry, 13984 uint8 *data, 13985 uint8 *mask) 13986 { 13987 return bcm_esw_field_qualify_ExternalHit6_get(unit, entry, data, mask); 13988 } 13989 #endif 13990 13991 #ifdef BCM_TOMAHAWK3_SUPPORT 13992 int 13993 bcm_tomahawk3_field_qualify_ExternalHit7( 13994 int unit, 13995 bcm_field_entry_t entry, 13996 uint8 data, 13997 uint8 mask) 13998 { 13999 return bcm_esw_field_qualify_ExternalHit7(unit, entry, data, mask); 14000 } 14001 #endif 14002 14003 #ifdef BCM_TOMAHAWK3_SUPPORT 14004 int 14005 bcm_tomahawk3_field_qualify_ExternalHit7_get( 14006 int unit, 14007 bcm_field_entry_t entry, 14008 uint8 *data, 14009 uint8 *mask) 14010 { 14011 return bcm_esw_field_qualify_ExternalHit7_get(unit, entry, data, mask); 14012 } 14013 #endif 14014 14015 #ifdef BCM_TOMAHAWK3_SUPPORT 14016 int 14017 bcm_tomahawk3_field_qualify_ExternalValue0( 14018 int unit, 14019 bcm_field_entry_t entry, 14020 uint64 data, 14021 uint64 mask) 14022 { 14023 return bcm_esw_field_qualify_ExternalValue0(unit, entry, data, mask); 14024 } 14025 #endif 14026 14027 #ifdef BCM_TOMAHAWK3_SUPPORT 14028 int 14029 bcm_tomahawk3_field_qualify_ExternalValue0_get( 14030 int unit, 14031 bcm_field_entry_t entry, 14032 uint64 *data, 14033 uint64 *mask) 14034 { 14035 return bcm_esw_field_qualify_ExternalValue0_get(unit, entry, data, mask); 14036 } 14037 #endif 14038 14039 #ifdef BCM_TOMAHAWK3_SUPPORT 14040 int 14041 bcm_tomahawk3_field_qualify_ExternalValue1( 14042 int unit, 14043 bcm_field_entry_t entry, 14044 uint64 data, 14045 uint64 mask) 14046 { 14047 return bcm_esw_field_qualify_ExternalValue1(unit, entry, data, mask); 14048 } 14049 #endif 14050 14051 #ifdef BCM_TOMAHAWK3_SUPPORT 14052 int 14053 bcm_tomahawk3_field_qualify_ExternalValue1_get( 14054 int unit, 14055 bcm_field_entry_t entry, 14056 uint64 *data, 14057 uint64 *mask) 14058 { 14059 return bcm_esw_field_qualify_ExternalValue1_get(unit, entry, data, mask); 14060 } 14061 #endif 14062 14063 #ifdef BCM_TOMAHAWK3_SUPPORT 14064 int 14065 bcm_tomahawk3_field_qualify_ExternalValue2( 14066 int unit, 14067 bcm_field_entry_t entry, 14068 uint64 data, 14069 uint64 mask) 14070 { 14071 return bcm_esw_field_qualify_ExternalValue2(unit, entry, data, mask); 14072 } 14073 #endif 14074 14075 #ifdef BCM_TOMAHAWK3_SUPPORT 14076 int 14077 bcm_tomahawk3_field_qualify_ExternalValue2_get( 14078 int unit, 14079 bcm_field_entry_t entry, 14080 uint64 *data, 14081 uint64 *mask) 14082 { 14083 return bcm_esw_field_qualify_ExternalValue2_get(unit, entry, data, mask); 14084 } 14085 #endif 14086 14087 #ifdef BCM_TOMAHAWK3_SUPPORT 14088 int 14089 bcm_tomahawk3_field_qualify_ExternalValue3( 14090 int unit, 14091 bcm_field_entry_t entry, 14092 uint64 data, 14093 uint64 mask) 14094 { 14095 return bcm_esw_field_qualify_ExternalValue3(unit, entry, data, mask); 14096 } 14097 #endif 14098 14099 #ifdef BCM_TOMAHAWK3_SUPPORT 14100 int 14101 bcm_tomahawk3_field_qualify_ExternalValue3_get( 14102 int unit, 14103 bcm_field_entry_t entry, 14104 uint64 *data, 14105 uint64 *mask) 14106 { 14107 return bcm_esw_field_qualify_ExternalValue3_get(unit, entry, data, mask); 14108 } 14109 #endif 14110 14111 int 14112 bcm_tomahawk3_field_qualify_ExternalValue4( 14113 int unit, 14114 bcm_field_entry_t entry, 14115 uint64 data, 14116 uint64 mask) 14117 { 14118 return BCM_E_UNAVAIL; 14119 } 14120 14121 int 14122 bcm_tomahawk3_field_qualify_ExternalValue4_get( 14123 int unit, 14124 bcm_field_entry_t entry, 14125 uint64 *data, 14126 uint64 *mask) 14127 { 14128 return BCM_E_UNAVAIL; 14129 } 14130 14131 int 14132 bcm_tomahawk3_field_qualify_ExternalValue5( 14133 int unit, 14134 bcm_field_entry_t entry, 14135 uint64 data, 14136 uint64 mask) 14137 { 14138 return BCM_E_UNAVAIL; 14139 } 14140 14141 int 14142 bcm_tomahawk3_field_qualify_ExternalValue5_get( 14143 int unit, 14144 bcm_field_entry_t entry, 14145 uint64 *data, 14146 uint64 *mask) 14147 { 14148 return BCM_E_UNAVAIL; 14149 } 14150 14151 #ifdef BCM_TOMAHAWK3_SUPPORT 14152 int 14153 bcm_tomahawk3_field_qualify_ExternalValue6( 14154 int unit, 14155 bcm_field_entry_t entry, 14156 uint64 data, 14157 uint64 mask) 14158 { 14159 return bcm_esw_field_qualify_ExternalValue6(unit, entry, data, mask); 14160 } 14161 #endif 14162 14163 #ifdef BCM_TOMAHAWK3_SUPPORT 14164 int 14165 bcm_tomahawk3_field_qualify_ExternalValue6_get( 14166 int unit, 14167 bcm_field_entry_t entry, 14168 uint64 *data, 14169 uint64 *mask) 14170 { 14171 return bcm_esw_field_qualify_ExternalValue6_get(unit, entry, data, mask); 14172 } 14173 #endif 14174 14175 #ifdef BCM_TOMAHAWK3_SUPPORT 14176 int 14177 bcm_tomahawk3_field_qualify_ExternalValue7( 14178 int unit, 14179 bcm_field_entry_t entry, 14180 uint64 data, 14181 uint64 mask) 14182 { 14183 return bcm_esw_field_qualify_ExternalValue7(unit, entry, data, mask); 14184 } 14185 #endif 14186 14187 #ifdef BCM_TOMAHAWK3_SUPPORT 14188 int 14189 bcm_tomahawk3_field_qualify_ExternalValue7_get( 14190 int unit, 14191 bcm_field_entry_t entry, 14192 uint64 *data, 14193 uint64 *mask) 14194 { 14195 return bcm_esw_field_qualify_ExternalValue7_get(unit, entry, data, mask); 14196 } 14197 #endif 14198 14199 #ifdef BCM_TOMAHAWK3_SUPPORT 14200 int 14201 bcm_tomahawk3_field_qualify_FabricQueueTag( 14202 int unit, 14203 bcm_field_entry_t entry, 14204 uint32 data, 14205 uint32 mask) 14206 { 14207 return bcm_esw_field_qualify_FabricQueueTag(unit, entry, data, mask); 14208 } 14209 #endif 14210 14211 #ifdef BCM_TOMAHAWK3_SUPPORT 14212 int 14213 bcm_tomahawk3_field_qualify_FabricQueueTag_get( 14214 int unit, 14215 bcm_field_entry_t entry, 14216 uint32 *data, 14217 uint32 *mask) 14218 { 14219 return bcm_esw_field_qualify_FabricQueueTag_get(unit, entry, data, mask); 14220 } 14221 #endif 14222 14223 #ifdef BCM_TOMAHAWK3_SUPPORT 14224 int 14225 bcm_tomahawk3_field_qualify_FcoeOxID( 14226 int unit, 14227 bcm_field_entry_t entry, 14228 uint16 data, 14229 uint16 mask) 14230 { 14231 return bcm_esw_field_qualify_FcoeOxID(unit, entry, data, mask); 14232 } 14233 #endif 14234 14235 #ifdef BCM_TOMAHAWK3_SUPPORT 14236 int 14237 bcm_tomahawk3_field_qualify_FcoeOxIDClass( 14238 int unit, 14239 bcm_field_entry_t entry, 14240 bcm_class_t data, 14241 bcm_class_t mask) 14242 { 14243 return bcm_esw_field_qualify_FcoeOxIDClass(unit, entry, data, mask); 14244 } 14245 #endif 14246 14247 #ifdef BCM_TOMAHAWK3_SUPPORT 14248 int 14249 bcm_tomahawk3_field_qualify_FcoeOxIDClass_get( 14250 int unit, 14251 bcm_field_entry_t entry, 14252 bcm_class_t *data, 14253 bcm_class_t *mask) 14254 { 14255 return bcm_esw_field_qualify_FcoeOxIDClass_get(unit, entry, data, mask); 14256 } 14257 #endif 14258 14259 #ifdef BCM_TOMAHAWK3_SUPPORT 14260 int 14261 bcm_tomahawk3_field_qualify_FcoeOxID_get( 14262 int unit, 14263 bcm_field_entry_t entry, 14264 uint16 *data, 14265 uint16 *mask) 14266 { 14267 return bcm_esw_field_qualify_FcoeOxID_get(unit, entry, data, mask); 14268 } 14269 #endif 14270 14271 #ifdef BCM_TOMAHAWK3_SUPPORT 14272 int 14273 bcm_tomahawk3_field_qualify_FcoeRxID( 14274 int unit, 14275 bcm_field_entry_t entry, 14276 uint16 data, 14277 uint16 mask) 14278 { 14279 return bcm_esw_field_qualify_FcoeRxID(unit, entry, data, mask); 14280 } 14281 #endif 14282 14283 #ifdef BCM_TOMAHAWK3_SUPPORT 14284 int 14285 bcm_tomahawk3_field_qualify_FcoeRxIDClass( 14286 int unit, 14287 bcm_field_entry_t entry, 14288 bcm_class_t data, 14289 bcm_class_t mask) 14290 { 14291 return bcm_esw_field_qualify_FcoeRxIDClass(unit, entry, data, mask); 14292 } 14293 #endif 14294 14295 #ifdef BCM_TOMAHAWK3_SUPPORT 14296 int 14297 bcm_tomahawk3_field_qualify_FcoeRxIDClass_get( 14298 int unit, 14299 bcm_field_entry_t entry, 14300 bcm_class_t *data, 14301 bcm_class_t *mask) 14302 { 14303 return bcm_esw_field_qualify_FcoeRxIDClass_get(unit, entry, data, mask); 14304 } 14305 #endif 14306 14307 #ifdef BCM_TOMAHAWK3_SUPPORT 14308 int 14309 bcm_tomahawk3_field_qualify_FcoeRxID_get( 14310 int unit, 14311 bcm_field_entry_t entry, 14312 uint16 *data, 14313 uint16 *mask) 14314 { 14315 return bcm_esw_field_qualify_FcoeRxID_get(unit, entry, data, mask); 14316 } 14317 #endif 14318 14319 #ifdef BCM_TOMAHAWK3_SUPPORT 14320 int 14321 bcm_tomahawk3_field_qualify_FcoeSOF( 14322 int unit, 14323 bcm_field_entry_t entry, 14324 uint8 data, 14325 uint8 mask) 14326 { 14327 return bcm_esw_field_qualify_FcoeSOF(unit, entry, data, mask); 14328 } 14329 #endif 14330 14331 #ifdef BCM_TOMAHAWK3_SUPPORT 14332 int 14333 bcm_tomahawk3_field_qualify_FcoeSOF_get( 14334 int unit, 14335 bcm_field_entry_t entry, 14336 uint8 *data, 14337 uint8 *mask) 14338 { 14339 return bcm_esw_field_qualify_FcoeSOF_get(unit, entry, data, mask); 14340 } 14341 #endif 14342 14343 #ifdef BCM_TOMAHAWK3_SUPPORT 14344 int 14345 bcm_tomahawk3_field_qualify_FcoeVersionIsZero( 14346 int unit, 14347 bcm_field_entry_t entry, 14348 uint8 data, 14349 uint8 mask) 14350 { 14351 return bcm_esw_field_qualify_FcoeVersionIsZero(unit, entry, data, mask); 14352 } 14353 #endif 14354 14355 #ifdef BCM_TOMAHAWK3_SUPPORT 14356 int 14357 bcm_tomahawk3_field_qualify_FcoeVersionIsZero_get( 14358 int unit, 14359 bcm_field_entry_t entry, 14360 uint8 *data, 14361 uint8 *mask) 14362 { 14363 return bcm_esw_field_qualify_FcoeVersionIsZero_get(unit, entry, data, mask); 14364 } 14365 #endif 14366 14367 int 14368 bcm_tomahawk3_field_qualify_Fhei( 14369 int unit, 14370 bcm_field_entry_t entry, 14371 uint64 data, 14372 uint64 mask) 14373 { 14374 return BCM_E_UNAVAIL; 14375 } 14376 14377 int 14378 bcm_tomahawk3_field_qualify_FheiSize( 14379 int unit, 14380 bcm_field_entry_t entry, 14381 uint32 data, 14382 uint32 mask) 14383 { 14384 return BCM_E_UNAVAIL; 14385 } 14386 14387 int 14388 bcm_tomahawk3_field_qualify_FheiSize_get( 14389 int unit, 14390 bcm_field_entry_t entry, 14391 uint32 *data, 14392 uint32 *mask) 14393 { 14394 return BCM_E_UNAVAIL; 14395 } 14396 14397 int 14398 bcm_tomahawk3_field_qualify_Fhei_get( 14399 int unit, 14400 bcm_field_entry_t entry, 14401 uint64 *data, 14402 uint64 *mask) 14403 { 14404 return BCM_E_UNAVAIL; 14405 } 14406 14407 #ifdef BCM_TOMAHAWK3_SUPPORT 14408 int 14409 bcm_tomahawk3_field_qualify_FibreChanCSCtl( 14410 int unit, 14411 bcm_field_entry_t entry, 14412 uint8 data, 14413 uint8 mask) 14414 { 14415 return bcm_esw_field_qualify_FibreChanCSCtl(unit, entry, data, mask); 14416 } 14417 #endif 14418 14419 #ifdef BCM_TOMAHAWK3_SUPPORT 14420 int 14421 bcm_tomahawk3_field_qualify_FibreChanCSCtl_get( 14422 int unit, 14423 bcm_field_entry_t entry, 14424 uint8 *data, 14425 uint8 *mask) 14426 { 14427 return bcm_esw_field_qualify_FibreChanCSCtl_get(unit, entry, data, mask); 14428 } 14429 #endif 14430 14431 #ifdef BCM_TOMAHAWK3_SUPPORT 14432 int 14433 bcm_tomahawk3_field_qualify_FibreChanDFCtl( 14434 int unit, 14435 bcm_field_entry_t entry, 14436 uint8 data, 14437 uint8 mask) 14438 { 14439 return bcm_esw_field_qualify_FibreChanDFCtl(unit, entry, data, mask); 14440 } 14441 #endif 14442 14443 #ifdef BCM_TOMAHAWK3_SUPPORT 14444 int 14445 bcm_tomahawk3_field_qualify_FibreChanDFCtl_get( 14446 int unit, 14447 bcm_field_entry_t entry, 14448 uint8 *data, 14449 uint8 *mask) 14450 { 14451 return bcm_esw_field_qualify_FibreChanDFCtl_get(unit, entry, data, mask); 14452 } 14453 #endif 14454 14455 #ifdef BCM_TOMAHAWK3_SUPPORT 14456 int 14457 bcm_tomahawk3_field_qualify_FibreChanDstId( 14458 int unit, 14459 bcm_field_entry_t entry, 14460 uint32 data, 14461 uint32 mask) 14462 { 14463 return bcm_esw_field_qualify_FibreChanDstId(unit, entry, data, mask); 14464 } 14465 #endif 14466 14467 #ifdef BCM_TOMAHAWK3_SUPPORT 14468 int 14469 bcm_tomahawk3_field_qualify_FibreChanDstIdClass( 14470 int unit, 14471 bcm_field_entry_t entry, 14472 bcm_class_t data, 14473 bcm_class_t mask) 14474 { 14475 return bcm_esw_field_qualify_FibreChanDstIdClass(unit, entry, data, mask); 14476 } 14477 #endif 14478 14479 #ifdef BCM_TOMAHAWK3_SUPPORT 14480 int 14481 bcm_tomahawk3_field_qualify_FibreChanDstIdClassLower( 14482 int unit, 14483 bcm_field_entry_t entry, 14484 bcm_class_t data, 14485 bcm_class_t mask) 14486 { 14487 return bcm_esw_field_qualify_FibreChanDstIdClassLower(unit, entry, data, mask); 14488 } 14489 #endif 14490 14491 #ifdef BCM_TOMAHAWK3_SUPPORT 14492 int 14493 bcm_tomahawk3_field_qualify_FibreChanDstIdClassLower_get( 14494 int unit, 14495 bcm_field_entry_t entry, 14496 bcm_class_t *data, 14497 bcm_class_t *mask) 14498 { 14499 return bcm_esw_field_qualify_FibreChanDstIdClassLower_get(unit, entry, data, mask); 14500 } 14501 #endif 14502 14503 #ifdef BCM_TOMAHAWK3_SUPPORT 14504 int 14505 bcm_tomahawk3_field_qualify_FibreChanDstIdClassMsbNibble( 14506 int unit, 14507 bcm_field_entry_t entry, 14508 bcm_class_t data, 14509 bcm_class_t mask) 14510 { 14511 return bcm_esw_field_qualify_FibreChanDstIdClassMsbNibble(unit, entry, data, mask); 14512 } 14513 #endif 14514 14515 #ifdef BCM_TOMAHAWK3_SUPPORT 14516 int 14517 bcm_tomahawk3_field_qualify_FibreChanDstIdClassMsbNibble_get( 14518 int unit, 14519 bcm_field_entry_t entry, 14520 bcm_class_t *data, 14521 bcm_class_t *mask) 14522 { 14523 return bcm_esw_field_qualify_FibreChanDstIdClassMsbNibble_get(unit, entry, data, mask); 14524 } 14525 #endif 14526 14527 #ifdef BCM_TOMAHAWK3_SUPPORT 14528 int 14529 bcm_tomahawk3_field_qualify_FibreChanDstIdClassUpper( 14530 int unit, 14531 bcm_field_entry_t entry, 14532 bcm_class_t data, 14533 bcm_class_t mask) 14534 { 14535 return bcm_esw_field_qualify_FibreChanDstIdClassUpper(unit, entry, data, mask); 14536 } 14537 #endif 14538 14539 #ifdef BCM_TOMAHAWK3_SUPPORT 14540 int 14541 bcm_tomahawk3_field_qualify_FibreChanDstIdClassUpper_get( 14542 int unit, 14543 bcm_field_entry_t entry, 14544 bcm_class_t *data, 14545 bcm_class_t *mask) 14546 { 14547 return bcm_esw_field_qualify_FibreChanDstIdClassUpper_get(unit, entry, data, mask); 14548 } 14549 #endif 14550 14551 #ifdef BCM_TOMAHAWK3_SUPPORT 14552 int 14553 bcm_tomahawk3_field_qualify_FibreChanDstIdClass_get( 14554 int unit, 14555 bcm_field_entry_t entry, 14556 bcm_class_t *data, 14557 bcm_class_t *mask) 14558 { 14559 return bcm_esw_field_qualify_FibreChanDstIdClass_get(unit, entry, data, mask); 14560 } 14561 #endif 14562 14563 #ifdef BCM_TOMAHAWK3_SUPPORT 14564 int 14565 bcm_tomahawk3_field_qualify_FibreChanDstId_get( 14566 int unit, 14567 bcm_field_entry_t entry, 14568 uint32 *data, 14569 uint32 *mask) 14570 { 14571 return bcm_esw_field_qualify_FibreChanDstId_get(unit, entry, data, mask); 14572 } 14573 #endif 14574 14575 #ifdef BCM_TOMAHAWK3_SUPPORT 14576 int 14577 bcm_tomahawk3_field_qualify_FibreChanFCtl( 14578 int unit, 14579 bcm_field_entry_t entry, 14580 uint32 data, 14581 uint32 mask) 14582 { 14583 return bcm_esw_field_qualify_FibreChanFCtl(unit, entry, data, mask); 14584 } 14585 #endif 14586 14587 #ifdef BCM_TOMAHAWK3_SUPPORT 14588 int 14589 bcm_tomahawk3_field_qualify_FibreChanFCtl_get( 14590 int unit, 14591 bcm_field_entry_t entry, 14592 uint32 *data, 14593 uint32 *mask) 14594 { 14595 return bcm_esw_field_qualify_FibreChanFCtl_get(unit, entry, data, mask); 14596 } 14597 #endif 14598 14599 #ifdef BCM_TOMAHAWK3_SUPPORT 14600 int 14601 bcm_tomahawk3_field_qualify_FibreChanInner( 14602 int unit, 14603 bcm_field_entry_t entry, 14604 bcm_field_FibreChan_t fibre_chan_type) 14605 { 14606 return bcm_esw_field_qualify_FibreChanInner(unit, entry, fibre_chan_type); 14607 } 14608 #endif 14609 14610 #ifdef BCM_TOMAHAWK3_SUPPORT 14611 int 14612 bcm_tomahawk3_field_qualify_FibreChanInner_get( 14613 int unit, 14614 bcm_field_entry_t entry, 14615 bcm_field_FibreChan_t *fibre_chan_type) 14616 { 14617 return bcm_esw_field_qualify_FibreChanInner_get(unit, entry, fibre_chan_type); 14618 } 14619 #endif 14620 14621 #ifdef BCM_TOMAHAWK3_SUPPORT 14622 int 14623 bcm_tomahawk3_field_qualify_FibreChanOuter( 14624 int unit, 14625 bcm_field_entry_t entry, 14626 bcm_field_FibreChan_t fibre_chan_type) 14627 { 14628 return bcm_esw_field_qualify_FibreChanOuter(unit, entry, fibre_chan_type); 14629 } 14630 #endif 14631 14632 #ifdef BCM_TOMAHAWK3_SUPPORT 14633 int 14634 bcm_tomahawk3_field_qualify_FibreChanOuter_get( 14635 int unit, 14636 bcm_field_entry_t entry, 14637 bcm_field_FibreChan_t *fibre_chan_type) 14638 { 14639 return bcm_esw_field_qualify_FibreChanOuter_get(unit, entry, fibre_chan_type); 14640 } 14641 #endif 14642 14643 #ifdef BCM_TOMAHAWK3_SUPPORT 14644 int 14645 bcm_tomahawk3_field_qualify_FibreChanRCtl( 14646 int unit, 14647 bcm_field_entry_t entry, 14648 uint8 data, 14649 uint8 mask) 14650 { 14651 return bcm_esw_field_qualify_FibreChanRCtl(unit, entry, data, mask); 14652 } 14653 #endif 14654 14655 #ifdef BCM_TOMAHAWK3_SUPPORT 14656 int 14657 bcm_tomahawk3_field_qualify_FibreChanRCtl_get( 14658 int unit, 14659 bcm_field_entry_t entry, 14660 uint8 *data, 14661 uint8 *mask) 14662 { 14663 return bcm_esw_field_qualify_FibreChanRCtl_get(unit, entry, data, mask); 14664 } 14665 #endif 14666 14667 #ifdef BCM_TOMAHAWK3_SUPPORT 14668 int 14669 bcm_tomahawk3_field_qualify_FibreChanSrcBindCheck( 14670 int unit, 14671 bcm_field_entry_t entry, 14672 uint8 data, 14673 uint8 mask) 14674 { 14675 return bcm_esw_field_qualify_FibreChanSrcBindCheck(unit, entry, data, mask); 14676 } 14677 #endif 14678 14679 #ifdef BCM_TOMAHAWK3_SUPPORT 14680 int 14681 bcm_tomahawk3_field_qualify_FibreChanSrcBindCheck_get( 14682 int unit, 14683 bcm_field_entry_t entry, 14684 uint8 *data, 14685 uint8 *mask) 14686 { 14687 return bcm_esw_field_qualify_FibreChanSrcBindCheck_get(unit, entry, data, mask); 14688 } 14689 #endif 14690 14691 #ifdef BCM_TOMAHAWK3_SUPPORT 14692 int 14693 bcm_tomahawk3_field_qualify_FibreChanSrcFpmaCheck( 14694 int unit, 14695 bcm_field_entry_t entry, 14696 uint8 data, 14697 uint8 mask) 14698 { 14699 return bcm_esw_field_qualify_FibreChanSrcFpmaCheck(unit, entry, data, mask); 14700 } 14701 #endif 14702 14703 #ifdef BCM_TOMAHAWK3_SUPPORT 14704 int 14705 bcm_tomahawk3_field_qualify_FibreChanSrcFpmaCheck_get( 14706 int unit, 14707 bcm_field_entry_t entry, 14708 uint8 *data, 14709 uint8 *mask) 14710 { 14711 return bcm_esw_field_qualify_FibreChanSrcFpmaCheck_get(unit, entry, data, mask); 14712 } 14713 #endif 14714 14715 #ifdef BCM_TOMAHAWK3_SUPPORT 14716 int 14717 bcm_tomahawk3_field_qualify_FibreChanSrcId( 14718 int unit, 14719 bcm_field_entry_t entry, 14720 uint32 data, 14721 uint32 mask) 14722 { 14723 return bcm_esw_field_qualify_FibreChanSrcId(unit, entry, data, mask); 14724 } 14725 #endif 14726 14727 #ifdef BCM_TOMAHAWK3_SUPPORT 14728 int 14729 bcm_tomahawk3_field_qualify_FibreChanSrcIdClass( 14730 int unit, 14731 bcm_field_entry_t entry, 14732 bcm_class_t data, 14733 bcm_class_t mask) 14734 { 14735 return bcm_esw_field_qualify_FibreChanSrcIdClass(unit, entry, data, mask); 14736 } 14737 #endif 14738 14739 #ifdef BCM_TOMAHAWK3_SUPPORT 14740 int 14741 bcm_tomahawk3_field_qualify_FibreChanSrcIdClassLower( 14742 int unit, 14743 bcm_field_entry_t entry, 14744 bcm_class_t data, 14745 bcm_class_t mask) 14746 { 14747 return bcm_esw_field_qualify_FibreChanSrcIdClassLower(unit, entry, data, mask); 14748 } 14749 #endif 14750 14751 #ifdef BCM_TOMAHAWK3_SUPPORT 14752 int 14753 bcm_tomahawk3_field_qualify_FibreChanSrcIdClassLower_get( 14754 int unit, 14755 bcm_field_entry_t entry, 14756 bcm_class_t *data, 14757 bcm_class_t *mask) 14758 { 14759 return bcm_esw_field_qualify_FibreChanSrcIdClassLower_get(unit, entry, data, mask); 14760 } 14761 #endif 14762 14763 #ifdef BCM_TOMAHAWK3_SUPPORT 14764 int 14765 bcm_tomahawk3_field_qualify_FibreChanSrcIdClassMsbNibble( 14766 int unit, 14767 bcm_field_entry_t entry, 14768 bcm_class_t data, 14769 bcm_class_t mask) 14770 { 14771 return bcm_esw_field_qualify_FibreChanSrcIdClassMsbNibble(unit, entry, data, mask); 14772 } 14773 #endif 14774 14775 #ifdef BCM_TOMAHAWK3_SUPPORT 14776 int 14777 bcm_tomahawk3_field_qualify_FibreChanSrcIdClassMsbNibble_get( 14778 int unit, 14779 bcm_field_entry_t entry, 14780 bcm_class_t *data, 14781 bcm_class_t *mask) 14782 { 14783 return bcm_esw_field_qualify_FibreChanSrcIdClassMsbNibble_get(unit, entry, data, mask); 14784 } 14785 #endif 14786 14787 #ifdef BCM_TOMAHAWK3_SUPPORT 14788 int 14789 bcm_tomahawk3_field_qualify_FibreChanSrcIdClassUpper( 14790 int unit, 14791 bcm_field_entry_t entry, 14792 bcm_class_t data, 14793 bcm_class_t mask) 14794 { 14795 return bcm_esw_field_qualify_FibreChanSrcIdClassUpper(unit, entry, data, mask); 14796 } 14797 #endif 14798 14799 #ifdef BCM_TOMAHAWK3_SUPPORT 14800 int 14801 bcm_tomahawk3_field_qualify_FibreChanSrcIdClassUpper_get( 14802 int unit, 14803 bcm_field_entry_t entry, 14804 bcm_class_t *data, 14805 bcm_class_t *mask) 14806 { 14807 return bcm_esw_field_qualify_FibreChanSrcIdClassUpper_get(unit, entry, data, mask); 14808 } 14809 #endif 14810 14811 #ifdef BCM_TOMAHAWK3_SUPPORT 14812 int 14813 bcm_tomahawk3_field_qualify_FibreChanSrcIdClass_get( 14814 int unit, 14815 bcm_field_entry_t entry, 14816 bcm_class_t *data, 14817 bcm_class_t *mask) 14818 { 14819 return bcm_esw_field_qualify_FibreChanSrcIdClass_get(unit, entry, data, mask); 14820 } 14821 #endif 14822 14823 #ifdef BCM_TOMAHAWK3_SUPPORT 14824 int 14825 bcm_tomahawk3_field_qualify_FibreChanSrcId_get( 14826 int unit, 14827 bcm_field_entry_t entry, 14828 uint32 *data, 14829 uint32 *mask) 14830 { 14831 return bcm_esw_field_qualify_FibreChanSrcId_get(unit, entry, data, mask); 14832 } 14833 #endif 14834 14835 #ifdef BCM_TOMAHAWK3_SUPPORT 14836 int 14837 bcm_tomahawk3_field_qualify_FibreChanType( 14838 int unit, 14839 bcm_field_entry_t entry, 14840 uint8 data, 14841 uint8 mask) 14842 { 14843 return bcm_esw_field_qualify_FibreChanType(unit, entry, data, mask); 14844 } 14845 #endif 14846 14847 #ifdef BCM_TOMAHAWK3_SUPPORT 14848 int 14849 bcm_tomahawk3_field_qualify_FibreChanType_get( 14850 int unit, 14851 bcm_field_entry_t entry, 14852 uint8 *data, 14853 uint8 *mask) 14854 { 14855 return bcm_esw_field_qualify_FibreChanType_get(unit, entry, data, mask); 14856 } 14857 #endif 14858 14859 #ifdef BCM_TOMAHAWK3_SUPPORT 14860 int 14861 bcm_tomahawk3_field_qualify_FibreChanVFTFabricId( 14862 int unit, 14863 bcm_field_entry_t entry, 14864 uint16 data, 14865 uint16 mask) 14866 { 14867 return bcm_esw_field_qualify_FibreChanVFTFabricId(unit, entry, data, mask); 14868 } 14869 #endif 14870 14871 #ifdef BCM_TOMAHAWK3_SUPPORT 14872 int 14873 bcm_tomahawk3_field_qualify_FibreChanVFTFabricId_get( 14874 int unit, 14875 bcm_field_entry_t entry, 14876 uint16 *data, 14877 uint16 *mask) 14878 { 14879 return bcm_esw_field_qualify_FibreChanVFTFabricId_get(unit, entry, data, mask); 14880 } 14881 #endif 14882 14883 #ifdef BCM_TOMAHAWK3_SUPPORT 14884 int 14885 bcm_tomahawk3_field_qualify_FibreChanVFTHopCount( 14886 int unit, 14887 bcm_field_entry_t entry, 14888 uint8 data, 14889 uint8 mask) 14890 { 14891 return bcm_esw_field_qualify_FibreChanVFTHopCount(unit, entry, data, mask); 14892 } 14893 #endif 14894 14895 #ifdef BCM_TOMAHAWK3_SUPPORT 14896 int 14897 bcm_tomahawk3_field_qualify_FibreChanVFTHopCount_get( 14898 int unit, 14899 bcm_field_entry_t entry, 14900 uint8 *data, 14901 uint8 *mask) 14902 { 14903 return bcm_esw_field_qualify_FibreChanVFTHopCount_get(unit, entry, data, mask); 14904 } 14905 #endif 14906 14907 #ifdef BCM_TOMAHAWK3_SUPPORT 14908 int 14909 bcm_tomahawk3_field_qualify_FibreChanVFTPri( 14910 int unit, 14911 bcm_field_entry_t entry, 14912 uint8 data, 14913 uint8 mask) 14914 { 14915 return bcm_esw_field_qualify_FibreChanVFTPri(unit, entry, data, mask); 14916 } 14917 #endif 14918 14919 #ifdef BCM_TOMAHAWK3_SUPPORT 14920 int 14921 bcm_tomahawk3_field_qualify_FibreChanVFTPri_get( 14922 int unit, 14923 bcm_field_entry_t entry, 14924 uint8 *data, 14925 uint8 *mask) 14926 { 14927 return bcm_esw_field_qualify_FibreChanVFTPri_get(unit, entry, data, mask); 14928 } 14929 #endif 14930 14931 #ifdef BCM_TOMAHAWK3_SUPPORT 14932 int 14933 bcm_tomahawk3_field_qualify_FibreChanVFTValid( 14934 int unit, 14935 bcm_field_entry_t entry, 14936 uint8 data, 14937 uint8 mask) 14938 { 14939 return bcm_esw_field_qualify_FibreChanVFTValid(unit, entry, data, mask); 14940 } 14941 #endif 14942 14943 #ifdef BCM_TOMAHAWK3_SUPPORT 14944 int 14945 bcm_tomahawk3_field_qualify_FibreChanVFTValid_get( 14946 int unit, 14947 bcm_field_entry_t entry, 14948 uint8 *data, 14949 uint8 *mask) 14950 { 14951 return bcm_esw_field_qualify_FibreChanVFTValid_get(unit, entry, data, mask); 14952 } 14953 #endif 14954 14955 #ifdef BCM_TOMAHAWK3_SUPPORT 14956 int 14957 bcm_tomahawk3_field_qualify_FibreChanVFTVersion( 14958 int unit, 14959 bcm_field_entry_t entry, 14960 uint8 data, 14961 uint8 mask) 14962 { 14963 return bcm_esw_field_qualify_FibreChanVFTVersion(unit, entry, data, mask); 14964 } 14965 #endif 14966 14967 #ifdef BCM_TOMAHAWK3_SUPPORT 14968 int 14969 bcm_tomahawk3_field_qualify_FibreChanVFTVersion_get( 14970 int unit, 14971 bcm_field_entry_t entry, 14972 uint8 *data, 14973 uint8 *mask) 14974 { 14975 return bcm_esw_field_qualify_FibreChanVFTVersion_get(unit, entry, data, mask); 14976 } 14977 #endif 14978 14979 #ifdef BCM_TOMAHAWK3_SUPPORT 14980 int 14981 bcm_tomahawk3_field_qualify_FibreChanVFTVsanId( 14982 int unit, 14983 bcm_field_entry_t entry, 14984 uint16 data, 14985 uint16 mask) 14986 { 14987 return bcm_esw_field_qualify_FibreChanVFTVsanId(unit, entry, data, mask); 14988 } 14989 #endif 14990 14991 #ifdef BCM_TOMAHAWK3_SUPPORT 14992 int 14993 bcm_tomahawk3_field_qualify_FibreChanVFTVsanId_get( 14994 int unit, 14995 bcm_field_entry_t entry, 14996 uint16 *data, 14997 uint16 *mask) 14998 { 14999 return bcm_esw_field_qualify_FibreChanVFTVsanId_get(unit, entry, data, mask); 15000 } 15001 #endif 15002 15003 #ifdef BCM_TOMAHAWK3_SUPPORT 15004 int 15005 bcm_tomahawk3_field_qualify_FibreChanVFTVsanPri( 15006 int unit, 15007 bcm_field_entry_t entry, 15008 uint8 data, 15009 uint8 mask) 15010 { 15011 return bcm_esw_field_qualify_FibreChanVFTVsanPri(unit, entry, data, mask); 15012 } 15013 #endif 15014 15015 #ifdef BCM_TOMAHAWK3_SUPPORT 15016 int 15017 bcm_tomahawk3_field_qualify_FibreChanVFTVsanPri_get( 15018 int unit, 15019 bcm_field_entry_t entry, 15020 uint8 *data, 15021 uint8 *mask) 15022 { 15023 return bcm_esw_field_qualify_FibreChanVFTVsanPri_get(unit, entry, data, mask); 15024 } 15025 #endif 15026 15027 #ifdef BCM_TOMAHAWK3_SUPPORT 15028 int 15029 bcm_tomahawk3_field_qualify_FibreChanZoneCheck( 15030 int unit, 15031 bcm_field_entry_t entry, 15032 uint8 data, 15033 uint8 mask) 15034 { 15035 return bcm_esw_field_qualify_FibreChanZoneCheck(unit, entry, data, mask); 15036 } 15037 #endif 15038 15039 #ifdef BCM_TOMAHAWK3_SUPPORT 15040 int 15041 bcm_tomahawk3_field_qualify_FibreChanZoneCheck_get( 15042 int unit, 15043 bcm_field_entry_t entry, 15044 uint8 *data, 15045 uint8 *mask) 15046 { 15047 return bcm_esw_field_qualify_FibreChanZoneCheck_get(unit, entry, data, mask); 15048 } 15049 #endif 15050 15051 #ifdef BCM_TOMAHAWK3_SUPPORT 15052 int 15053 bcm_tomahawk3_field_qualify_FlowControlType( 15054 int unit, 15055 bcm_field_entry_t entry, 15056 bcm_field_flow_control_pkt_type_t fc_type) 15057 { 15058 return bcm_esw_field_qualify_FlowControlType(unit, entry, fc_type); 15059 } 15060 #endif 15061 15062 #ifdef BCM_TOMAHAWK3_SUPPORT 15063 int 15064 bcm_tomahawk3_field_qualify_FlowControlType_get( 15065 int unit, 15066 bcm_field_entry_t entry, 15067 bcm_field_flow_control_pkt_type_t *fc_type) 15068 { 15069 return bcm_esw_field_qualify_FlowControlType_get(unit, entry, fc_type); 15070 } 15071 #endif 15072 15073 #ifdef BCM_TOMAHAWK3_SUPPORT 15074 int 15075 bcm_tomahawk3_field_qualify_FlowId( 15076 int unit, 15077 bcm_field_entry_t entry, 15078 uint16 data, 15079 uint16 mask) 15080 { 15081 return bcm_esw_field_qualify_FlowId(unit, entry, data, mask); 15082 } 15083 #endif 15084 15085 #ifdef BCM_TOMAHAWK3_SUPPORT 15086 int 15087 bcm_tomahawk3_field_qualify_FlowId_get( 15088 int unit, 15089 bcm_field_entry_t entry, 15090 uint16 *data, 15091 uint16 *mask) 15092 { 15093 return bcm_esw_field_qualify_FlowId_get(unit, entry, data, mask); 15094 } 15095 #endif 15096 15097 #ifdef BCM_TOMAHAWK3_SUPPORT 15098 int 15099 bcm_tomahawk3_field_qualify_FlowtrackerCheck( 15100 int unit, 15101 bcm_field_entry_t entry, 15102 bcm_flowtracker_group_t flow_group_id, 15103 uint32 num_checks, 15104 bcm_field_flowtrackercheck_t *list_of_check_ids) 15105 { 15106 return bcm_esw_field_qualify_FlowtrackerCheck(unit, entry, flow_group_id, num_checks, list_of_check_ids); 15107 } 15108 #endif 15109 15110 #ifdef BCM_TOMAHAWK3_SUPPORT 15111 int 15112 bcm_tomahawk3_field_qualify_FlowtrackerCheck_get( 15113 int unit, 15114 bcm_field_entry_t entry, 15115 bcm_flowtracker_group_t flow_group_id, 15116 uint32 num_checks, 15117 bcm_field_flowtrackercheck_t *list_of_check_ids, 15118 uint32 *actual_num_checks) 15119 { 15120 return bcm_esw_field_qualify_FlowtrackerCheck_get(unit, entry, flow_group_id, num_checks, list_of_check_ids, actual_num_checks); 15121 } 15122 #endif 15123 15124 #ifdef BCM_TOMAHAWK3_SUPPORT 15125 int 15126 bcm_tomahawk3_field_qualify_FlowtrackerClassId( 15127 int unit, 15128 bcm_field_entry_t entry, 15129 int data, 15130 int mask) 15131 { 15132 return bcm_esw_field_qualify_FlowtrackerClassId(unit, entry, data, mask); 15133 } 15134 #endif 15135 15136 #ifdef BCM_TOMAHAWK3_SUPPORT 15137 int 15138 bcm_tomahawk3_field_qualify_FlowtrackerClassId_get( 15139 int unit, 15140 bcm_field_entry_t entry, 15141 int *data, 15142 int *mask) 15143 { 15144 return bcm_esw_field_qualify_FlowtrackerClassId_get(unit, entry, data, mask); 15145 } 15146 #endif 15147 15148 #ifdef BCM_TOMAHAWK3_SUPPORT 15149 int 15150 bcm_tomahawk3_field_qualify_FlowtrackerCollectorCopy( 15151 int unit, 15152 bcm_field_entry_t entry, 15153 uint8 data, 15154 uint8 mask) 15155 { 15156 return bcm_esw_field_qualify_FlowtrackerCollectorCopy(unit, entry, data, mask); 15157 } 15158 #endif 15159 15160 #ifdef BCM_TOMAHAWK3_SUPPORT 15161 int 15162 bcm_tomahawk3_field_qualify_FlowtrackerCollectorCopy_get( 15163 int unit, 15164 bcm_field_entry_t entry, 15165 uint8 *data, 15166 uint8 *mask) 15167 { 15168 return bcm_esw_field_qualify_FlowtrackerCollectorCopy_get(unit, entry, data, mask); 15169 } 15170 #endif 15171 15172 #ifdef BCM_TOMAHAWK3_SUPPORT 15173 int 15174 bcm_tomahawk3_field_qualify_FlowtrackerDisabled( 15175 int unit, 15176 bcm_field_entry_t entry, 15177 uint8 data, 15178 uint8 mask) 15179 { 15180 return bcm_esw_field_qualify_FlowtrackerDisabled(unit, entry, data, mask); 15181 } 15182 #endif 15183 15184 #ifdef BCM_TOMAHAWK3_SUPPORT 15185 int 15186 bcm_tomahawk3_field_qualify_FlowtrackerDisabled_get( 15187 int unit, 15188 bcm_field_entry_t entry, 15189 uint8 *data, 15190 uint8 *mask) 15191 { 15192 return bcm_esw_field_qualify_FlowtrackerDisabled_get(unit, entry, data, mask); 15193 } 15194 #endif 15195 15196 #ifdef BCM_TOMAHAWK3_SUPPORT 15197 int 15198 bcm_tomahawk3_field_qualify_FlowtrackerExportQueueFull( 15199 int unit, 15200 bcm_field_entry_t entry, 15201 uint8 data, 15202 uint8 mask) 15203 { 15204 return bcm_esw_field_qualify_FlowtrackerExportQueueFull(unit, entry, data, mask); 15205 } 15206 #endif 15207 15208 #ifdef BCM_TOMAHAWK3_SUPPORT 15209 int 15210 bcm_tomahawk3_field_qualify_FlowtrackerExportQueueFull_get( 15211 int unit, 15212 bcm_field_entry_t entry, 15213 uint8 *data, 15214 uint8 *mask) 15215 { 15216 return bcm_esw_field_qualify_FlowtrackerExportQueueFull_get(unit, entry, data, mask); 15217 } 15218 #endif 15219 15220 #ifdef BCM_TOMAHAWK3_SUPPORT 15221 int 15222 bcm_tomahawk3_field_qualify_FlowtrackerFlowTableFull( 15223 int unit, 15224 bcm_field_entry_t entry, 15225 uint8 data, 15226 uint8 mask) 15227 { 15228 return bcm_esw_field_qualify_FlowtrackerFlowTableFull(unit, entry, data, mask); 15229 } 15230 #endif 15231 15232 #ifdef BCM_TOMAHAWK3_SUPPORT 15233 int 15234 bcm_tomahawk3_field_qualify_FlowtrackerFlowTableFull_get( 15235 int unit, 15236 bcm_field_entry_t entry, 15237 uint8 *data, 15238 uint8 *mask) 15239 { 15240 return bcm_esw_field_qualify_FlowtrackerFlowTableFull_get(unit, entry, data, mask); 15241 } 15242 #endif 15243 15244 #ifdef BCM_TOMAHAWK3_SUPPORT 15245 int 15246 bcm_tomahawk3_field_qualify_FlowtrackerGroupFlowExceeded( 15247 int unit, 15248 bcm_field_entry_t entry, 15249 uint8 data, 15250 uint8 mask) 15251 { 15252 return bcm_esw_field_qualify_FlowtrackerGroupFlowExceeded(unit, entry, data, mask); 15253 } 15254 #endif 15255 15256 #ifdef BCM_TOMAHAWK3_SUPPORT 15257 int 15258 bcm_tomahawk3_field_qualify_FlowtrackerGroupFlowExceeded_get( 15259 int unit, 15260 bcm_field_entry_t entry, 15261 uint8 *data, 15262 uint8 *mask) 15263 { 15264 return bcm_esw_field_qualify_FlowtrackerGroupFlowExceeded_get(unit, entry, data, mask); 15265 } 15266 #endif 15267 15268 #ifdef BCM_TOMAHAWK3_SUPPORT 15269 int 15270 bcm_tomahawk3_field_qualify_FlowtrackerGroupId( 15271 int unit, 15272 bcm_field_entry_t entry, 15273 int data, 15274 int mask) 15275 { 15276 return bcm_esw_field_qualify_FlowtrackerGroupId(unit, entry, data, mask); 15277 } 15278 #endif 15279 15280 #ifdef BCM_TOMAHAWK3_SUPPORT 15281 int 15282 bcm_tomahawk3_field_qualify_FlowtrackerGroupId_get( 15283 int unit, 15284 bcm_field_entry_t entry, 15285 int *data, 15286 int *mask) 15287 { 15288 return bcm_esw_field_qualify_FlowtrackerGroupId_get(unit, entry, data, mask); 15289 } 15290 #endif 15291 15292 #ifdef BCM_TOMAHAWK3_SUPPORT 15293 int 15294 bcm_tomahawk3_field_qualify_FlowtrackerGroupValid( 15295 int unit, 15296 bcm_field_entry_t entry, 15297 uint8 data, 15298 uint8 mask) 15299 { 15300 return bcm_esw_field_qualify_FlowtrackerGroupValid(unit, entry, data, mask); 15301 } 15302 #endif 15303 15304 #ifdef BCM_TOMAHAWK3_SUPPORT 15305 int 15306 bcm_tomahawk3_field_qualify_FlowtrackerGroupValid_get( 15307 int unit, 15308 bcm_field_entry_t entry, 15309 uint8 *data, 15310 uint8 *mask) 15311 { 15312 return bcm_esw_field_qualify_FlowtrackerGroupValid_get(unit, entry, data, mask); 15313 } 15314 #endif 15315 15316 #ifdef BCM_TOMAHAWK3_SUPPORT 15317 int 15318 bcm_tomahawk3_field_qualify_FlowtrackerLearn( 15319 int unit, 15320 bcm_field_entry_t entry, 15321 uint8 data, 15322 uint8 mask) 15323 { 15324 return bcm_esw_field_qualify_FlowtrackerLearn(unit, entry, data, mask); 15325 } 15326 #endif 15327 15328 #ifdef BCM_TOMAHAWK3_SUPPORT 15329 int 15330 bcm_tomahawk3_field_qualify_FlowtrackerLearn_get( 15331 int unit, 15332 bcm_field_entry_t entry, 15333 uint8 *data, 15334 uint8 *mask) 15335 { 15336 return bcm_esw_field_qualify_FlowtrackerLearn_get(unit, entry, data, mask); 15337 } 15338 #endif 15339 15340 #ifdef BCM_TOMAHAWK3_SUPPORT 15341 int 15342 bcm_tomahawk3_field_qualify_FlowtrackerMeteringExceeded( 15343 int unit, 15344 bcm_field_entry_t entry, 15345 uint8 data, 15346 uint8 mask) 15347 { 15348 return bcm_esw_field_qualify_FlowtrackerMeteringExceeded(unit, entry, data, mask); 15349 } 15350 #endif 15351 15352 #ifdef BCM_TOMAHAWK3_SUPPORT 15353 int 15354 bcm_tomahawk3_field_qualify_FlowtrackerMeteringExceeded_get( 15355 int unit, 15356 bcm_field_entry_t entry, 15357 uint8 *data, 15358 uint8 *mask) 15359 { 15360 return bcm_esw_field_qualify_FlowtrackerMeteringExceeded_get(unit, entry, data, mask); 15361 } 15362 #endif 15363 15364 #ifdef BCM_TOMAHAWK3_SUPPORT 15365 int 15366 bcm_tomahawk3_field_qualify_ForwardCopy( 15367 int unit, 15368 bcm_field_entry_t entry, 15369 uint8 data, 15370 uint8 mask) 15371 { 15372 return bcm_esw_field_qualify_ForwardCopy(unit, entry, data, mask); 15373 } 15374 #endif 15375 15376 #ifdef BCM_TOMAHAWK3_SUPPORT 15377 int 15378 bcm_tomahawk3_field_qualify_ForwardCopy_get( 15379 int unit, 15380 bcm_field_entry_t entry, 15381 uint8 *data, 15382 uint8 *mask) 15383 { 15384 return bcm_esw_field_qualify_ForwardCopy_get(unit, entry, data, mask); 15385 } 15386 #endif 15387 15388 int 15389 bcm_tomahawk3_field_qualify_ForwardHdrDstMac( 15390 int unit, 15391 bcm_field_entry_t entry, 15392 bcm_mac_t data, 15393 bcm_mac_t mask) 15394 { 15395 return BCM_E_UNAVAIL; 15396 } 15397 15398 int 15399 bcm_tomahawk3_field_qualify_ForwardHdrDstMac_get( 15400 int unit, 15401 bcm_field_entry_t entry, 15402 bcm_mac_t *data, 15403 bcm_mac_t *mask) 15404 { 15405 return BCM_E_UNAVAIL; 15406 } 15407 15408 int 15409 bcm_tomahawk3_field_qualify_ForwardHdrSrcMac( 15410 int unit, 15411 bcm_field_entry_t entry, 15412 bcm_mac_t data, 15413 bcm_mac_t mask) 15414 { 15415 return BCM_E_UNAVAIL; 15416 } 15417 15418 int 15419 bcm_tomahawk3_field_qualify_ForwardHdrSrcMac_get( 15420 int unit, 15421 bcm_field_entry_t entry, 15422 bcm_mac_t *data, 15423 bcm_mac_t *mask) 15424 { 15425 return BCM_E_UNAVAIL; 15426 } 15427 15428 int 15429 bcm_tomahawk3_field_qualify_ForwardHdrVlanId( 15430 int unit, 15431 bcm_field_entry_t entry, 15432 bcm_vlan_t data, 15433 bcm_vlan_t mask) 15434 { 15435 return BCM_E_UNAVAIL; 15436 } 15437 15438 int 15439 bcm_tomahawk3_field_qualify_ForwardHdrVlanId_get( 15440 int unit, 15441 bcm_field_entry_t entry, 15442 bcm_vlan_t *data, 15443 bcm_vlan_t *mask) 15444 { 15445 return BCM_E_UNAVAIL; 15446 } 15447 15448 int 15449 bcm_tomahawk3_field_qualify_ForwardingHeaderOffset( 15450 int unit, 15451 bcm_field_entry_t entry, 15452 bcm_field_data_offset_base_t base_header, 15453 uint32 data, 15454 uint32 mask) 15455 { 15456 return BCM_E_UNAVAIL; 15457 } 15458 15459 int 15460 bcm_tomahawk3_field_qualify_ForwardingHeaderOffset_get( 15461 int unit, 15462 bcm_field_entry_t entry, 15463 bcm_field_data_offset_base_t *base_header, 15464 uint32 *data, 15465 uint32 *mask) 15466 { 15467 return BCM_E_UNAVAIL; 15468 } 15469 15470 #ifdef BCM_TOMAHAWK3_SUPPORT 15471 int 15472 bcm_tomahawk3_field_qualify_ForwardingType( 15473 int unit, 15474 bcm_field_entry_t entry, 15475 bcm_field_ForwardingType_t type) 15476 { 15477 return bcm_esw_field_qualify_ForwardingType(unit, entry, type); 15478 } 15479 #endif 15480 15481 #ifdef BCM_TOMAHAWK3_SUPPORT 15482 int 15483 bcm_tomahawk3_field_qualify_ForwardingType_get( 15484 int unit, 15485 bcm_field_entry_t entry, 15486 bcm_field_ForwardingType_t *type) 15487 { 15488 return bcm_esw_field_qualify_ForwardingType_get(unit, entry, type); 15489 } 15490 #endif 15491 15492 #ifdef BCM_TOMAHAWK3_SUPPORT 15493 int 15494 bcm_tomahawk3_field_qualify_ForwardingVlanId( 15495 int unit, 15496 bcm_field_entry_t entry, 15497 bcm_vlan_t data, 15498 bcm_vlan_t mask) 15499 { 15500 return bcm_esw_field_qualify_ForwardingVlanId(unit, entry, data, mask); 15501 } 15502 #endif 15503 15504 #ifdef BCM_TOMAHAWK3_SUPPORT 15505 int 15506 bcm_tomahawk3_field_qualify_ForwardingVlanId_get( 15507 int unit, 15508 bcm_field_entry_t entry, 15509 bcm_vlan_t *data, 15510 bcm_vlan_t *mask) 15511 { 15512 return bcm_esw_field_qualify_ForwardingVlanId_get(unit, entry, data, mask); 15513 } 15514 #endif 15515 15516 #ifdef BCM_TOMAHAWK3_SUPPORT 15517 int 15518 bcm_tomahawk3_field_qualify_ForwardingVlanValid( 15519 int unit, 15520 bcm_field_entry_t entry, 15521 uint8 data, 15522 uint8 mask) 15523 { 15524 return bcm_esw_field_qualify_ForwardingVlanValid(unit, entry, data, mask); 15525 } 15526 #endif 15527 15528 #ifdef BCM_TOMAHAWK3_SUPPORT 15529 int 15530 bcm_tomahawk3_field_qualify_ForwardingVlanValid_get( 15531 int unit, 15532 bcm_field_entry_t entry, 15533 uint8 *data, 15534 uint8 *mask) 15535 { 15536 return bcm_esw_field_qualify_ForwardingVlanValid_get(unit, entry, data, mask); 15537 } 15538 #endif 15539 15540 #ifdef BCM_TOMAHAWK3_SUPPORT 15541 int 15542 bcm_tomahawk3_field_qualify_FromMacSecPort( 15543 int unit, 15544 bcm_field_entry_t entry, 15545 uint8 data, 15546 uint8 mask) 15547 { 15548 return bcm_esw_field_qualify_FromMacSecPort(unit, entry, data, mask); 15549 } 15550 #endif 15551 15552 #ifdef BCM_TOMAHAWK3_SUPPORT 15553 int 15554 bcm_tomahawk3_field_qualify_FromMacSecPort_get( 15555 int unit, 15556 bcm_field_entry_t entry, 15557 uint8 *data, 15558 uint8 *mask) 15559 { 15560 return bcm_esw_field_qualify_FromMacSecPort_get(unit, entry, data, mask); 15561 } 15562 #endif 15563 15564 #ifdef BCM_TOMAHAWK3_SUPPORT 15565 int 15566 bcm_tomahawk3_field_qualify_FrontPanelPkt( 15567 int unit, 15568 bcm_field_entry_t entry, 15569 uint8 data, 15570 uint8 mask) 15571 { 15572 return bcm_esw_field_qualify_FrontPanelPkt(unit, entry, data, mask); 15573 } 15574 #endif 15575 15576 #ifdef BCM_TOMAHAWK3_SUPPORT 15577 int 15578 bcm_tomahawk3_field_qualify_FrontPanelPkt_get( 15579 int unit, 15580 bcm_field_entry_t entry, 15581 uint8 *data, 15582 uint8 *mask) 15583 { 15584 return bcm_esw_field_qualify_FrontPanelPkt_get(unit, entry, data, mask); 15585 } 15586 #endif 15587 15588 #ifdef BCM_TOMAHAWK3_SUPPORT 15589 int 15590 bcm_tomahawk3_field_qualify_GbpDstId( 15591 int unit, 15592 bcm_field_entry_t entry, 15593 uint16 data, 15594 uint16 mask) 15595 { 15596 return bcm_esw_field_qualify_GbpDstId(unit, entry, data, mask); 15597 } 15598 #endif 15599 15600 #ifdef BCM_TOMAHAWK3_SUPPORT 15601 int 15602 bcm_tomahawk3_field_qualify_GbpDstId_get( 15603 int unit, 15604 bcm_field_entry_t entry, 15605 uint16 *data, 15606 uint16 *mask) 15607 { 15608 return bcm_esw_field_qualify_GbpDstId_get(unit, entry, data, mask); 15609 } 15610 #endif 15611 15612 #ifdef BCM_TOMAHAWK3_SUPPORT 15613 int 15614 bcm_tomahawk3_field_qualify_GbpPresent( 15615 int unit, 15616 bcm_field_entry_t entry, 15617 uint8 data, 15618 uint8 mask) 15619 { 15620 return bcm_esw_field_qualify_GbpPresent(unit, entry, data, mask); 15621 } 15622 #endif 15623 15624 #ifdef BCM_TOMAHAWK3_SUPPORT 15625 int 15626 bcm_tomahawk3_field_qualify_GbpPresent_get( 15627 int unit, 15628 bcm_field_entry_t entry, 15629 uint8 *data, 15630 uint8 *mask) 15631 { 15632 return bcm_esw_field_qualify_GbpPresent_get(unit, entry, data, mask); 15633 } 15634 #endif 15635 15636 #ifdef BCM_TOMAHAWK3_SUPPORT 15637 int 15638 bcm_tomahawk3_field_qualify_GbpSrcId( 15639 int unit, 15640 bcm_field_entry_t entry, 15641 uint16 data, 15642 uint16 mask) 15643 { 15644 return bcm_esw_field_qualify_GbpSrcId(unit, entry, data, mask); 15645 } 15646 #endif 15647 15648 #ifdef BCM_TOMAHAWK3_SUPPORT 15649 int 15650 bcm_tomahawk3_field_qualify_GbpSrcId_get( 15651 int unit, 15652 bcm_field_entry_t entry, 15653 uint16 *data, 15654 uint16 *mask) 15655 { 15656 return bcm_esw_field_qualify_GbpSrcId_get(unit, entry, data, mask); 15657 } 15658 #endif 15659 15660 int 15661 bcm_tomahawk3_field_qualify_GeneratedTtl( 15662 int unit, 15663 bcm_field_entry_t entry, 15664 uint32 data, 15665 uint32 mask) 15666 { 15667 return BCM_E_UNAVAIL; 15668 } 15669 15670 int 15671 bcm_tomahawk3_field_qualify_GeneratedTtl_get( 15672 int unit, 15673 bcm_field_entry_t entry, 15674 uint32 *data, 15675 uint32 *mask) 15676 { 15677 return BCM_E_UNAVAIL; 15678 } 15679 15680 #ifdef BCM_TOMAHAWK3_SUPPORT 15681 int 15682 bcm_tomahawk3_field_qualify_GenericAssociatedChannelLabelValid( 15683 int unit, 15684 bcm_field_entry_t entry, 15685 uint8 data, 15686 uint8 mask) 15687 { 15688 return bcm_esw_field_qualify_GenericAssociatedChannelLabelValid(unit, entry, data, mask); 15689 } 15690 #endif 15691 15692 #ifdef BCM_TOMAHAWK3_SUPPORT 15693 int 15694 bcm_tomahawk3_field_qualify_GenericAssociatedChannelLabelValid_get( 15695 int unit, 15696 bcm_field_entry_t entry, 15697 uint8 *data, 15698 uint8 *mask) 15699 { 15700 return bcm_esw_field_qualify_GenericAssociatedChannelLabelValid_get(unit, entry, data, mask); 15701 } 15702 #endif 15703 15704 #ifdef BCM_TOMAHAWK3_SUPPORT 15705 int 15706 bcm_tomahawk3_field_qualify_GenevePktVersionZero( 15707 int unit, 15708 bcm_field_entry_t entry, 15709 uint8 data, 15710 uint8 mask) 15711 { 15712 return bcm_esw_field_qualify_GenevePktVersionZero(unit, entry, data, mask); 15713 } 15714 #endif 15715 15716 #ifdef BCM_TOMAHAWK3_SUPPORT 15717 int 15718 bcm_tomahawk3_field_qualify_GenevePktVersionZero_get( 15719 int unit, 15720 bcm_field_entry_t entry, 15721 uint8 *data, 15722 uint8 *mask) 15723 { 15724 return bcm_esw_field_qualify_GenevePktVersionZero_get(unit, entry, data, mask); 15725 } 15726 #endif 15727 15728 #ifdef BCM_TOMAHAWK3_SUPPORT 15729 int 15730 bcm_tomahawk3_field_qualify_GenevePktWithOam( 15731 int unit, 15732 bcm_field_entry_t entry, 15733 uint8 data, 15734 uint8 mask) 15735 { 15736 return bcm_esw_field_qualify_GenevePktWithOam(unit, entry, data, mask); 15737 } 15738 #endif 15739 15740 #ifdef BCM_TOMAHAWK3_SUPPORT 15741 int 15742 bcm_tomahawk3_field_qualify_GenevePktWithOam_get( 15743 int unit, 15744 bcm_field_entry_t entry, 15745 uint8 *data, 15746 uint8 *mask) 15747 { 15748 return bcm_esw_field_qualify_GenevePktWithOam_get(unit, entry, data, mask); 15749 } 15750 #endif 15751 15752 #ifdef BCM_TOMAHAWK3_SUPPORT 15753 int 15754 bcm_tomahawk3_field_qualify_GpePktVersionZero( 15755 int unit, 15756 bcm_field_entry_t entry, 15757 uint8 data, 15758 uint8 mask) 15759 { 15760 return bcm_esw_field_qualify_GpePktVersionZero(unit, entry, data, mask); 15761 } 15762 #endif 15763 15764 #ifdef BCM_TOMAHAWK3_SUPPORT 15765 int 15766 bcm_tomahawk3_field_qualify_GpePktVersionZero_get( 15767 int unit, 15768 bcm_field_entry_t entry, 15769 uint8 *data, 15770 uint8 *mask) 15771 { 15772 return bcm_esw_field_qualify_GpePktVersionZero_get(unit, entry, data, mask); 15773 } 15774 #endif 15775 15776 #ifdef BCM_TOMAHAWK3_SUPPORT 15777 int 15778 bcm_tomahawk3_field_qualify_GpePktWithOam( 15779 int unit, 15780 bcm_field_entry_t entry, 15781 uint8 data, 15782 uint8 mask) 15783 { 15784 return bcm_esw_field_qualify_GpePktWithOam(unit, entry, data, mask); 15785 } 15786 #endif 15787 15788 #ifdef BCM_TOMAHAWK3_SUPPORT 15789 int 15790 bcm_tomahawk3_field_qualify_GpePktWithOam_get( 15791 int unit, 15792 bcm_field_entry_t entry, 15793 uint8 *data, 15794 uint8 *mask) 15795 { 15796 return bcm_esw_field_qualify_GpePktWithOam_get(unit, entry, data, mask); 15797 } 15798 #endif 15799 15800 #ifdef BCM_TOMAHAWK3_SUPPORT 15801 int 15802 bcm_tomahawk3_field_qualify_GroupClass( 15803 int unit, 15804 bcm_field_entry_t entry, 15805 uint32 data, 15806 uint32 mask) 15807 { 15808 return bcm_esw_field_qualify_GroupClass(unit, entry, data, mask); 15809 } 15810 #endif 15811 15812 #ifdef BCM_TOMAHAWK3_SUPPORT 15813 int 15814 bcm_tomahawk3_field_qualify_GroupClass_get( 15815 int unit, 15816 bcm_field_entry_t entry, 15817 uint32 *data, 15818 uint32 *mask) 15819 { 15820 return bcm_esw_field_qualify_GroupClass_get(unit, entry, data, mask); 15821 } 15822 #endif 15823 15824 #ifdef BCM_TOMAHAWK3_SUPPORT 15825 int 15826 bcm_tomahawk3_field_qualify_HeaderFormat( 15827 int unit, 15828 bcm_field_entry_t entry, 15829 bcm_field_header_format_t header_format) 15830 { 15831 return bcm_esw_field_qualify_HeaderFormat(unit, entry, header_format); 15832 } 15833 #endif 15834 15835 #ifdef BCM_TOMAHAWK3_SUPPORT 15836 int 15837 bcm_tomahawk3_field_qualify_HeaderFormatExtension( 15838 int unit, 15839 bcm_field_entry_t entry, 15840 bcm_field_header_format_extension_t header_format_extension) 15841 { 15842 return bcm_esw_field_qualify_HeaderFormatExtension(unit, entry, header_format_extension); 15843 } 15844 #endif 15845 15846 #ifdef BCM_TOMAHAWK3_SUPPORT 15847 int 15848 bcm_tomahawk3_field_qualify_HeaderFormatExtension_get( 15849 int unit, 15850 bcm_field_entry_t entry, 15851 bcm_field_header_format_extension_t *header_format_extension) 15852 { 15853 return bcm_esw_field_qualify_HeaderFormatExtension_get(unit, entry, header_format_extension); 15854 } 15855 #endif 15856 15857 #ifdef BCM_TOMAHAWK3_SUPPORT 15858 int 15859 bcm_tomahawk3_field_qualify_HeaderFormatSet( 15860 int unit, 15861 bcm_field_entry_t entry, 15862 bcm_field_header_format_set_t header_format_set) 15863 { 15864 return bcm_esw_field_qualify_HeaderFormatSet(unit, entry, header_format_set); 15865 } 15866 #endif 15867 15868 #ifdef BCM_TOMAHAWK3_SUPPORT 15869 int 15870 bcm_tomahawk3_field_qualify_HeaderFormatSet_get( 15871 int unit, 15872 bcm_field_entry_t entry, 15873 bcm_field_header_format_set_t *header_format_set) 15874 { 15875 return bcm_esw_field_qualify_HeaderFormatSet_get(unit, entry, header_format_set); 15876 } 15877 #endif 15878 15879 #ifdef BCM_TOMAHAWK3_SUPPORT 15880 int 15881 bcm_tomahawk3_field_qualify_HeaderFormat_get( 15882 int unit, 15883 bcm_field_entry_t entry, 15884 bcm_field_header_format_t *header_format) 15885 { 15886 return bcm_esw_field_qualify_HeaderFormat_get(unit, entry, header_format); 15887 } 15888 #endif 15889 15890 #ifdef BCM_TOMAHAWK3_SUPPORT 15891 int 15892 bcm_tomahawk3_field_qualify_HiGig( 15893 int unit, 15894 bcm_field_entry_t entry, 15895 uint8 data, 15896 uint8 mask) 15897 { 15898 return bcm_esw_field_qualify_HiGig(unit, entry, data, mask); 15899 } 15900 #endif 15901 15902 #ifdef BCM_TOMAHAWK3_SUPPORT 15903 int 15904 bcm_tomahawk3_field_qualify_HiGigColor( 15905 int unit, 15906 bcm_field_entry_t entry, 15907 uint8 color) 15908 { 15909 return bcm_esw_field_qualify_HiGigColor(unit, entry, color); 15910 } 15911 #endif 15912 15913 #ifdef BCM_TOMAHAWK3_SUPPORT 15914 int 15915 bcm_tomahawk3_field_qualify_HiGigColor_get( 15916 int unit, 15917 bcm_field_entry_t entry, 15918 uint8 *color) 15919 { 15920 return bcm_esw_field_qualify_HiGigColor_get(unit, entry, color); 15921 } 15922 #endif 15923 15924 #ifdef BCM_TOMAHAWK3_SUPPORT 15925 int 15926 bcm_tomahawk3_field_qualify_HiGigDoNotFlags( 15927 int unit, 15928 bcm_field_entry_t entry, 15929 uint8 data, 15930 uint8 mask) 15931 { 15932 return bcm_esw_field_qualify_HiGigDoNotFlags(unit, entry, data, mask); 15933 } 15934 #endif 15935 15936 #ifdef BCM_TOMAHAWK3_SUPPORT 15937 int 15938 bcm_tomahawk3_field_qualify_HiGigDoNotFlags_get( 15939 int unit, 15940 bcm_field_entry_t entry, 15941 uint8 *data, 15942 uint8 *mask) 15943 { 15944 return bcm_esw_field_qualify_HiGigDoNotFlags_get(unit, entry, data, mask); 15945 } 15946 #endif 15947 15948 #ifdef BCM_TOMAHAWK3_SUPPORT 15949 int 15950 bcm_tomahawk3_field_qualify_HiGigDstGport( 15951 int unit, 15952 bcm_field_entry_t entry, 15953 bcm_gport_t port_id, 15954 bcm_gport_t port_mask) 15955 { 15956 return bcm_esw_field_qualify_HiGigDstGport(unit, entry, port_id, port_mask); 15957 } 15958 #endif 15959 15960 #ifdef BCM_TOMAHAWK3_SUPPORT 15961 int 15962 bcm_tomahawk3_field_qualify_HiGigDstGport_get( 15963 int unit, 15964 bcm_field_entry_t entry, 15965 bcm_gport_t *port_id, 15966 bcm_gport_t *port_mask) 15967 { 15968 return bcm_esw_field_qualify_HiGigDstGport_get(unit, entry, port_id, port_mask); 15969 } 15970 #endif 15971 15972 #ifdef BCM_TOMAHAWK3_SUPPORT 15973 int 15974 bcm_tomahawk3_field_qualify_HiGigDstModPortGport( 15975 int unit, 15976 bcm_field_entry_t entry, 15977 bcm_gport_t port_id, 15978 bcm_gport_t port_mask) 15979 { 15980 return bcm_esw_field_qualify_HiGigDstModPortGport(unit, entry, port_id, port_mask); 15981 } 15982 #endif 15983 15984 #ifdef BCM_TOMAHAWK3_SUPPORT 15985 int 15986 bcm_tomahawk3_field_qualify_HiGigDstModPortGport_get( 15987 int unit, 15988 bcm_field_entry_t entry, 15989 bcm_gport_t *port_id, 15990 bcm_gport_t *port_mask) 15991 { 15992 return bcm_esw_field_qualify_HiGigDstModPortGport_get(unit, entry, port_id, port_mask); 15993 } 15994 #endif 15995 15996 #ifdef BCM_TOMAHAWK3_SUPPORT 15997 int 15998 bcm_tomahawk3_field_qualify_HiGigDstModuleGport( 15999 int unit, 16000 bcm_field_entry_t entry, 16001 bcm_gport_t port_id, 16002 bcm_gport_t port_mask) 16003 { 16004 return bcm_esw_field_qualify_HiGigDstModuleGport(unit, entry, port_id, port_mask); 16005 } 16006 #endif 16007 16008 #ifdef BCM_TOMAHAWK3_SUPPORT 16009 int 16010 bcm_tomahawk3_field_qualify_HiGigDstModuleGport_get( 16011 int unit, 16012 bcm_field_entry_t entry, 16013 bcm_gport_t *port_id, 16014 bcm_gport_t *port_mask) 16015 { 16016 return bcm_esw_field_qualify_HiGigDstModuleGport_get(unit, entry, port_id, port_mask); 16017 } 16018 #endif 16019 16020 #ifdef BCM_TOMAHAWK3_SUPPORT 16021 int 16022 bcm_tomahawk3_field_qualify_HiGigDstMulticast( 16023 int unit, 16024 bcm_field_entry_t entry, 16025 uint8 data, 16026 uint8 mask) 16027 { 16028 return bcm_esw_field_qualify_HiGigDstMulticast(unit, entry, data, mask); 16029 } 16030 #endif 16031 16032 #ifdef BCM_TOMAHAWK3_SUPPORT 16033 int 16034 bcm_tomahawk3_field_qualify_HiGigDstMulticastGroupId( 16035 int unit, 16036 bcm_field_entry_t entry, 16037 bcm_multicast_t group, 16038 bcm_multicast_t mask) 16039 { 16040 return bcm_esw_field_qualify_HiGigDstMulticastGroupId(unit, entry, group, mask); 16041 } 16042 #endif 16043 16044 #ifdef BCM_TOMAHAWK3_SUPPORT 16045 int 16046 bcm_tomahawk3_field_qualify_HiGigDstMulticastGroupId_get( 16047 int unit, 16048 bcm_field_entry_t entry, 16049 bcm_multicast_t *group, 16050 bcm_multicast_t *mask) 16051 { 16052 return bcm_esw_field_qualify_HiGigDstMulticastGroupId_get(unit, entry, group, mask); 16053 } 16054 #endif 16055 16056 #ifdef BCM_TOMAHAWK3_SUPPORT 16057 int 16058 bcm_tomahawk3_field_qualify_HiGigDstMulticast_get( 16059 int unit, 16060 bcm_field_entry_t entry, 16061 uint8 *data, 16062 uint8 *mask) 16063 { 16064 return bcm_esw_field_qualify_HiGigDstMulticast_get(unit, entry, data, mask); 16065 } 16066 #endif 16067 16068 #ifdef BCM_TOMAHAWK3_SUPPORT 16069 int 16070 bcm_tomahawk3_field_qualify_HiGigDstPortGport( 16071 int unit, 16072 bcm_field_entry_t entry, 16073 bcm_gport_t port_id, 16074 bcm_gport_t mask) 16075 { 16076 return bcm_esw_field_qualify_HiGigDstPortGport(unit, entry, port_id, mask); 16077 } 16078 #endif 16079 16080 #ifdef BCM_TOMAHAWK3_SUPPORT 16081 int 16082 bcm_tomahawk3_field_qualify_HiGigDstPortGport_get( 16083 int unit, 16084 bcm_field_entry_t entry, 16085 bcm_gport_t *port_id, 16086 bcm_gport_t *port_mask) 16087 { 16088 return bcm_esw_field_qualify_HiGigDstPortGport_get(unit, entry, port_id, port_mask); 16089 } 16090 #endif 16091 16092 #ifdef BCM_TOMAHAWK3_SUPPORT 16093 int 16094 bcm_tomahawk3_field_qualify_HiGigDstTrunk( 16095 int unit, 16096 bcm_field_entry_t entry, 16097 uint8 data, 16098 uint8 mask) 16099 { 16100 return bcm_esw_field_qualify_HiGigDstTrunk(unit, entry, data, mask); 16101 } 16102 #endif 16103 16104 #ifdef BCM_TOMAHAWK3_SUPPORT 16105 int 16106 bcm_tomahawk3_field_qualify_HiGigDstTrunkId( 16107 int unit, 16108 bcm_field_entry_t entry, 16109 bcm_trunk_t data, 16110 bcm_trunk_t mask) 16111 { 16112 return bcm_esw_field_qualify_HiGigDstTrunkId(unit, entry, data, mask); 16113 } 16114 #endif 16115 16116 #ifdef BCM_TOMAHAWK3_SUPPORT 16117 int 16118 bcm_tomahawk3_field_qualify_HiGigDstTrunkId_get( 16119 int unit, 16120 bcm_field_entry_t entry, 16121 bcm_trunk_t *data, 16122 bcm_trunk_t *mask) 16123 { 16124 return bcm_esw_field_qualify_HiGigDstTrunkId_get(unit, entry, data, mask); 16125 } 16126 #endif 16127 16128 #ifdef BCM_TOMAHAWK3_SUPPORT 16129 int 16130 bcm_tomahawk3_field_qualify_HiGigDstTrunk_get( 16131 int unit, 16132 bcm_field_entry_t entry, 16133 uint8 *data, 16134 uint8 *mask) 16135 { 16136 return bcm_esw_field_qualify_HiGigDstTrunk_get(unit, entry, data, mask); 16137 } 16138 #endif 16139 16140 #ifdef BCM_TOMAHAWK3_SUPPORT 16141 int 16142 bcm_tomahawk3_field_qualify_HiGigDstType( 16143 int unit, 16144 bcm_field_entry_t entry, 16145 uint8 data, 16146 uint8 mask) 16147 { 16148 return bcm_esw_field_qualify_HiGigDstType(unit, entry, data, mask); 16149 } 16150 #endif 16151 16152 #ifdef BCM_TOMAHAWK3_SUPPORT 16153 int 16154 bcm_tomahawk3_field_qualify_HiGigDstType_get( 16155 int unit, 16156 bcm_field_entry_t entry, 16157 uint8 *data, 16158 uint8 *mask) 16159 { 16160 return bcm_esw_field_qualify_HiGigDstType_get(unit, entry, data, mask); 16161 } 16162 #endif 16163 16164 #ifdef BCM_TOMAHAWK3_SUPPORT 16165 int 16166 bcm_tomahawk3_field_qualify_HiGigEgressMcast( 16167 int unit, 16168 bcm_field_entry_t entry, 16169 uint8 data, 16170 uint8 mask) 16171 { 16172 return bcm_esw_field_qualify_HiGigEgressMcast(unit, entry, data, mask); 16173 } 16174 #endif 16175 16176 #ifdef BCM_TOMAHAWK3_SUPPORT 16177 int 16178 bcm_tomahawk3_field_qualify_HiGigEgressMcast_get( 16179 int unit, 16180 bcm_field_entry_t entry, 16181 uint8 *data, 16182 uint8 *mask) 16183 { 16184 return bcm_esw_field_qualify_HiGigEgressMcast_get(unit, entry, data, mask); 16185 } 16186 #endif 16187 16188 #ifdef BCM_TOMAHAWK3_SUPPORT 16189 int 16190 bcm_tomahawk3_field_qualify_HiGigExtendedHeaderPresent( 16191 int unit, 16192 bcm_field_entry_t entry, 16193 uint8 data, 16194 uint8 mask) 16195 { 16196 return bcm_esw_field_qualify_HiGigExtendedHeaderPresent(unit, entry, data, mask); 16197 } 16198 #endif 16199 16200 #ifdef BCM_TOMAHAWK3_SUPPORT 16201 int 16202 bcm_tomahawk3_field_qualify_HiGigExtendedHeaderPresent_get( 16203 int unit, 16204 bcm_field_entry_t entry, 16205 uint8 *data, 16206 uint8 *mask) 16207 { 16208 return bcm_esw_field_qualify_HiGigExtendedHeaderPresent_get(unit, entry, data, mask); 16209 } 16210 #endif 16211 16212 #ifdef BCM_TOMAHAWK3_SUPPORT 16213 int 16214 bcm_tomahawk3_field_qualify_HiGigForwardingType( 16215 int unit, 16216 bcm_field_entry_t entry, 16217 bcm_field_HiGigForwardingType_t type) 16218 { 16219 return bcm_esw_field_qualify_HiGigForwardingType(unit, entry, type); 16220 } 16221 #endif 16222 16223 #ifdef BCM_TOMAHAWK3_SUPPORT 16224 int 16225 bcm_tomahawk3_field_qualify_HiGigForwardingType_get( 16226 int unit, 16227 bcm_field_entry_t entry, 16228 bcm_field_HiGigForwardingType_t *type) 16229 { 16230 return bcm_esw_field_qualify_HiGigForwardingType_get(unit, entry, type); 16231 } 16232 #endif 16233 16234 #ifdef BCM_TOMAHAWK3_SUPPORT 16235 int 16236 bcm_tomahawk3_field_qualify_HiGigGbpPresent( 16237 int unit, 16238 bcm_field_entry_t entry, 16239 uint8 data, 16240 uint8 mask) 16241 { 16242 return bcm_esw_field_qualify_HiGigGbpPresent(unit, entry, data, mask); 16243 } 16244 #endif 16245 16246 #ifdef BCM_TOMAHAWK3_SUPPORT 16247 int 16248 bcm_tomahawk3_field_qualify_HiGigGbpPresent_get( 16249 int unit, 16250 bcm_field_entry_t entry, 16251 uint8 *data, 16252 uint8 *mask) 16253 { 16254 return bcm_esw_field_qualify_HiGigGbpPresent_get(unit, entry, data, mask); 16255 } 16256 #endif 16257 16258 #ifdef BCM_TOMAHAWK3_SUPPORT 16259 int 16260 bcm_tomahawk3_field_qualify_HiGigGbpSrcId( 16261 int unit, 16262 bcm_field_entry_t entry, 16263 uint16 data, 16264 uint16 mask) 16265 { 16266 return bcm_esw_field_qualify_HiGigGbpSrcId(unit, entry, data, mask); 16267 } 16268 #endif 16269 16270 #ifdef BCM_TOMAHAWK3_SUPPORT 16271 int 16272 bcm_tomahawk3_field_qualify_HiGigGbpSrcId_get( 16273 int unit, 16274 bcm_field_entry_t entry, 16275 uint16 *data, 16276 uint16 *mask) 16277 { 16278 return bcm_esw_field_qualify_HiGigGbpSrcId_get(unit, entry, data, mask); 16279 } 16280 #endif 16281 16282 #ifdef BCM_TOMAHAWK3_SUPPORT 16283 int 16284 bcm_tomahawk3_field_qualify_HiGigIngressClassificationTag( 16285 int unit, 16286 bcm_field_entry_t entry, 16287 uint16 data, 16288 uint16 mask) 16289 { 16290 return bcm_esw_field_qualify_HiGigIngressClassificationTag(unit, entry, data, mask); 16291 } 16292 #endif 16293 16294 #ifdef BCM_TOMAHAWK3_SUPPORT 16295 int 16296 bcm_tomahawk3_field_qualify_HiGigIngressClassificationTag_get( 16297 int unit, 16298 bcm_field_entry_t entry, 16299 uint16 *data, 16300 uint16 *mask) 16301 { 16302 return bcm_esw_field_qualify_HiGigIngressClassificationTag_get(unit, entry, data, mask); 16303 } 16304 #endif 16305 16306 #ifdef BCM_TOMAHAWK3_SUPPORT 16307 int 16308 bcm_tomahawk3_field_qualify_HiGigIngressL3SwitchPkt( 16309 int unit, 16310 bcm_field_entry_t entry, 16311 uint8 data, 16312 uint8 mask) 16313 { 16314 return bcm_esw_field_qualify_HiGigIngressL3SwitchPkt(unit, entry, data, mask); 16315 } 16316 #endif 16317 16318 #ifdef BCM_TOMAHAWK3_SUPPORT 16319 int 16320 bcm_tomahawk3_field_qualify_HiGigIngressL3SwitchPkt_get( 16321 int unit, 16322 bcm_field_entry_t entry, 16323 uint8 *data, 16324 uint8 *mask) 16325 { 16326 return bcm_esw_field_qualify_HiGigIngressL3SwitchPkt_get(unit, entry, data, mask); 16327 } 16328 #endif 16329 16330 #ifdef BCM_TOMAHAWK3_SUPPORT 16331 int 16332 bcm_tomahawk3_field_qualify_HiGigIngressTagged( 16333 int unit, 16334 bcm_field_entry_t entry, 16335 uint8 data, 16336 uint8 mask) 16337 { 16338 return bcm_esw_field_qualify_HiGigIngressTagged(unit, entry, data, mask); 16339 } 16340 #endif 16341 16342 #ifdef BCM_TOMAHAWK3_SUPPORT 16343 int 16344 bcm_tomahawk3_field_qualify_HiGigIngressTagged_get( 16345 int unit, 16346 bcm_field_entry_t entry, 16347 uint8 *data, 16348 uint8 *mask) 16349 { 16350 return bcm_esw_field_qualify_HiGigIngressTagged_get(unit, entry, data, mask); 16351 } 16352 #endif 16353 16354 #ifdef BCM_TOMAHAWK3_SUPPORT 16355 int 16356 bcm_tomahawk3_field_qualify_HiGigIntCongestionNotification( 16357 int unit, 16358 bcm_field_entry_t entry, 16359 uint8 data, 16360 uint8 mask) 16361 { 16362 return bcm_esw_field_qualify_HiGigIntCongestionNotification(unit, entry, data, mask); 16363 } 16364 #endif 16365 16366 #ifdef BCM_TOMAHAWK3_SUPPORT 16367 int 16368 bcm_tomahawk3_field_qualify_HiGigIntCongestionNotification_get( 16369 int unit, 16370 bcm_field_entry_t entry, 16371 uint8 *data, 16372 uint8 *mask) 16373 { 16374 return bcm_esw_field_qualify_HiGigIntCongestionNotification_get(unit, entry, data, mask); 16375 } 16376 #endif 16377 16378 #ifdef BCM_TOMAHAWK3_SUPPORT 16379 int 16380 bcm_tomahawk3_field_qualify_HiGigLabel( 16381 int unit, 16382 bcm_field_entry_t entry, 16383 uint32 data, 16384 uint32 mask) 16385 { 16386 return bcm_esw_field_qualify_HiGigLabel(unit, entry, data, mask); 16387 } 16388 #endif 16389 16390 #ifdef BCM_TOMAHAWK3_SUPPORT 16391 int 16392 bcm_tomahawk3_field_qualify_HiGigLabelType( 16393 int unit, 16394 bcm_field_entry_t entry, 16395 uint8 data, 16396 uint8 mask) 16397 { 16398 return bcm_esw_field_qualify_HiGigLabelType(unit, entry, data, mask); 16399 } 16400 #endif 16401 16402 #ifdef BCM_TOMAHAWK3_SUPPORT 16403 int 16404 bcm_tomahawk3_field_qualify_HiGigLabelType_get( 16405 int unit, 16406 bcm_field_entry_t entry, 16407 uint8 *data, 16408 uint8 *mask) 16409 { 16410 return bcm_esw_field_qualify_HiGigLabelType_get(unit, entry, data, mask); 16411 } 16412 #endif 16413 16414 #ifdef BCM_TOMAHAWK3_SUPPORT 16415 int 16416 bcm_tomahawk3_field_qualify_HiGigLabel_get( 16417 int unit, 16418 bcm_field_entry_t entry, 16419 uint32 *data, 16420 uint32 *mask) 16421 { 16422 return bcm_esw_field_qualify_HiGigLabel_get(unit, entry, data, mask); 16423 } 16424 #endif 16425 16426 #ifdef BCM_TOMAHAWK3_SUPPORT 16427 int 16428 bcm_tomahawk3_field_qualify_HiGigLoadBalanceID( 16429 int unit, 16430 bcm_field_entry_t entry, 16431 uint8 data, 16432 uint8 mask) 16433 { 16434 return bcm_esw_field_qualify_HiGigLoadBalanceID(unit, entry, data, mask); 16435 } 16436 #endif 16437 16438 #ifdef BCM_TOMAHAWK3_SUPPORT 16439 int 16440 bcm_tomahawk3_field_qualify_HiGigLoadBalanceID_get( 16441 int unit, 16442 bcm_field_entry_t entry, 16443 uint8 *data, 16444 uint8 *mask) 16445 { 16446 return bcm_esw_field_qualify_HiGigLoadBalanceID_get(unit, entry, data, mask); 16447 } 16448 #endif 16449 16450 #ifdef BCM_TOMAHAWK3_SUPPORT 16451 int 16452 bcm_tomahawk3_field_qualify_HiGigMirrorOrSwitchPkt( 16453 int unit, 16454 bcm_field_entry_t entry, 16455 uint8 data, 16456 uint8 mask) 16457 { 16458 return bcm_esw_field_qualify_HiGigMirrorOrSwitchPkt(unit, entry, data, mask); 16459 } 16460 #endif 16461 16462 #ifdef BCM_TOMAHAWK3_SUPPORT 16463 int 16464 bcm_tomahawk3_field_qualify_HiGigMirrorOrSwitchPkt_get( 16465 int unit, 16466 bcm_field_entry_t entry, 16467 uint8 *data, 16468 uint8 *mask) 16469 { 16470 return bcm_esw_field_qualify_HiGigMirrorOrSwitchPkt_get(unit, entry, data, mask); 16471 } 16472 #endif 16473 16474 #ifdef BCM_TOMAHAWK3_SUPPORT 16475 int 16476 bcm_tomahawk3_field_qualify_HiGigMirrorToVp( 16477 int unit, 16478 bcm_field_entry_t entry, 16479 uint8 data, 16480 uint8 mask) 16481 { 16482 return bcm_esw_field_qualify_HiGigMirrorToVp(unit, entry, data, mask); 16483 } 16484 #endif 16485 16486 #ifdef BCM_TOMAHAWK3_SUPPORT 16487 int 16488 bcm_tomahawk3_field_qualify_HiGigMirrorToVp_get( 16489 int unit, 16490 bcm_field_entry_t entry, 16491 uint8 *data, 16492 uint8 *mask) 16493 { 16494 return bcm_esw_field_qualify_HiGigMirrorToVp_get(unit, entry, data, mask); 16495 } 16496 #endif 16497 16498 #ifdef BCM_TOMAHAWK3_SUPPORT 16499 int 16500 bcm_tomahawk3_field_qualify_HiGigMplsPkt( 16501 int unit, 16502 bcm_field_entry_t entry, 16503 uint8 data, 16504 uint8 mask) 16505 { 16506 return bcm_esw_field_qualify_HiGigMplsPkt(unit, entry, data, mask); 16507 } 16508 #endif 16509 16510 #ifdef BCM_TOMAHAWK3_SUPPORT 16511 int 16512 bcm_tomahawk3_field_qualify_HiGigMplsPkt_get( 16513 int unit, 16514 bcm_field_entry_t entry, 16515 uint8 *data, 16516 uint8 *mask) 16517 { 16518 return bcm_esw_field_qualify_HiGigMplsPkt_get(unit, entry, data, mask); 16519 } 16520 #endif 16521 16522 #ifdef BCM_TOMAHAWK3_SUPPORT 16523 int 16524 bcm_tomahawk3_field_qualify_HiGigMulticastIndex( 16525 int unit, 16526 bcm_field_entry_t entry, 16527 uint16 data, 16528 uint16 mask) 16529 { 16530 return bcm_esw_field_qualify_HiGigMulticastIndex(unit, entry, data, mask); 16531 } 16532 #endif 16533 16534 #ifdef BCM_TOMAHAWK3_SUPPORT 16535 int 16536 bcm_tomahawk3_field_qualify_HiGigMulticastIndex_get( 16537 int unit, 16538 bcm_field_entry_t entry, 16539 uint16 *data, 16540 uint16 *mask) 16541 { 16542 return bcm_esw_field_qualify_HiGigMulticastIndex_get(unit, entry, data, mask); 16543 } 16544 #endif 16545 16546 #ifdef BCM_TOMAHAWK3_SUPPORT 16547 int 16548 bcm_tomahawk3_field_qualify_HiGigOffloadEngineClassificationTag( 16549 int unit, 16550 bcm_field_entry_t entry, 16551 uint16 data, 16552 uint16 mask) 16553 { 16554 return bcm_esw_field_qualify_HiGigOffloadEngineClassificationTag(unit, entry, data, mask); 16555 } 16556 #endif 16557 16558 #ifdef BCM_TOMAHAWK3_SUPPORT 16559 int 16560 bcm_tomahawk3_field_qualify_HiGigOffloadEngineClassificationTag_get( 16561 int unit, 16562 bcm_field_entry_t entry, 16563 uint16 *data, 16564 uint16 *mask) 16565 { 16566 return bcm_esw_field_qualify_HiGigOffloadEngineClassificationTag_get(unit, entry, data, mask); 16567 } 16568 #endif 16569 16570 #ifdef BCM_TOMAHAWK3_SUPPORT 16571 int 16572 bcm_tomahawk3_field_qualify_HiGigOffloadEngineDeferredFlags( 16573 int unit, 16574 bcm_field_entry_t entry, 16575 uint8 data, 16576 uint8 mask) 16577 { 16578 return bcm_esw_field_qualify_HiGigOffloadEngineDeferredFlags(unit, entry, data, mask); 16579 } 16580 #endif 16581 16582 #ifdef BCM_TOMAHAWK3_SUPPORT 16583 int 16584 bcm_tomahawk3_field_qualify_HiGigOffloadEngineDeferredFlags_get( 16585 int unit, 16586 bcm_field_entry_t entry, 16587 uint8 *data, 16588 uint8 *mask) 16589 { 16590 return bcm_esw_field_qualify_HiGigOffloadEngineDeferredFlags_get(unit, entry, data, mask); 16591 } 16592 #endif 16593 16594 #ifdef BCM_TOMAHAWK3_SUPPORT 16595 int 16596 bcm_tomahawk3_field_qualify_HiGigOffloadEngineDscpNew( 16597 int unit, 16598 bcm_field_entry_t entry, 16599 uint8 data, 16600 uint8 mask) 16601 { 16602 return bcm_esw_field_qualify_HiGigOffloadEngineDscpNew(unit, entry, data, mask); 16603 } 16604 #endif 16605 16606 #ifdef BCM_TOMAHAWK3_SUPPORT 16607 int 16608 bcm_tomahawk3_field_qualify_HiGigOffloadEngineDscpNew_get( 16609 int unit, 16610 bcm_field_entry_t entry, 16611 uint8 *data, 16612 uint8 *mask) 16613 { 16614 return bcm_esw_field_qualify_HiGigOffloadEngineDscpNew_get(unit, entry, data, mask); 16615 } 16616 #endif 16617 16618 #ifdef BCM_TOMAHAWK3_SUPPORT 16619 int 16620 bcm_tomahawk3_field_qualify_HiGigOffloadEnginePktPriNew( 16621 int unit, 16622 bcm_field_entry_t entry, 16623 uint8 data, 16624 uint8 mask) 16625 { 16626 return bcm_esw_field_qualify_HiGigOffloadEnginePktPriNew(unit, entry, data, mask); 16627 } 16628 #endif 16629 16630 #ifdef BCM_TOMAHAWK3_SUPPORT 16631 int 16632 bcm_tomahawk3_field_qualify_HiGigOffloadEnginePktPriNew_get( 16633 int unit, 16634 bcm_field_entry_t entry, 16635 uint8 *data, 16636 uint8 *mask) 16637 { 16638 return bcm_esw_field_qualify_HiGigOffloadEnginePktPriNew_get(unit, entry, data, mask); 16639 } 16640 #endif 16641 16642 #ifdef BCM_TOMAHAWK3_SUPPORT 16643 int 16644 bcm_tomahawk3_field_qualify_HiGigOffloadEnginePreserveDot1p( 16645 int unit, 16646 bcm_field_entry_t entry, 16647 uint8 data, 16648 uint8 mask) 16649 { 16650 return bcm_esw_field_qualify_HiGigOffloadEnginePreserveDot1p(unit, entry, data, mask); 16651 } 16652 #endif 16653 16654 #ifdef BCM_TOMAHAWK3_SUPPORT 16655 int 16656 bcm_tomahawk3_field_qualify_HiGigOffloadEnginePreserveDot1p_get( 16657 int unit, 16658 bcm_field_entry_t entry, 16659 uint8 *data, 16660 uint8 *mask) 16661 { 16662 return bcm_esw_field_qualify_HiGigOffloadEnginePreserveDot1p_get(unit, entry, data, mask); 16663 } 16664 #endif 16665 16666 #ifdef BCM_TOMAHAWK3_SUPPORT 16667 int 16668 bcm_tomahawk3_field_qualify_HiGigOffloadEnginePreserveDscp( 16669 int unit, 16670 bcm_field_entry_t entry, 16671 uint8 data, 16672 uint8 mask) 16673 { 16674 return bcm_esw_field_qualify_HiGigOffloadEnginePreserveDscp(unit, entry, data, mask); 16675 } 16676 #endif 16677 16678 #ifdef BCM_TOMAHAWK3_SUPPORT 16679 int 16680 bcm_tomahawk3_field_qualify_HiGigOffloadEnginePreserveDscp_get( 16681 int unit, 16682 bcm_field_entry_t entry, 16683 uint8 *data, 16684 uint8 *mask) 16685 { 16686 return bcm_esw_field_qualify_HiGigOffloadEnginePreserveDscp_get(unit, entry, data, mask); 16687 } 16688 #endif 16689 16690 #ifdef BCM_TOMAHAWK3_SUPPORT 16691 int 16692 bcm_tomahawk3_field_qualify_HiGigOffloadEngineSrcType( 16693 int unit, 16694 bcm_field_entry_t entry, 16695 uint8 data, 16696 uint8 mask) 16697 { 16698 return bcm_esw_field_qualify_HiGigOffloadEngineSrcType(unit, entry, data, mask); 16699 } 16700 #endif 16701 16702 #ifdef BCM_TOMAHAWK3_SUPPORT 16703 int 16704 bcm_tomahawk3_field_qualify_HiGigOffloadEngineSrcType_get( 16705 int unit, 16706 bcm_field_entry_t entry, 16707 uint8 *data, 16708 uint8 *mask) 16709 { 16710 return bcm_esw_field_qualify_HiGigOffloadEngineSrcType_get(unit, entry, data, mask); 16711 } 16712 #endif 16713 16714 #ifdef BCM_TOMAHAWK3_SUPPORT 16715 int 16716 bcm_tomahawk3_field_qualify_HiGigOffloadEngineVxltStatus( 16717 int unit, 16718 bcm_field_entry_t entry, 16719 uint8 data, 16720 uint8 mask) 16721 { 16722 return bcm_esw_field_qualify_HiGigOffloadEngineVxltStatus(unit, entry, data, mask); 16723 } 16724 #endif 16725 16726 #ifdef BCM_TOMAHAWK3_SUPPORT 16727 int 16728 bcm_tomahawk3_field_qualify_HiGigOffloadEngineVxltStatus_get( 16729 int unit, 16730 bcm_field_entry_t entry, 16731 uint8 *data, 16732 uint8 *mask) 16733 { 16734 return bcm_esw_field_qualify_HiGigOffloadEngineVxltStatus_get(unit, entry, data, mask); 16735 } 16736 #endif 16737 16738 #ifdef BCM_TOMAHAWK3_SUPPORT 16739 int 16740 bcm_tomahawk3_field_qualify_HiGigPortFilteringMode( 16741 int unit, 16742 bcm_field_entry_t entry, 16743 uint8 data, 16744 uint8 mask) 16745 { 16746 return bcm_esw_field_qualify_HiGigPortFilteringMode(unit, entry, data, mask); 16747 } 16748 #endif 16749 16750 #ifdef BCM_TOMAHAWK3_SUPPORT 16751 int 16752 bcm_tomahawk3_field_qualify_HiGigPortFilteringMode_get( 16753 int unit, 16754 bcm_field_entry_t entry, 16755 uint8 *data, 16756 uint8 *mask) 16757 { 16758 return bcm_esw_field_qualify_HiGigPortFilteringMode_get(unit, entry, data, mask); 16759 } 16760 #endif 16761 16762 #ifdef BCM_TOMAHAWK3_SUPPORT 16763 int 16764 bcm_tomahawk3_field_qualify_HiGigPreserveFlags( 16765 int unit, 16766 bcm_field_entry_t entry, 16767 uint8 data, 16768 uint8 mask) 16769 { 16770 return bcm_esw_field_qualify_HiGigPreserveFlags(unit, entry, data, mask); 16771 } 16772 #endif 16773 16774 #ifdef BCM_TOMAHAWK3_SUPPORT 16775 int 16776 bcm_tomahawk3_field_qualify_HiGigPreserveFlags_get( 16777 int unit, 16778 bcm_field_entry_t entry, 16779 uint8 *data, 16780 uint8 *mask) 16781 { 16782 return bcm_esw_field_qualify_HiGigPreserveFlags_get(unit, entry, data, mask); 16783 } 16784 #endif 16785 16786 #ifdef BCM_TOMAHAWK3_SUPPORT 16787 int 16788 bcm_tomahawk3_field_qualify_HiGigProtectionSwitchingStatus( 16789 int unit, 16790 bcm_field_entry_t entry, 16791 uint8 data, 16792 uint8 mask) 16793 { 16794 return bcm_esw_field_qualify_HiGigProtectionSwitchingStatus(unit, entry, data, mask); 16795 } 16796 #endif 16797 16798 #ifdef BCM_TOMAHAWK3_SUPPORT 16799 int 16800 bcm_tomahawk3_field_qualify_HiGigProtectionSwitchingStatus_get( 16801 int unit, 16802 bcm_field_entry_t entry, 16803 uint8 *data, 16804 uint8 *mask) 16805 { 16806 return bcm_esw_field_qualify_HiGigProtectionSwitchingStatus_get(unit, entry, data, mask); 16807 } 16808 #endif 16809 16810 #ifdef BCM_TOMAHAWK3_SUPPORT 16811 int 16812 bcm_tomahawk3_field_qualify_HiGigProxy( 16813 int unit, 16814 bcm_field_entry_t entry, 16815 uint8 data, 16816 uint8 mask) 16817 { 16818 return bcm_esw_field_qualify_HiGigProxy(unit, entry, data, mask); 16819 } 16820 #endif 16821 16822 #ifdef BCM_TOMAHAWK3_SUPPORT 16823 int 16824 bcm_tomahawk3_field_qualify_HiGigProxyTunnelType( 16825 int unit, 16826 bcm_field_entry_t entry, 16827 bcm_field_higig_proxy_tunnel_type_t type) 16828 { 16829 return bcm_esw_field_qualify_HiGigProxyTunnelType(unit, entry, type); 16830 } 16831 #endif 16832 16833 #ifdef BCM_TOMAHAWK3_SUPPORT 16834 int 16835 bcm_tomahawk3_field_qualify_HiGigProxyTunnelType_get( 16836 int unit, 16837 bcm_field_entry_t entry, 16838 bcm_field_higig_proxy_tunnel_type_t *type) 16839 { 16840 return bcm_esw_field_qualify_HiGigProxyTunnelType_get(unit, entry, type); 16841 } 16842 #endif 16843 16844 #ifdef BCM_TOMAHAWK3_SUPPORT 16845 int 16846 bcm_tomahawk3_field_qualify_HiGigProxy_get( 16847 int unit, 16848 bcm_field_entry_t entry, 16849 uint8 *data, 16850 uint8 *mask) 16851 { 16852 return bcm_esw_field_qualify_HiGigProxy_get(unit, entry, data, mask); 16853 } 16854 #endif 16855 16856 #ifdef BCM_TOMAHAWK3_SUPPORT 16857 int 16858 bcm_tomahawk3_field_qualify_HiGigReplicationId( 16859 int unit, 16860 bcm_field_entry_t entry, 16861 uint32 data, 16862 uint32 mask) 16863 { 16864 return bcm_esw_field_qualify_HiGigReplicationId(unit, entry, data, mask); 16865 } 16866 #endif 16867 16868 #ifdef BCM_TOMAHAWK3_SUPPORT 16869 int 16870 bcm_tomahawk3_field_qualify_HiGigReplicationId_get( 16871 int unit, 16872 bcm_field_entry_t entry, 16873 uint32 *data, 16874 uint32 *mask) 16875 { 16876 return bcm_esw_field_qualify_HiGigReplicationId_get(unit, entry, data, mask); 16877 } 16878 #endif 16879 16880 #ifdef BCM_TOMAHAWK3_SUPPORT 16881 int 16882 bcm_tomahawk3_field_qualify_HiGigSrcGport( 16883 int unit, 16884 bcm_field_entry_t entry, 16885 bcm_gport_t port_id, 16886 bcm_gport_t port_mask) 16887 { 16888 return bcm_esw_field_qualify_HiGigSrcGport(unit, entry, port_id, port_mask); 16889 } 16890 #endif 16891 16892 #ifdef BCM_TOMAHAWK3_SUPPORT 16893 int 16894 bcm_tomahawk3_field_qualify_HiGigSrcGport_get( 16895 int unit, 16896 bcm_field_entry_t entry, 16897 bcm_gport_t *port_id, 16898 bcm_gport_t *port_mask) 16899 { 16900 return bcm_esw_field_qualify_HiGigSrcGport_get(unit, entry, port_id, port_mask); 16901 } 16902 #endif 16903 16904 #ifdef BCM_TOMAHAWK3_SUPPORT 16905 int 16906 bcm_tomahawk3_field_qualify_HiGigSrcModPortGport( 16907 int unit, 16908 bcm_field_entry_t entry, 16909 bcm_gport_t port_id, 16910 bcm_gport_t port_mask) 16911 { 16912 return bcm_esw_field_qualify_HiGigSrcModPortGport(unit, entry, port_id, port_mask); 16913 } 16914 #endif 16915 16916 #ifdef BCM_TOMAHAWK3_SUPPORT 16917 int 16918 bcm_tomahawk3_field_qualify_HiGigSrcModPortGport_get( 16919 int unit, 16920 bcm_field_entry_t entry, 16921 bcm_gport_t *port_id, 16922 bcm_gport_t *port_mask) 16923 { 16924 return bcm_esw_field_qualify_HiGigSrcModPortGport_get(unit, entry, port_id, port_mask); 16925 } 16926 #endif 16927 16928 #ifdef BCM_TOMAHAWK3_SUPPORT 16929 int 16930 bcm_tomahawk3_field_qualify_HiGigSrcModuleGport( 16931 int unit, 16932 bcm_field_entry_t entry, 16933 bcm_gport_t port_id, 16934 bcm_gport_t port_mask) 16935 { 16936 return bcm_esw_field_qualify_HiGigSrcModuleGport(unit, entry, port_id, port_mask); 16937 } 16938 #endif 16939 16940 #ifdef BCM_TOMAHAWK3_SUPPORT 16941 int 16942 bcm_tomahawk3_field_qualify_HiGigSrcModuleGport_get( 16943 int unit, 16944 bcm_field_entry_t entry, 16945 bcm_gport_t *port_id, 16946 bcm_gport_t *port_mask) 16947 { 16948 return bcm_esw_field_qualify_HiGigSrcModuleGport_get(unit, entry, port_id, port_mask); 16949 } 16950 #endif 16951 16952 #ifdef BCM_TOMAHAWK3_SUPPORT 16953 int 16954 bcm_tomahawk3_field_qualify_HiGigSrcPortGport( 16955 int unit, 16956 bcm_field_entry_t entry, 16957 bcm_gport_t port_id, 16958 bcm_gport_t port_mask) 16959 { 16960 return bcm_esw_field_qualify_HiGigSrcPortGport(unit, entry, port_id, port_mask); 16961 } 16962 #endif 16963 16964 #ifdef BCM_TOMAHAWK3_SUPPORT 16965 int 16966 bcm_tomahawk3_field_qualify_HiGigSrcPortGport_get( 16967 int unit, 16968 bcm_field_entry_t entry, 16969 bcm_gport_t *port_id, 16970 bcm_gport_t *port_mask) 16971 { 16972 return bcm_esw_field_qualify_HiGigSrcPortGport_get(unit, entry, port_id, port_mask); 16973 } 16974 #endif 16975 16976 #ifdef BCM_TOMAHAWK3_SUPPORT 16977 int 16978 bcm_tomahawk3_field_qualify_HiGigSrcTrunk( 16979 int unit, 16980 bcm_field_entry_t entry, 16981 uint8 data, 16982 uint8 mask) 16983 { 16984 return bcm_esw_field_qualify_HiGigSrcTrunk(unit, entry, data, mask); 16985 } 16986 #endif 16987 16988 #ifdef BCM_TOMAHAWK3_SUPPORT 16989 int 16990 bcm_tomahawk3_field_qualify_HiGigSrcTrunk_get( 16991 int unit, 16992 bcm_field_entry_t entry, 16993 uint8 *data, 16994 uint8 *mask) 16995 { 16996 return bcm_esw_field_qualify_HiGigSrcTrunk_get(unit, entry, data, mask); 16997 } 16998 #endif 16999 17000 #ifdef BCM_TOMAHAWK3_SUPPORT 17001 int 17002 bcm_tomahawk3_field_qualify_HiGigSrcType( 17003 int unit, 17004 bcm_field_entry_t entry, 17005 uint8 data, 17006 uint8 mask) 17007 { 17008 return bcm_esw_field_qualify_HiGigSrcType(unit, entry, data, mask); 17009 } 17010 #endif 17011 17012 #ifdef BCM_TOMAHAWK3_SUPPORT 17013 int 17014 bcm_tomahawk3_field_qualify_HiGigSrcType_get( 17015 int unit, 17016 bcm_field_entry_t entry, 17017 uint8 *data, 17018 uint8 *mask) 17019 { 17020 return bcm_esw_field_qualify_HiGigSrcType_get(unit, entry, data, mask); 17021 } 17022 #endif 17023 17024 #ifdef BCM_TOMAHAWK3_SUPPORT 17025 int 17026 bcm_tomahawk3_field_qualify_HiGigTrafficClass( 17027 int unit, 17028 bcm_field_entry_t entry, 17029 uint8 data, 17030 uint8 mask) 17031 { 17032 return bcm_esw_field_qualify_HiGigTrafficClass(unit, entry, data, mask); 17033 } 17034 #endif 17035 17036 #ifdef BCM_TOMAHAWK3_SUPPORT 17037 int 17038 bcm_tomahawk3_field_qualify_HiGigTrafficClass_get( 17039 int unit, 17040 bcm_field_entry_t entry, 17041 uint8 *data, 17042 uint8 *mask) 17043 { 17044 return bcm_esw_field_qualify_HiGigTrafficClass_get(unit, entry, data, mask); 17045 } 17046 #endif 17047 17048 #ifdef BCM_TOMAHAWK3_SUPPORT 17049 int 17050 bcm_tomahawk3_field_qualify_HiGigVlan( 17051 int unit, 17052 bcm_field_entry_t entry, 17053 uint16 data, 17054 uint16 mask) 17055 { 17056 return bcm_esw_field_qualify_HiGigVlan(unit, entry, data, mask); 17057 } 17058 #endif 17059 17060 #ifdef BCM_TOMAHAWK3_SUPPORT 17061 int 17062 bcm_tomahawk3_field_qualify_HiGigVlan_get( 17063 int unit, 17064 bcm_field_entry_t entry, 17065 uint16 *data, 17066 uint16 *mask) 17067 { 17068 return bcm_esw_field_qualify_HiGigVlan_get(unit, entry, data, mask); 17069 } 17070 #endif 17071 17072 #ifdef BCM_TOMAHAWK3_SUPPORT 17073 int 17074 bcm_tomahawk3_field_qualify_HiGigVni( 17075 int unit, 17076 bcm_field_entry_t entry, 17077 uint16 data, 17078 uint16 mask) 17079 { 17080 return bcm_esw_field_qualify_HiGigVni(unit, entry, data, mask); 17081 } 17082 #endif 17083 17084 #ifdef BCM_TOMAHAWK3_SUPPORT 17085 int 17086 bcm_tomahawk3_field_qualify_HiGigVni_get( 17087 int unit, 17088 bcm_field_entry_t entry, 17089 uint16 *data, 17090 uint16 *mask) 17091 { 17092 return bcm_esw_field_qualify_HiGigVni_get(unit, entry, data, mask); 17093 } 17094 #endif 17095 17096 #ifdef BCM_TOMAHAWK3_SUPPORT 17097 int 17098 bcm_tomahawk3_field_qualify_HiGigVpLagFailoverPacket( 17099 int unit, 17100 bcm_field_entry_t entry, 17101 uint8 data, 17102 uint8 mask) 17103 { 17104 return bcm_esw_field_qualify_HiGigVpLagFailoverPacket(unit, entry, data, mask); 17105 } 17106 #endif 17107 17108 #ifdef BCM_TOMAHAWK3_SUPPORT 17109 int 17110 bcm_tomahawk3_field_qualify_HiGigVpLagFailoverPacket_get( 17111 int unit, 17112 bcm_field_entry_t entry, 17113 uint8 *data, 17114 uint8 *mask) 17115 { 17116 return bcm_esw_field_qualify_HiGigVpLagFailoverPacket_get(unit, entry, data, mask); 17117 } 17118 #endif 17119 17120 #ifdef BCM_TOMAHAWK3_SUPPORT 17121 int 17122 bcm_tomahawk3_field_qualify_HiGigVpPreserveFlags( 17123 int unit, 17124 bcm_field_entry_t entry, 17125 uint8 data, 17126 uint8 mask) 17127 { 17128 return bcm_esw_field_qualify_HiGigVpPreserveFlags(unit, entry, data, mask); 17129 } 17130 #endif 17131 17132 #ifdef BCM_TOMAHAWK3_SUPPORT 17133 int 17134 bcm_tomahawk3_field_qualify_HiGigVpPreserveFlags_get( 17135 int unit, 17136 bcm_field_entry_t entry, 17137 uint8 *data, 17138 uint8 *mask) 17139 { 17140 return bcm_esw_field_qualify_HiGigVpPreserveFlags_get(unit, entry, data, mask); 17141 } 17142 #endif 17143 17144 #ifdef BCM_TOMAHAWK3_SUPPORT 17145 int 17146 bcm_tomahawk3_field_qualify_HiGigVpReplicationId( 17147 int unit, 17148 bcm_field_entry_t entry, 17149 uint32 data, 17150 uint32 mask) 17151 { 17152 return bcm_esw_field_qualify_HiGigVpReplicationId(unit, entry, data, mask); 17153 } 17154 #endif 17155 17156 #ifdef BCM_TOMAHAWK3_SUPPORT 17157 int 17158 bcm_tomahawk3_field_qualify_HiGigVpReplicationId_get( 17159 int unit, 17160 bcm_field_entry_t entry, 17161 uint32 *data, 17162 uint32 *mask) 17163 { 17164 return bcm_esw_field_qualify_HiGigVpReplicationId_get(unit, entry, data, mask); 17165 } 17166 #endif 17167 17168 #ifdef BCM_TOMAHAWK3_SUPPORT 17169 int 17170 bcm_tomahawk3_field_qualify_HiGig_get( 17171 int unit, 17172 bcm_field_entry_t entry, 17173 uint8 *data, 17174 uint8 *mask) 17175 { 17176 return bcm_esw_field_qualify_HiGig_get(unit, entry, data, mask); 17177 } 17178 #endif 17179 17180 int 17181 bcm_tomahawk3_field_qualify_IEEE1588Command( 17182 int unit, 17183 bcm_field_entry_t entry, 17184 uint8 data, 17185 uint8 mask) 17186 { 17187 return BCM_E_UNAVAIL; 17188 } 17189 17190 int 17191 bcm_tomahawk3_field_qualify_IEEE1588Command_get( 17192 int unit, 17193 bcm_field_entry_t entry, 17194 uint8 *data, 17195 uint8 *mask) 17196 { 17197 return BCM_E_UNAVAIL; 17198 } 17199 17200 int 17201 bcm_tomahawk3_field_qualify_IEEE1588CompensateTimeStamp( 17202 int unit, 17203 bcm_field_entry_t entry, 17204 uint8 data, 17205 uint8 mask) 17206 { 17207 return BCM_E_UNAVAIL; 17208 } 17209 17210 int 17211 bcm_tomahawk3_field_qualify_IEEE1588CompensateTimeStamp_get( 17212 int unit, 17213 bcm_field_entry_t entry, 17214 uint8 *data, 17215 uint8 *mask) 17216 { 17217 return BCM_E_UNAVAIL; 17218 } 17219 17220 int 17221 bcm_tomahawk3_field_qualify_IEEE1588Encapsulation( 17222 int unit, 17223 bcm_field_entry_t entry, 17224 bcm_field_IEEE1588Encap_t encap) 17225 { 17226 return BCM_E_UNAVAIL; 17227 } 17228 17229 int 17230 bcm_tomahawk3_field_qualify_IEEE1588Encapsulation_get( 17231 int unit, 17232 bcm_field_entry_t entry, 17233 bcm_field_IEEE1588Encap_t *encap) 17234 { 17235 return BCM_E_UNAVAIL; 17236 } 17237 17238 int 17239 bcm_tomahawk3_field_qualify_IEEE1588HeaderOffset( 17240 int unit, 17241 bcm_field_entry_t entry, 17242 uint32 data, 17243 uint32 mask) 17244 { 17245 return BCM_E_UNAVAIL; 17246 } 17247 17248 int 17249 bcm_tomahawk3_field_qualify_IEEE1588HeaderOffset_get( 17250 int unit, 17251 bcm_field_entry_t entry, 17252 uint32 *data, 17253 uint32 *mask) 17254 { 17255 return BCM_E_UNAVAIL; 17256 } 17257 17258 #ifdef BCM_TOMAHAWK3_SUPPORT 17259 int 17260 bcm_tomahawk3_field_qualify_INTProbeMarker1( 17261 int unit, 17262 bcm_field_entry_t entry, 17263 uint32 data, 17264 uint32 mask) 17265 { 17266 return bcm_esw_field_qualify_INTProbeMarker1(unit, entry, data, mask); 17267 } 17268 #endif 17269 17270 #ifdef BCM_TOMAHAWK3_SUPPORT 17271 int 17272 bcm_tomahawk3_field_qualify_INTProbeMarker1_get( 17273 int unit, 17274 bcm_field_entry_t entry, 17275 uint32 *data, 17276 uint32 *mask) 17277 { 17278 return bcm_esw_field_qualify_INTProbeMarker1_get(unit, entry, data, mask); 17279 } 17280 #endif 17281 17282 #ifdef BCM_TOMAHAWK3_SUPPORT 17283 int 17284 bcm_tomahawk3_field_qualify_INTProbeMarker2( 17285 int unit, 17286 bcm_field_entry_t entry, 17287 uint32 data, 17288 uint32 mask) 17289 { 17290 return bcm_esw_field_qualify_INTProbeMarker2(unit, entry, data, mask); 17291 } 17292 #endif 17293 17294 #ifdef BCM_TOMAHAWK3_SUPPORT 17295 int 17296 bcm_tomahawk3_field_qualify_INTProbeMarker2_get( 17297 int unit, 17298 bcm_field_entry_t entry, 17299 uint32 *data, 17300 uint32 *mask) 17301 { 17302 return bcm_esw_field_qualify_INTProbeMarker2_get(unit, entry, data, mask); 17303 } 17304 #endif 17305 17306 #ifdef BCM_TOMAHAWK3_SUPPORT 17307 int 17308 bcm_tomahawk3_field_qualify_INTReserved4Bytes( 17309 int unit, 17310 bcm_field_entry_t entry, 17311 uint32 data, 17312 uint32 mask) 17313 { 17314 return bcm_esw_field_qualify_INTReserved4Bytes(unit, entry, data, mask); 17315 } 17316 #endif 17317 17318 #ifdef BCM_TOMAHAWK3_SUPPORT 17319 int 17320 bcm_tomahawk3_field_qualify_INTReserved4Bytes_get( 17321 int unit, 17322 bcm_field_entry_t entry, 17323 uint32 *data, 17324 uint32 *mask) 17325 { 17326 return bcm_esw_field_qualify_INTReserved4Bytes_get(unit, entry, data, mask); 17327 } 17328 #endif 17329 17330 #ifdef BCM_TOMAHAWK3_SUPPORT 17331 int 17332 bcm_tomahawk3_field_qualify_ISid( 17333 int unit, 17334 bcm_field_entry_t entry, 17335 uint32 data, 17336 uint32 mask) 17337 { 17338 return bcm_esw_field_qualify_ISid(unit, entry, data, mask); 17339 } 17340 #endif 17341 17342 #ifdef BCM_TOMAHAWK3_SUPPORT 17343 int 17344 bcm_tomahawk3_field_qualify_ISid_get( 17345 int unit, 17346 bcm_field_entry_t entry, 17347 uint32 *data, 17348 uint32 *mask) 17349 { 17350 return bcm_esw_field_qualify_ISid_get(unit, entry, data, mask); 17351 } 17352 #endif 17353 17354 #ifdef BCM_TOMAHAWK3_SUPPORT 17355 int 17356 bcm_tomahawk3_field_qualify_ITag( 17357 int unit, 17358 bcm_field_entry_t entry, 17359 uint32 data, 17360 uint32 mask) 17361 { 17362 return bcm_esw_field_qualify_ITag(unit, entry, data, mask); 17363 } 17364 #endif 17365 17366 #ifdef BCM_TOMAHAWK3_SUPPORT 17367 int 17368 bcm_tomahawk3_field_qualify_ITag_get( 17369 int unit, 17370 bcm_field_entry_t entry, 17371 uint32 *data, 17372 uint32 *mask) 17373 { 17374 return bcm_esw_field_qualify_ITag_get(unit, entry, data, mask); 17375 } 17376 #endif 17377 17378 #ifdef BCM_TOMAHAWK3_SUPPORT 17379 int 17380 bcm_tomahawk3_field_qualify_IcmpError( 17381 int unit, 17382 bcm_field_entry_t entry, 17383 uint8 data, 17384 uint8 mask) 17385 { 17386 return bcm_esw_field_qualify_IcmpError(unit, entry, data, mask); 17387 } 17388 #endif 17389 17390 #ifdef BCM_TOMAHAWK3_SUPPORT 17391 int 17392 bcm_tomahawk3_field_qualify_IcmpError_get( 17393 int unit, 17394 bcm_field_entry_t entry, 17395 uint8 *data, 17396 uint8 *mask) 17397 { 17398 return bcm_esw_field_qualify_IcmpError_get(unit, entry, data, mask); 17399 } 17400 #endif 17401 17402 #ifdef BCM_TOMAHAWK3_SUPPORT 17403 int 17404 bcm_tomahawk3_field_qualify_IcmpTypeCode( 17405 int unit, 17406 bcm_field_entry_t entry, 17407 uint16 data, 17408 uint16 mask) 17409 { 17410 return bcm_esw_field_qualify_IcmpTypeCode(unit, entry, data, mask); 17411 } 17412 #endif 17413 17414 #ifdef BCM_TOMAHAWK3_SUPPORT 17415 int 17416 bcm_tomahawk3_field_qualify_IcmpTypeCode_get( 17417 int unit, 17418 bcm_field_entry_t entry, 17419 uint16 *data, 17420 uint16 *mask) 17421 { 17422 return bcm_esw_field_qualify_IcmpTypeCode_get(unit, entry, data, mask); 17423 } 17424 #endif 17425 17426 #ifdef BCM_TOMAHAWK3_SUPPORT 17427 int 17428 bcm_tomahawk3_field_qualify_InPort( 17429 int unit, 17430 bcm_field_entry_t entry, 17431 bcm_port_t data, 17432 bcm_port_t mask) 17433 { 17434 return bcm_esw_field_qualify_InPort(unit, entry, data, mask); 17435 } 17436 #endif 17437 17438 #ifdef BCM_TOMAHAWK3_SUPPORT 17439 int 17440 bcm_tomahawk3_field_qualify_InPort_get( 17441 int unit, 17442 bcm_field_entry_t entry, 17443 bcm_port_t *data, 17444 bcm_port_t *mask) 17445 { 17446 return bcm_esw_field_qualify_InPort_get(unit, entry, data, mask); 17447 } 17448 #endif 17449 17450 #ifdef BCM_TOMAHAWK3_SUPPORT 17451 int 17452 bcm_tomahawk3_field_qualify_InPorts( 17453 int unit, 17454 bcm_field_entry_t entry, 17455 bcm_pbmp_t data, 17456 bcm_pbmp_t mask) 17457 { 17458 return bcm_esw_field_qualify_InPorts(unit, entry, data, mask); 17459 } 17460 #endif 17461 17462 #ifdef BCM_TOMAHAWK3_SUPPORT 17463 int 17464 bcm_tomahawk3_field_qualify_InPorts_get( 17465 int unit, 17466 bcm_field_entry_t entry, 17467 bcm_pbmp_t *data, 17468 bcm_pbmp_t *mask) 17469 { 17470 return bcm_esw_field_qualify_InPorts_get(unit, entry, data, mask); 17471 } 17472 #endif 17473 17474 #ifdef BCM_TOMAHAWK3_SUPPORT 17475 int 17476 bcm_tomahawk3_field_qualify_InVPort( 17477 int unit, 17478 bcm_field_entry_t entry, 17479 uint8 data, 17480 uint8 mask) 17481 { 17482 return bcm_esw_field_qualify_InVPort(unit, entry, data, mask); 17483 } 17484 #endif 17485 17486 #ifdef BCM_TOMAHAWK3_SUPPORT 17487 int 17488 bcm_tomahawk3_field_qualify_InVPort32( 17489 int unit, 17490 bcm_field_entry_t entry, 17491 uint32 data, 17492 uint32 mask) 17493 { 17494 return bcm_esw_field_qualify_InVPort32(unit, entry, data, mask); 17495 } 17496 #endif 17497 17498 #ifdef BCM_TOMAHAWK3_SUPPORT 17499 int 17500 bcm_tomahawk3_field_qualify_InVPort32_get( 17501 int unit, 17502 bcm_field_entry_t entry, 17503 uint32 *data, 17504 uint32 *mask) 17505 { 17506 return bcm_esw_field_qualify_InVPort32_get(unit, entry, data, mask); 17507 } 17508 #endif 17509 17510 int 17511 bcm_tomahawk3_field_qualify_InVPortWide( 17512 int unit, 17513 bcm_field_entry_t entry, 17514 uint64 data, 17515 uint64 mask) 17516 { 17517 return BCM_E_UNAVAIL; 17518 } 17519 17520 int 17521 bcm_tomahawk3_field_qualify_InVPortWide_get( 17522 int unit, 17523 bcm_field_entry_t entry, 17524 uint64 *data, 17525 uint64 *mask) 17526 { 17527 return BCM_E_UNAVAIL; 17528 } 17529 17530 #ifdef BCM_TOMAHAWK3_SUPPORT 17531 int 17532 bcm_tomahawk3_field_qualify_InVPort_get( 17533 int unit, 17534 bcm_field_entry_t entry, 17535 uint8 *data, 17536 uint8 *mask) 17537 { 17538 return bcm_esw_field_qualify_InVPort_get(unit, entry, data, mask); 17539 } 17540 #endif 17541 17542 #ifdef BCM_TOMAHAWK3_SUPPORT 17543 int 17544 bcm_tomahawk3_field_qualify_InVportDataIndex( 17545 int unit, 17546 bcm_field_entry_t entry, 17547 uint8 data, 17548 uint8 mask) 17549 { 17550 return bcm_esw_field_qualify_InVportDataIndex(unit, entry, data, mask); 17551 } 17552 #endif 17553 17554 #ifdef BCM_TOMAHAWK3_SUPPORT 17555 int 17556 bcm_tomahawk3_field_qualify_InVportDataIndex_get( 17557 int unit, 17558 bcm_field_entry_t entry, 17559 uint8 *data, 17560 uint8 *mask) 17561 { 17562 return bcm_esw_field_qualify_InVportDataIndex_get(unit, entry, data, mask); 17563 } 17564 #endif 17565 17566 int 17567 bcm_tomahawk3_field_qualify_IncomingIpIfClass( 17568 int unit, 17569 bcm_field_entry_t entry, 17570 uint32 data, 17571 uint32 mask) 17572 { 17573 return BCM_E_UNAVAIL; 17574 } 17575 17576 int 17577 bcm_tomahawk3_field_qualify_IncomingIpIfClass_get( 17578 int unit, 17579 bcm_field_entry_t entry, 17580 uint32 *data, 17581 uint32 *mask) 17582 { 17583 return BCM_E_UNAVAIL; 17584 } 17585 17586 #ifdef BCM_TOMAHAWK3_SUPPORT 17587 int 17588 bcm_tomahawk3_field_qualify_IncomingOuterVlanId( 17589 int unit, 17590 bcm_field_entry_t entry, 17591 bcm_vlan_t data, 17592 bcm_vlan_t mask) 17593 { 17594 return bcm_esw_field_qualify_IncomingOuterVlanId(unit, entry, data, mask); 17595 } 17596 #endif 17597 17598 #ifdef BCM_TOMAHAWK3_SUPPORT 17599 int 17600 bcm_tomahawk3_field_qualify_IncomingOuterVlanId_get( 17601 int unit, 17602 bcm_field_entry_t entry, 17603 bcm_vlan_t *data, 17604 bcm_vlan_t *mask) 17605 { 17606 return bcm_esw_field_qualify_IncomingOuterVlanId_get(unit, entry, data, mask); 17607 } 17608 #endif 17609 17610 #ifdef BCM_TOMAHAWK3_SUPPORT 17611 int 17612 bcm_tomahawk3_field_qualify_IngressClassField( 17613 int unit, 17614 bcm_field_entry_t entry, 17615 uint32 data, 17616 uint32 mask) 17617 { 17618 return bcm_esw_field_qualify_IngressClassField(unit, entry, data, mask); 17619 } 17620 #endif 17621 17622 #ifdef BCM_TOMAHAWK3_SUPPORT 17623 int 17624 bcm_tomahawk3_field_qualify_IngressClassField_get( 17625 int unit, 17626 bcm_field_entry_t entry, 17627 uint32 *data, 17628 uint32 *mask) 17629 { 17630 return bcm_esw_field_qualify_IngressClassField_get(unit, entry, data, mask); 17631 } 17632 #endif 17633 17634 #ifdef BCM_TOMAHAWK3_SUPPORT 17635 int 17636 bcm_tomahawk3_field_qualify_IngressDropEthernetOamControl( 17637 int unit, 17638 bcm_field_entry_t entry, 17639 bcm_field_oam_drop_mep_type_t mep_type) 17640 { 17641 return bcm_esw_field_qualify_IngressDropEthernetOamControl(unit, entry, mep_type); 17642 } 17643 #endif 17644 17645 #ifdef BCM_TOMAHAWK3_SUPPORT 17646 int 17647 bcm_tomahawk3_field_qualify_IngressDropEthernetOamControl_get( 17648 int unit, 17649 bcm_field_entry_t entry, 17650 bcm_field_oam_drop_mep_type_t *mep_type) 17651 { 17652 return bcm_esw_field_qualify_IngressDropEthernetOamControl_get(unit, entry, mep_type); 17653 } 17654 #endif 17655 17656 #ifdef BCM_TOMAHAWK3_SUPPORT 17657 int 17658 bcm_tomahawk3_field_qualify_IngressDropEthernetOamData( 17659 int unit, 17660 bcm_field_entry_t entry, 17661 bcm_field_oam_drop_mep_type_t mep_type) 17662 { 17663 return bcm_esw_field_qualify_IngressDropEthernetOamData(unit, entry, mep_type); 17664 } 17665 #endif 17666 17667 #ifdef BCM_TOMAHAWK3_SUPPORT 17668 int 17669 bcm_tomahawk3_field_qualify_IngressDropEthernetOamData_get( 17670 int unit, 17671 bcm_field_entry_t entry, 17672 bcm_field_oam_drop_mep_type_t *mep_type) 17673 { 17674 return bcm_esw_field_qualify_IngressDropEthernetOamData_get(unit, entry, mep_type); 17675 } 17676 #endif 17677 17678 #ifdef BCM_TOMAHAWK3_SUPPORT 17679 int 17680 bcm_tomahawk3_field_qualify_IngressDropMplsOamControl( 17681 int unit, 17682 bcm_field_entry_t entry, 17683 bcm_field_oam_drop_mep_type_t mep_type) 17684 { 17685 return bcm_esw_field_qualify_IngressDropMplsOamControl(unit, entry, mep_type); 17686 } 17687 #endif 17688 17689 #ifdef BCM_TOMAHAWK3_SUPPORT 17690 int 17691 bcm_tomahawk3_field_qualify_IngressDropMplsOamControl_get( 17692 int unit, 17693 bcm_field_entry_t entry, 17694 bcm_field_oam_drop_mep_type_t *mep_type) 17695 { 17696 return bcm_esw_field_qualify_IngressDropMplsOamControl_get(unit, entry, mep_type); 17697 } 17698 #endif 17699 17700 #ifdef BCM_TOMAHAWK3_SUPPORT 17701 int 17702 bcm_tomahawk3_field_qualify_IngressDropMplsOamData( 17703 int unit, 17704 bcm_field_entry_t entry, 17705 bcm_field_oam_drop_mep_type_t mep_type) 17706 { 17707 return bcm_esw_field_qualify_IngressDropMplsOamData(unit, entry, mep_type); 17708 } 17709 #endif 17710 17711 #ifdef BCM_TOMAHAWK3_SUPPORT 17712 int 17713 bcm_tomahawk3_field_qualify_IngressDropMplsOamData_get( 17714 int unit, 17715 bcm_field_entry_t entry, 17716 bcm_field_oam_drop_mep_type_t *mep_type) 17717 { 17718 return bcm_esw_field_qualify_IngressDropMplsOamData_get(unit, entry, mep_type); 17719 } 17720 #endif 17721 17722 int 17723 bcm_tomahawk3_field_qualify_IngressECid( 17724 int unit, 17725 bcm_field_entry_t entry, 17726 uint32 data, 17727 uint32 mask) 17728 { 17729 return BCM_E_UNAVAIL; 17730 } 17731 17732 int 17733 bcm_tomahawk3_field_qualify_IngressECid_get( 17734 int unit, 17735 bcm_field_entry_t entry, 17736 uint32 *data, 17737 uint32 *mask) 17738 { 17739 return BCM_E_UNAVAIL; 17740 } 17741 17742 #ifdef BCM_TOMAHAWK3_SUPPORT 17743 int 17744 bcm_tomahawk3_field_qualify_IngressInterfaceClassPort( 17745 int unit, 17746 bcm_field_entry_t entry, 17747 uint32 data, 17748 uint32 mask) 17749 { 17750 return bcm_esw_field_qualify_IngressInterfaceClassPort(unit, entry, data, mask); 17751 } 17752 #endif 17753 17754 #ifdef BCM_TOMAHAWK3_SUPPORT 17755 int 17756 bcm_tomahawk3_field_qualify_IngressInterfaceClassPort_get( 17757 int unit, 17758 bcm_field_entry_t entry, 17759 uint32 *data, 17760 uint32 *mask) 17761 { 17762 return bcm_esw_field_qualify_IngressInterfaceClassPort_get(unit, entry, data, mask); 17763 } 17764 #endif 17765 17766 #ifdef BCM_TOMAHAWK3_SUPPORT 17767 int 17768 bcm_tomahawk3_field_qualify_IngressInterfaceClassVPort( 17769 int unit, 17770 bcm_field_entry_t entry, 17771 uint32 data, 17772 uint32 mask) 17773 { 17774 return bcm_esw_field_qualify_IngressInterfaceClassVPort(unit, entry, data, mask); 17775 } 17776 #endif 17777 17778 #ifdef BCM_TOMAHAWK3_SUPPORT 17779 int 17780 bcm_tomahawk3_field_qualify_IngressInterfaceClassVPort_get( 17781 int unit, 17782 bcm_field_entry_t entry, 17783 uint32 *data, 17784 uint32 *mask) 17785 { 17786 return bcm_esw_field_qualify_IngressInterfaceClassVPort_get(unit, entry, data, mask); 17787 } 17788 #endif 17789 17790 #ifdef BCM_TOMAHAWK3_SUPPORT 17791 int 17792 bcm_tomahawk3_field_qualify_IngressStpState( 17793 int unit, 17794 bcm_field_entry_t entry, 17795 uint8 data, 17796 uint8 mask) 17797 { 17798 return bcm_esw_field_qualify_IngressStpState(unit, entry, data, mask); 17799 } 17800 #endif 17801 17802 #ifdef BCM_TOMAHAWK3_SUPPORT 17803 int 17804 bcm_tomahawk3_field_qualify_IngressStpState_get( 17805 int unit, 17806 bcm_field_entry_t entry, 17807 uint8 *data, 17808 uint8 *mask) 17809 { 17810 return bcm_esw_field_qualify_IngressStpState_get(unit, entry, data, mask); 17811 } 17812 #endif 17813 17814 int 17815 bcm_tomahawk3_field_qualify_IngressVPortBridgeDisable( 17816 int unit, 17817 bcm_field_entry_t entry, 17818 uint8 data, 17819 uint8 mask) 17820 { 17821 return BCM_E_UNAVAIL; 17822 } 17823 17824 int 17825 bcm_tomahawk3_field_qualify_IngressVPortBridgeDisable_get( 17826 int unit, 17827 bcm_field_entry_t entry, 17828 uint8 *data, 17829 uint8 *mask) 17830 { 17831 return BCM_E_UNAVAIL; 17832 } 17833 17834 #ifdef BCM_TOMAHAWK3_SUPPORT 17835 int 17836 bcm_tomahawk3_field_qualify_InnerBfdPktVersionOne( 17837 int unit, 17838 bcm_field_entry_t entry, 17839 uint8 data, 17840 uint8 mask) 17841 { 17842 return bcm_esw_field_qualify_InnerBfdPktVersionOne(unit, entry, data, mask); 17843 } 17844 #endif 17845 17846 #ifdef BCM_TOMAHAWK3_SUPPORT 17847 int 17848 bcm_tomahawk3_field_qualify_InnerBfdPktVersionOne_get( 17849 int unit, 17850 bcm_field_entry_t entry, 17851 uint8 *data, 17852 uint8 *mask) 17853 { 17854 return bcm_esw_field_qualify_InnerBfdPktVersionOne_get(unit, entry, data, mask); 17855 } 17856 #endif 17857 17858 #ifdef BCM_TOMAHAWK3_SUPPORT 17859 int 17860 bcm_tomahawk3_field_qualify_InnerDSCP( 17861 int unit, 17862 bcm_field_entry_t entry, 17863 uint8 data, 17864 uint8 mask) 17865 { 17866 return bcm_esw_field_qualify_InnerDSCP(unit, entry, data, mask); 17867 } 17868 #endif 17869 17870 #ifdef BCM_TOMAHAWK3_SUPPORT 17871 int 17872 bcm_tomahawk3_field_qualify_InnerDSCP_get( 17873 int unit, 17874 bcm_field_entry_t entry, 17875 uint8 *data, 17876 uint8 *mask) 17877 { 17878 return bcm_esw_field_qualify_InnerDSCP_get(unit, entry, data, mask); 17879 } 17880 #endif 17881 17882 #ifdef BCM_TOMAHAWK3_SUPPORT 17883 int 17884 bcm_tomahawk3_field_qualify_InnerDosAttack( 17885 int unit, 17886 bcm_field_entry_t entry, 17887 uint8 data, 17888 uint8 mask) 17889 { 17890 return bcm_esw_field_qualify_InnerDosAttack(unit, entry, data, mask); 17891 } 17892 #endif 17893 17894 #ifdef BCM_TOMAHAWK3_SUPPORT 17895 int 17896 bcm_tomahawk3_field_qualify_InnerDosAttackEvents( 17897 int unit, 17898 bcm_field_entry_t entry, 17899 uint32 data, 17900 uint32 mask) 17901 { 17902 return bcm_esw_field_qualify_InnerDosAttackEvents(unit, entry, data, mask); 17903 } 17904 #endif 17905 17906 #ifdef BCM_TOMAHAWK3_SUPPORT 17907 int 17908 bcm_tomahawk3_field_qualify_InnerDosAttackEvents_get( 17909 int unit, 17910 bcm_field_entry_t entry, 17911 uint32 *data, 17912 uint32 *mask) 17913 { 17914 return bcm_esw_field_qualify_InnerDosAttackEvents_get(unit, entry, data, mask); 17915 } 17916 #endif 17917 17918 #ifdef BCM_TOMAHAWK3_SUPPORT 17919 int 17920 bcm_tomahawk3_field_qualify_InnerDosAttack_get( 17921 int unit, 17922 bcm_field_entry_t entry, 17923 uint8 *data, 17924 uint8 *mask) 17925 { 17926 return bcm_esw_field_qualify_InnerDosAttack_get(unit, entry, data, mask); 17927 } 17928 #endif 17929 17930 #ifdef BCM_TOMAHAWK3_SUPPORT 17931 int 17932 bcm_tomahawk3_field_qualify_InnerDstIp( 17933 int unit, 17934 bcm_field_entry_t entry, 17935 bcm_ip_t data, 17936 bcm_ip_t mask) 17937 { 17938 return bcm_esw_field_qualify_InnerDstIp(unit, entry, data, mask); 17939 } 17940 #endif 17941 17942 #ifdef BCM_TOMAHAWK3_SUPPORT 17943 int 17944 bcm_tomahawk3_field_qualify_InnerDstIp6( 17945 int unit, 17946 bcm_field_entry_t entry, 17947 bcm_ip6_t data, 17948 bcm_ip6_t mask) 17949 { 17950 return bcm_esw_field_qualify_InnerDstIp6(unit, entry, data, mask); 17951 } 17952 #endif 17953 17954 #ifdef BCM_TOMAHAWK3_SUPPORT 17955 int 17956 bcm_tomahawk3_field_qualify_InnerDstIp6High( 17957 int unit, 17958 bcm_field_entry_t entry, 17959 bcm_ip6_t data, 17960 bcm_ip6_t mask) 17961 { 17962 return bcm_esw_field_qualify_InnerDstIp6High(unit, entry, data, mask); 17963 } 17964 #endif 17965 17966 #ifdef BCM_TOMAHAWK3_SUPPORT 17967 int 17968 bcm_tomahawk3_field_qualify_InnerDstIp6High_get( 17969 int unit, 17970 bcm_field_entry_t entry, 17971 bcm_ip6_t *data, 17972 bcm_ip6_t *mask) 17973 { 17974 return bcm_esw_field_qualify_InnerDstIp6High_get(unit, entry, data, mask); 17975 } 17976 #endif 17977 17978 #ifdef BCM_TOMAHAWK3_SUPPORT 17979 int 17980 bcm_tomahawk3_field_qualify_InnerDstIp6_get( 17981 int unit, 17982 bcm_field_entry_t entry, 17983 bcm_ip6_t *data, 17984 bcm_ip6_t *mask) 17985 { 17986 return bcm_esw_field_qualify_InnerDstIp6_get(unit, entry, data, mask); 17987 } 17988 #endif 17989 17990 #ifdef BCM_TOMAHAWK3_SUPPORT 17991 int 17992 bcm_tomahawk3_field_qualify_InnerDstIp_get( 17993 int unit, 17994 bcm_field_entry_t entry, 17995 bcm_ip_t *data, 17996 bcm_ip_t *mask) 17997 { 17998 return bcm_esw_field_qualify_InnerDstIp_get(unit, entry, data, mask); 17999 } 18000 #endif 18001 18002 #ifdef BCM_TOMAHAWK3_SUPPORT 18003 int 18004 bcm_tomahawk3_field_qualify_InnerDstMac( 18005 int unit, 18006 bcm_field_entry_t entry, 18007 bcm_mac_t data, 18008 bcm_mac_t mask) 18009 { 18010 return bcm_esw_field_qualify_InnerDstMac(unit, entry, data, mask); 18011 } 18012 #endif 18013 18014 #ifdef BCM_TOMAHAWK3_SUPPORT 18015 int 18016 bcm_tomahawk3_field_qualify_InnerDstMac_get( 18017 int unit, 18018 bcm_field_entry_t entry, 18019 bcm_mac_t *data, 18020 bcm_mac_t *mask) 18021 { 18022 return bcm_esw_field_qualify_InnerDstMac_get(unit, entry, data, mask); 18023 } 18024 #endif 18025 18026 #ifdef BCM_TOMAHAWK3_SUPPORT 18027 int 18028 bcm_tomahawk3_field_qualify_InnerEtherType( 18029 int unit, 18030 bcm_field_entry_t entry, 18031 uint16 data, 18032 uint16 mask) 18033 { 18034 return bcm_esw_field_qualify_InnerEtherType(unit, entry, data, mask); 18035 } 18036 #endif 18037 18038 #ifdef BCM_TOMAHAWK3_SUPPORT 18039 int 18040 bcm_tomahawk3_field_qualify_InnerEtherType_get( 18041 int unit, 18042 bcm_field_entry_t entry, 18043 uint16 *data, 18044 uint16 *mask) 18045 { 18046 return bcm_esw_field_qualify_InnerEtherType_get(unit, entry, data, mask); 18047 } 18048 #endif 18049 18050 #ifdef BCM_TOMAHAWK3_SUPPORT 18051 int 18052 bcm_tomahawk3_field_qualify_InnerIp6FlowLabel( 18053 int unit, 18054 bcm_field_entry_t entry, 18055 uint32 data, 18056 uint32 mask) 18057 { 18058 return bcm_esw_field_qualify_InnerIp6FlowLabel(unit, entry, data, mask); 18059 } 18060 #endif 18061 18062 #ifdef BCM_TOMAHAWK3_SUPPORT 18063 int 18064 bcm_tomahawk3_field_qualify_InnerIp6FlowLabel_get( 18065 int unit, 18066 bcm_field_entry_t entry, 18067 uint32 *data, 18068 uint32 *mask) 18069 { 18070 return bcm_esw_field_qualify_InnerIp6FlowLabel_get(unit, entry, data, mask); 18071 } 18072 #endif 18073 18074 #ifdef BCM_TOMAHAWK3_SUPPORT 18075 int 18076 bcm_tomahawk3_field_qualify_InnerIp6HopLimit( 18077 int unit, 18078 bcm_field_entry_t entry, 18079 uint8 data, 18080 uint8 mask) 18081 { 18082 return bcm_esw_field_qualify_InnerIp6HopLimit(unit, entry, data, mask); 18083 } 18084 #endif 18085 18086 #ifdef BCM_TOMAHAWK3_SUPPORT 18087 int 18088 bcm_tomahawk3_field_qualify_InnerIp6HopLimit_get( 18089 int unit, 18090 bcm_field_entry_t entry, 18091 uint8 *data, 18092 uint8 *mask) 18093 { 18094 return bcm_esw_field_qualify_InnerIp6HopLimit_get(unit, entry, data, mask); 18095 } 18096 #endif 18097 18098 #ifdef BCM_TOMAHAWK3_SUPPORT 18099 int 18100 bcm_tomahawk3_field_qualify_InnerIp6NextHeader( 18101 int unit, 18102 bcm_field_entry_t entry, 18103 uint8 data, 18104 uint8 mask) 18105 { 18106 return bcm_esw_field_qualify_InnerIp6NextHeader(unit, entry, data, mask); 18107 } 18108 #endif 18109 18110 #ifdef BCM_TOMAHAWK3_SUPPORT 18111 int 18112 bcm_tomahawk3_field_qualify_InnerIp6NextHeader_get( 18113 int unit, 18114 bcm_field_entry_t entry, 18115 uint8 *data, 18116 uint8 *mask) 18117 { 18118 return bcm_esw_field_qualify_InnerIp6NextHeader_get(unit, entry, data, mask); 18119 } 18120 #endif 18121 18122 #ifdef BCM_TOMAHAWK3_SUPPORT 18123 int 18124 bcm_tomahawk3_field_qualify_InnerIp6PktHopLimit( 18125 int unit, 18126 bcm_field_entry_t entry, 18127 uint8 data, 18128 uint8 mask) 18129 { 18130 return bcm_esw_field_qualify_InnerIp6PktHopLimit(unit, entry, data, mask); 18131 } 18132 #endif 18133 18134 #ifdef BCM_TOMAHAWK3_SUPPORT 18135 int 18136 bcm_tomahawk3_field_qualify_InnerIp6PktHopLimit_get( 18137 int unit, 18138 bcm_field_entry_t entry, 18139 uint8 *data, 18140 uint8 *mask) 18141 { 18142 return bcm_esw_field_qualify_InnerIp6PktHopLimit_get(unit, entry, data, mask); 18143 } 18144 #endif 18145 18146 #ifdef BCM_TOMAHAWK3_SUPPORT 18147 int 18148 bcm_tomahawk3_field_qualify_InnerIp6PktNextHeader( 18149 int unit, 18150 bcm_field_entry_t entry, 18151 uint8 data, 18152 uint8 mask) 18153 { 18154 return bcm_esw_field_qualify_InnerIp6PktNextHeader(unit, entry, data, mask); 18155 } 18156 #endif 18157 18158 #ifdef BCM_TOMAHAWK3_SUPPORT 18159 int 18160 bcm_tomahawk3_field_qualify_InnerIp6PktNextHeader_get( 18161 int unit, 18162 bcm_field_entry_t entry, 18163 uint8 *data, 18164 uint8 *mask) 18165 { 18166 return bcm_esw_field_qualify_InnerIp6PktNextHeader_get(unit, entry, data, mask); 18167 } 18168 #endif 18169 18170 #ifdef BCM_TOMAHAWK3_SUPPORT 18171 int 18172 bcm_tomahawk3_field_qualify_InnerIp6PktTrafficClass( 18173 int unit, 18174 bcm_field_entry_t entry, 18175 uint8 data, 18176 uint8 mask) 18177 { 18178 return bcm_esw_field_qualify_InnerIp6PktTrafficClass(unit, entry, data, mask); 18179 } 18180 #endif 18181 18182 #ifdef BCM_TOMAHAWK3_SUPPORT 18183 int 18184 bcm_tomahawk3_field_qualify_InnerIp6PktTrafficClass_get( 18185 int unit, 18186 bcm_field_entry_t entry, 18187 uint8 *data, 18188 uint8 *mask) 18189 { 18190 return bcm_esw_field_qualify_InnerIp6PktTrafficClass_get(unit, entry, data, mask); 18191 } 18192 #endif 18193 18194 #ifdef BCM_TOMAHAWK3_SUPPORT 18195 int 18196 bcm_tomahawk3_field_qualify_InnerIpFrag( 18197 int unit, 18198 bcm_field_entry_t entry, 18199 bcm_field_IpFrag_t frag_info) 18200 { 18201 return bcm_esw_field_qualify_InnerIpFrag(unit, entry, frag_info); 18202 } 18203 #endif 18204 18205 #ifdef BCM_TOMAHAWK3_SUPPORT 18206 int 18207 bcm_tomahawk3_field_qualify_InnerIpFrag_get( 18208 int unit, 18209 bcm_field_entry_t entry, 18210 bcm_field_IpFrag_t *frag_info) 18211 { 18212 return bcm_esw_field_qualify_InnerIpFrag_get(unit, entry, frag_info); 18213 } 18214 #endif 18215 18216 #ifdef BCM_TOMAHAWK3_SUPPORT 18217 int 18218 bcm_tomahawk3_field_qualify_InnerIpProtocol( 18219 int unit, 18220 bcm_field_entry_t entry, 18221 uint8 data, 18222 uint8 mask) 18223 { 18224 return bcm_esw_field_qualify_InnerIpProtocol(unit, entry, data, mask); 18225 } 18226 #endif 18227 18228 #ifdef BCM_TOMAHAWK3_SUPPORT 18229 int 18230 bcm_tomahawk3_field_qualify_InnerIpProtocolCommon( 18231 int unit, 18232 bcm_field_entry_t entry, 18233 bcm_field_IpProtocolCommon_t protocol) 18234 { 18235 return bcm_esw_field_qualify_InnerIpProtocolCommon(unit, entry, protocol); 18236 } 18237 #endif 18238 18239 #ifdef BCM_TOMAHAWK3_SUPPORT 18240 int 18241 bcm_tomahawk3_field_qualify_InnerIpProtocolCommon_get( 18242 int unit, 18243 bcm_field_entry_t entry, 18244 bcm_field_IpProtocolCommon_t *protocol) 18245 { 18246 return bcm_esw_field_qualify_InnerIpProtocolCommon_get(unit, entry, protocol); 18247 } 18248 #endif 18249 18250 #ifdef BCM_TOMAHAWK3_SUPPORT 18251 int 18252 bcm_tomahawk3_field_qualify_InnerIpProtocol_get( 18253 int unit, 18254 bcm_field_entry_t entry, 18255 uint8 *data, 18256 uint8 *mask) 18257 { 18258 return bcm_esw_field_qualify_InnerIpProtocol_get(unit, entry, data, mask); 18259 } 18260 #endif 18261 18262 #ifdef BCM_TOMAHAWK3_SUPPORT 18263 int 18264 bcm_tomahawk3_field_qualify_InnerIpType( 18265 int unit, 18266 bcm_field_entry_t entry, 18267 bcm_field_IpType_t type) 18268 { 18269 return bcm_esw_field_qualify_InnerIpType(unit, entry, type); 18270 } 18271 #endif 18272 18273 #ifdef BCM_TOMAHAWK3_SUPPORT 18274 int 18275 bcm_tomahawk3_field_qualify_InnerIpType_get( 18276 int unit, 18277 bcm_field_entry_t entry, 18278 bcm_field_IpType_t *type) 18279 { 18280 return bcm_esw_field_qualify_InnerIpType_get(unit, entry, type); 18281 } 18282 #endif 18283 18284 #ifdef BCM_TOMAHAWK3_SUPPORT 18285 int 18286 bcm_tomahawk3_field_qualify_InnerL4DstPort( 18287 int unit, 18288 bcm_field_entry_t entry, 18289 bcm_l4_port_t data, 18290 bcm_l4_port_t mask) 18291 { 18292 return bcm_esw_field_qualify_InnerL4DstPort(unit, entry, data, mask); 18293 } 18294 #endif 18295 18296 #ifdef BCM_TOMAHAWK3_SUPPORT 18297 int 18298 bcm_tomahawk3_field_qualify_InnerL4DstPort_get( 18299 int unit, 18300 bcm_field_entry_t entry, 18301 bcm_l4_port_t *data, 18302 bcm_l4_port_t *mask) 18303 { 18304 return bcm_esw_field_qualify_InnerL4DstPort_get(unit, entry, data, mask); 18305 } 18306 #endif 18307 18308 #ifdef BCM_TOMAHAWK3_SUPPORT 18309 int 18310 bcm_tomahawk3_field_qualify_InnerL4Ports( 18311 int unit, 18312 bcm_field_entry_t entry, 18313 uint8 data, 18314 uint8 mask) 18315 { 18316 return bcm_esw_field_qualify_InnerL4Ports(unit, entry, data, mask); 18317 } 18318 #endif 18319 18320 #ifdef BCM_TOMAHAWK3_SUPPORT 18321 int 18322 bcm_tomahawk3_field_qualify_InnerL4Ports_get( 18323 int unit, 18324 bcm_field_entry_t entry, 18325 uint8 *data, 18326 uint8 *mask) 18327 { 18328 return bcm_esw_field_qualify_InnerL4Ports_get(unit, entry, data, mask); 18329 } 18330 #endif 18331 18332 #ifdef BCM_TOMAHAWK3_SUPPORT 18333 int 18334 bcm_tomahawk3_field_qualify_InnerL4SrcPort( 18335 int unit, 18336 bcm_field_entry_t entry, 18337 bcm_l4_port_t data, 18338 bcm_l4_port_t mask) 18339 { 18340 return bcm_esw_field_qualify_InnerL4SrcPort(unit, entry, data, mask); 18341 } 18342 #endif 18343 18344 #ifdef BCM_TOMAHAWK3_SUPPORT 18345 int 18346 bcm_tomahawk3_field_qualify_InnerL4SrcPort_get( 18347 int unit, 18348 bcm_field_entry_t entry, 18349 bcm_l4_port_t *data, 18350 bcm_l4_port_t *mask) 18351 { 18352 return bcm_esw_field_qualify_InnerL4SrcPort_get(unit, entry, data, mask); 18353 } 18354 #endif 18355 18356 #ifdef BCM_TOMAHAWK3_SUPPORT 18357 int 18358 bcm_tomahawk3_field_qualify_InnerSrcIp( 18359 int unit, 18360 bcm_field_entry_t entry, 18361 bcm_ip_t data, 18362 bcm_ip_t mask) 18363 { 18364 return bcm_esw_field_qualify_InnerSrcIp(unit, entry, data, mask); 18365 } 18366 #endif 18367 18368 #ifdef BCM_TOMAHAWK3_SUPPORT 18369 int 18370 bcm_tomahawk3_field_qualify_InnerSrcIp6( 18371 int unit, 18372 bcm_field_entry_t entry, 18373 bcm_ip6_t data, 18374 bcm_ip6_t mask) 18375 { 18376 return bcm_esw_field_qualify_InnerSrcIp6(unit, entry, data, mask); 18377 } 18378 #endif 18379 18380 #ifdef BCM_TOMAHAWK3_SUPPORT 18381 int 18382 bcm_tomahawk3_field_qualify_InnerSrcIp6High( 18383 int unit, 18384 bcm_field_entry_t entry, 18385 bcm_ip6_t data, 18386 bcm_ip6_t mask) 18387 { 18388 return bcm_esw_field_qualify_InnerSrcIp6High(unit, entry, data, mask); 18389 } 18390 #endif 18391 18392 #ifdef BCM_TOMAHAWK3_SUPPORT 18393 int 18394 bcm_tomahawk3_field_qualify_InnerSrcIp6High_get( 18395 int unit, 18396 bcm_field_entry_t entry, 18397 bcm_ip6_t *data, 18398 bcm_ip6_t *mask) 18399 { 18400 return bcm_esw_field_qualify_InnerSrcIp6High_get(unit, entry, data, mask); 18401 } 18402 #endif 18403 18404 #ifdef BCM_TOMAHAWK3_SUPPORT 18405 int 18406 bcm_tomahawk3_field_qualify_InnerSrcIp6_get( 18407 int unit, 18408 bcm_field_entry_t entry, 18409 bcm_ip6_t *data, 18410 bcm_ip6_t *mask) 18411 { 18412 return bcm_esw_field_qualify_InnerSrcIp6_get(unit, entry, data, mask); 18413 } 18414 #endif 18415 18416 #ifdef BCM_TOMAHAWK3_SUPPORT 18417 int 18418 bcm_tomahawk3_field_qualify_InnerSrcIp_get( 18419 int unit, 18420 bcm_field_entry_t entry, 18421 bcm_ip_t *data, 18422 bcm_ip_t *mask) 18423 { 18424 return bcm_esw_field_qualify_InnerSrcIp_get(unit, entry, data, mask); 18425 } 18426 #endif 18427 18428 #ifdef BCM_TOMAHAWK3_SUPPORT 18429 int 18430 bcm_tomahawk3_field_qualify_InnerSrcMac( 18431 int unit, 18432 bcm_field_entry_t entry, 18433 bcm_mac_t data, 18434 bcm_mac_t mask) 18435 { 18436 return bcm_esw_field_qualify_InnerSrcMac(unit, entry, data, mask); 18437 } 18438 #endif 18439 18440 #ifdef BCM_TOMAHAWK3_SUPPORT 18441 int 18442 bcm_tomahawk3_field_qualify_InnerSrcMac_get( 18443 int unit, 18444 bcm_field_entry_t entry, 18445 bcm_mac_t *data, 18446 bcm_mac_t *mask) 18447 { 18448 return bcm_esw_field_qualify_InnerSrcMac_get(unit, entry, data, mask); 18449 } 18450 #endif 18451 18452 #ifdef BCM_TOMAHAWK3_SUPPORT 18453 int 18454 bcm_tomahawk3_field_qualify_InnerTos( 18455 int unit, 18456 bcm_field_entry_t entry, 18457 uint8 data, 18458 uint8 mask) 18459 { 18460 return bcm_esw_field_qualify_InnerTos(unit, entry, data, mask); 18461 } 18462 #endif 18463 18464 #ifdef BCM_TOMAHAWK3_SUPPORT 18465 int 18466 bcm_tomahawk3_field_qualify_InnerTos_get( 18467 int unit, 18468 bcm_field_entry_t entry, 18469 uint8 *data, 18470 uint8 *mask) 18471 { 18472 return bcm_esw_field_qualify_InnerTos_get(unit, entry, data, mask); 18473 } 18474 #endif 18475 18476 #ifdef BCM_TOMAHAWK3_SUPPORT 18477 int 18478 bcm_tomahawk3_field_qualify_InnerTpid( 18479 int unit, 18480 bcm_field_entry_t entry, 18481 uint16 tpid) 18482 { 18483 return bcm_esw_field_qualify_InnerTpid(unit, entry, tpid); 18484 } 18485 #endif 18486 18487 #ifdef BCM_TOMAHAWK3_SUPPORT 18488 int 18489 bcm_tomahawk3_field_qualify_InnerTpid_get( 18490 int unit, 18491 bcm_field_entry_t entry, 18492 uint16 *tpid) 18493 { 18494 return bcm_esw_field_qualify_InnerTpid_get(unit, entry, tpid); 18495 } 18496 #endif 18497 18498 #ifdef BCM_TOMAHAWK3_SUPPORT 18499 int 18500 bcm_tomahawk3_field_qualify_InnerTtl( 18501 int unit, 18502 bcm_field_entry_t entry, 18503 uint8 data, 18504 uint8 mask) 18505 { 18506 return bcm_esw_field_qualify_InnerTtl(unit, entry, data, mask); 18507 } 18508 #endif 18509 18510 #ifdef BCM_TOMAHAWK3_SUPPORT 18511 int 18512 bcm_tomahawk3_field_qualify_InnerTtl_get( 18513 int unit, 18514 bcm_field_entry_t entry, 18515 uint8 *data, 18516 uint8 *mask) 18517 { 18518 return bcm_esw_field_qualify_InnerTtl_get(unit, entry, data, mask); 18519 } 18520 #endif 18521 18522 #ifdef BCM_TOMAHAWK3_SUPPORT 18523 int 18524 bcm_tomahawk3_field_qualify_InnerVlan( 18525 int unit, 18526 bcm_field_entry_t entry, 18527 bcm_vlan_t data, 18528 bcm_vlan_t mask) 18529 { 18530 return bcm_esw_field_qualify_InnerVlan(unit, entry, data, mask); 18531 } 18532 #endif 18533 18534 int 18535 bcm_tomahawk3_field_qualify_InnerVlanActionRange( 18536 int unit, 18537 bcm_field_entry_t entry, 18538 bcm_vlan_t data, 18539 bcm_vlan_t mask) 18540 { 18541 return BCM_E_UNAVAIL; 18542 } 18543 18544 int 18545 bcm_tomahawk3_field_qualify_InnerVlanActionRange_get( 18546 int unit, 18547 bcm_field_entry_t entry, 18548 bcm_vlan_t *data, 18549 bcm_vlan_t *mask) 18550 { 18551 return BCM_E_UNAVAIL; 18552 } 18553 18554 #ifdef BCM_TOMAHAWK3_SUPPORT 18555 int 18556 bcm_tomahawk3_field_qualify_InnerVlanCfi( 18557 int unit, 18558 bcm_field_entry_t entry, 18559 uint8 data, 18560 uint8 mask) 18561 { 18562 return bcm_esw_field_qualify_InnerVlanCfi(unit, entry, data, mask); 18563 } 18564 #endif 18565 18566 #ifdef BCM_TOMAHAWK3_SUPPORT 18567 int 18568 bcm_tomahawk3_field_qualify_InnerVlanCfi_get( 18569 int unit, 18570 bcm_field_entry_t entry, 18571 uint8 *data, 18572 uint8 *mask) 18573 { 18574 return bcm_esw_field_qualify_InnerVlanCfi_get(unit, entry, data, mask); 18575 } 18576 #endif 18577 18578 #ifdef BCM_TOMAHAWK3_SUPPORT 18579 int 18580 bcm_tomahawk3_field_qualify_InnerVlanId( 18581 int unit, 18582 bcm_field_entry_t entry, 18583 bcm_vlan_t data, 18584 bcm_vlan_t mask) 18585 { 18586 return bcm_esw_field_qualify_InnerVlanId(unit, entry, data, mask); 18587 } 18588 #endif 18589 18590 #ifdef BCM_TOMAHAWK3_SUPPORT 18591 int 18592 bcm_tomahawk3_field_qualify_InnerVlanId_get( 18593 int unit, 18594 bcm_field_entry_t entry, 18595 bcm_vlan_t *data, 18596 bcm_vlan_t *mask) 18597 { 18598 return bcm_esw_field_qualify_InnerVlanId_get(unit, entry, data, mask); 18599 } 18600 #endif 18601 18602 #ifdef BCM_TOMAHAWK3_SUPPORT 18603 int 18604 bcm_tomahawk3_field_qualify_InnerVlanPri( 18605 int unit, 18606 bcm_field_entry_t entry, 18607 uint8 data, 18608 uint8 mask) 18609 { 18610 return bcm_esw_field_qualify_InnerVlanPri(unit, entry, data, mask); 18611 } 18612 #endif 18613 18614 #ifdef BCM_TOMAHAWK3_SUPPORT 18615 int 18616 bcm_tomahawk3_field_qualify_InnerVlanPri_get( 18617 int unit, 18618 bcm_field_entry_t entry, 18619 uint8 *data, 18620 uint8 *mask) 18621 { 18622 return bcm_esw_field_qualify_InnerVlanPri_get(unit, entry, data, mask); 18623 } 18624 #endif 18625 18626 #ifdef BCM_TOMAHAWK3_SUPPORT 18627 int 18628 bcm_tomahawk3_field_qualify_InnerVlan_get( 18629 int unit, 18630 bcm_field_entry_t entry, 18631 bcm_vlan_t *data, 18632 bcm_vlan_t *mask) 18633 { 18634 return bcm_esw_field_qualify_InnerVlan_get(unit, entry, data, mask); 18635 } 18636 #endif 18637 18638 #ifdef BCM_TOMAHAWK3_SUPPORT 18639 int 18640 bcm_tomahawk3_field_qualify_IntCongestionNotification( 18641 int unit, 18642 bcm_field_entry_t entry, 18643 uint8 data, 18644 uint8 mask) 18645 { 18646 return bcm_esw_field_qualify_IntCongestionNotification(unit, entry, data, mask); 18647 } 18648 #endif 18649 18650 #ifdef BCM_TOMAHAWK3_SUPPORT 18651 int 18652 bcm_tomahawk3_field_qualify_IntCongestionNotification_get( 18653 int unit, 18654 bcm_field_entry_t entry, 18655 uint8 *data, 18656 uint8 *mask) 18657 { 18658 return bcm_esw_field_qualify_IntCongestionNotification_get(unit, entry, data, mask); 18659 } 18660 #endif 18661 18662 #ifdef BCM_TOMAHAWK3_SUPPORT 18663 int 18664 bcm_tomahawk3_field_qualify_IntPktFinalHop( 18665 int unit, 18666 bcm_field_entry_t entry, 18667 uint8 data, 18668 uint8 mask) 18669 { 18670 return bcm_esw_field_qualify_IntPktFinalHop(unit, entry, data, mask); 18671 } 18672 #endif 18673 18674 #ifdef BCM_TOMAHAWK3_SUPPORT 18675 int 18676 bcm_tomahawk3_field_qualify_IntPktFinalHop_get( 18677 int unit, 18678 bcm_field_entry_t entry, 18679 uint8 *data, 18680 uint8 *mask) 18681 { 18682 return bcm_esw_field_qualify_IntPktFinalHop_get(unit, entry, data, mask); 18683 } 18684 #endif 18685 18686 #ifdef BCM_TOMAHAWK3_SUPPORT 18687 int 18688 bcm_tomahawk3_field_qualify_IntPktLengthValid( 18689 int unit, 18690 bcm_field_entry_t entry, 18691 uint8 data, 18692 uint8 mask) 18693 { 18694 return bcm_esw_field_qualify_IntPktLengthValid(unit, entry, data, mask); 18695 } 18696 #endif 18697 18698 #ifdef BCM_TOMAHAWK3_SUPPORT 18699 int 18700 bcm_tomahawk3_field_qualify_IntPktLengthValid_get( 18701 int unit, 18702 bcm_field_entry_t entry, 18703 uint8 *data, 18704 uint8 *mask) 18705 { 18706 return bcm_esw_field_qualify_IntPktLengthValid_get(unit, entry, data, mask); 18707 } 18708 #endif 18709 18710 #ifdef BCM_TOMAHAWK3_SUPPORT 18711 int 18712 bcm_tomahawk3_field_qualify_IntPktOverflowed( 18713 int unit, 18714 bcm_field_entry_t entry, 18715 uint8 data, 18716 uint8 mask) 18717 { 18718 return bcm_esw_field_qualify_IntPktOverflowed(unit, entry, data, mask); 18719 } 18720 #endif 18721 18722 #ifdef BCM_TOMAHAWK3_SUPPORT 18723 int 18724 bcm_tomahawk3_field_qualify_IntPktOverflowed_get( 18725 int unit, 18726 bcm_field_entry_t entry, 18727 uint8 *data, 18728 uint8 *mask) 18729 { 18730 return bcm_esw_field_qualify_IntPktOverflowed_get(unit, entry, data, mask); 18731 } 18732 #endif 18733 18734 #ifdef BCM_TOMAHAWK3_SUPPORT 18735 int 18736 bcm_tomahawk3_field_qualify_IntPktType( 18737 int unit, 18738 bcm_field_entry_t entry, 18739 bcm_field_int_pkt_type_t type) 18740 { 18741 return bcm_esw_field_qualify_IntPktType(unit, entry, type); 18742 } 18743 #endif 18744 18745 #ifdef BCM_TOMAHAWK3_SUPPORT 18746 int 18747 bcm_tomahawk3_field_qualify_IntPktType_get( 18748 int unit, 18749 bcm_field_entry_t entry, 18750 bcm_field_int_pkt_type_t *type) 18751 { 18752 return bcm_esw_field_qualify_IntPktType_get(unit, entry, type); 18753 } 18754 #endif 18755 18756 #ifdef BCM_TOMAHAWK3_SUPPORT 18757 int 18758 bcm_tomahawk3_field_qualify_IntPktVersionOne( 18759 int unit, 18760 bcm_field_entry_t entry, 18761 uint8 data, 18762 uint8 mask) 18763 { 18764 return bcm_esw_field_qualify_IntPktVersionOne(unit, entry, data, mask); 18765 } 18766 #endif 18767 18768 #ifdef BCM_TOMAHAWK3_SUPPORT 18769 int 18770 bcm_tomahawk3_field_qualify_IntPktVersionOne_get( 18771 int unit, 18772 bcm_field_entry_t entry, 18773 uint8 *data, 18774 uint8 *mask) 18775 { 18776 return bcm_esw_field_qualify_IntPktVersionOne_get(unit, entry, data, mask); 18777 } 18778 #endif 18779 18780 #ifdef BCM_TOMAHAWK3_SUPPORT 18781 int 18782 bcm_tomahawk3_field_qualify_IntPriority( 18783 int unit, 18784 bcm_field_entry_t entry, 18785 uint8 data, 18786 uint8 mask) 18787 { 18788 return bcm_esw_field_qualify_IntPriority(unit, entry, data, mask); 18789 } 18790 #endif 18791 18792 #ifdef BCM_TOMAHAWK3_SUPPORT 18793 int 18794 bcm_tomahawk3_field_qualify_IntPriority_get( 18795 int unit, 18796 bcm_field_entry_t entry, 18797 uint8 *data, 18798 uint8 *mask) 18799 { 18800 return bcm_esw_field_qualify_IntPriority_get(unit, entry, data, mask); 18801 } 18802 #endif 18803 18804 #ifdef BCM_TOMAHAWK3_SUPPORT 18805 int 18806 bcm_tomahawk3_field_qualify_InterfaceClassL2( 18807 int unit, 18808 bcm_field_entry_t entry, 18809 uint32 data, 18810 uint32 mask) 18811 { 18812 return bcm_esw_field_qualify_InterfaceClassL2(unit, entry, data, mask); 18813 } 18814 #endif 18815 18816 #ifdef BCM_TOMAHAWK3_SUPPORT 18817 int 18818 bcm_tomahawk3_field_qualify_InterfaceClassL2Type( 18819 int unit, 18820 bcm_field_entry_t entry, 18821 bcm_field_interface_class_l2_type_t type) 18822 { 18823 return bcm_esw_field_qualify_InterfaceClassL2Type(unit, entry, type); 18824 } 18825 #endif 18826 18827 #ifdef BCM_TOMAHAWK3_SUPPORT 18828 int 18829 bcm_tomahawk3_field_qualify_InterfaceClassL2Type_get( 18830 int unit, 18831 bcm_field_entry_t entry, 18832 bcm_field_interface_class_l2_type_t *type) 18833 { 18834 return bcm_esw_field_qualify_InterfaceClassL2Type_get(unit, entry, type); 18835 } 18836 #endif 18837 18838 #ifdef BCM_TOMAHAWK3_SUPPORT 18839 int 18840 bcm_tomahawk3_field_qualify_InterfaceClassL2_get( 18841 int unit, 18842 bcm_field_entry_t entry, 18843 uint32 *data, 18844 uint32 *mask) 18845 { 18846 return bcm_esw_field_qualify_InterfaceClassL2_get(unit, entry, data, mask); 18847 } 18848 #endif 18849 18850 #ifdef BCM_TOMAHAWK3_SUPPORT 18851 int 18852 bcm_tomahawk3_field_qualify_InterfaceClassL3( 18853 int unit, 18854 bcm_field_entry_t entry, 18855 uint32 data, 18856 uint32 mask) 18857 { 18858 return bcm_esw_field_qualify_InterfaceClassL3(unit, entry, data, mask); 18859 } 18860 #endif 18861 18862 #ifdef BCM_TOMAHAWK3_SUPPORT 18863 int 18864 bcm_tomahawk3_field_qualify_InterfaceClassL3Tunnel( 18865 int unit, 18866 bcm_field_entry_t entry, 18867 uint16 data, 18868 uint16 mask) 18869 { 18870 return bcm_esw_field_qualify_InterfaceClassL3Tunnel(unit, entry, data, mask); 18871 } 18872 #endif 18873 18874 #ifdef BCM_TOMAHAWK3_SUPPORT 18875 int 18876 bcm_tomahawk3_field_qualify_InterfaceClassL3Tunnel_get( 18877 int unit, 18878 bcm_field_entry_t entry, 18879 uint16 *data, 18880 uint16 *mask) 18881 { 18882 return bcm_esw_field_qualify_InterfaceClassL3Tunnel_get(unit, entry, data, mask); 18883 } 18884 #endif 18885 18886 #ifdef BCM_TOMAHAWK3_SUPPORT 18887 int 18888 bcm_tomahawk3_field_qualify_InterfaceClassL3_get( 18889 int unit, 18890 bcm_field_entry_t entry, 18891 uint32 *data, 18892 uint32 *mask) 18893 { 18894 return bcm_esw_field_qualify_InterfaceClassL3_get(unit, entry, data, mask); 18895 } 18896 #endif 18897 18898 #ifdef BCM_TOMAHAWK3_SUPPORT 18899 int 18900 bcm_tomahawk3_field_qualify_InterfaceClassMplsLookup1( 18901 int unit, 18902 bcm_field_entry_t entry, 18903 uint16 data, 18904 uint16 mask) 18905 { 18906 return bcm_esw_field_qualify_InterfaceClassMplsLookup1(unit, entry, data, mask); 18907 } 18908 #endif 18909 18910 #ifdef BCM_TOMAHAWK3_SUPPORT 18911 int 18912 bcm_tomahawk3_field_qualify_InterfaceClassMplsLookup1_get( 18913 int unit, 18914 bcm_field_entry_t entry, 18915 uint16 *data, 18916 uint16 *mask) 18917 { 18918 return bcm_esw_field_qualify_InterfaceClassMplsLookup1_get(unit, entry, data, mask); 18919 } 18920 #endif 18921 18922 #ifdef BCM_TOMAHAWK3_SUPPORT 18923 int 18924 bcm_tomahawk3_field_qualify_InterfaceClassMplsLookup2( 18925 int unit, 18926 bcm_field_entry_t entry, 18927 uint16 data, 18928 uint16 mask) 18929 { 18930 return bcm_esw_field_qualify_InterfaceClassMplsLookup2(unit, entry, data, mask); 18931 } 18932 #endif 18933 18934 #ifdef BCM_TOMAHAWK3_SUPPORT 18935 int 18936 bcm_tomahawk3_field_qualify_InterfaceClassMplsLookup2_get( 18937 int unit, 18938 bcm_field_entry_t entry, 18939 uint16 *data, 18940 uint16 *mask) 18941 { 18942 return bcm_esw_field_qualify_InterfaceClassMplsLookup2_get(unit, entry, data, mask); 18943 } 18944 #endif 18945 18946 #ifdef BCM_TOMAHAWK3_SUPPORT 18947 int 18948 bcm_tomahawk3_field_qualify_InterfaceClassMplsLookup3( 18949 int unit, 18950 bcm_field_entry_t entry, 18951 uint16 data, 18952 uint16 mask) 18953 { 18954 return bcm_esw_field_qualify_InterfaceClassMplsLookup3(unit, entry, data, mask); 18955 } 18956 #endif 18957 18958 #ifdef BCM_TOMAHAWK3_SUPPORT 18959 int 18960 bcm_tomahawk3_field_qualify_InterfaceClassMplsLookup3_get( 18961 int unit, 18962 bcm_field_entry_t entry, 18963 uint16 *data, 18964 uint16 *mask) 18965 { 18966 return bcm_esw_field_qualify_InterfaceClassMplsLookup3_get(unit, entry, data, mask); 18967 } 18968 #endif 18969 18970 #ifdef BCM_TOMAHAWK3_SUPPORT 18971 int 18972 bcm_tomahawk3_field_qualify_InterfaceClassPort( 18973 int unit, 18974 bcm_field_entry_t entry, 18975 uint32 data, 18976 uint32 mask) 18977 { 18978 return bcm_esw_field_qualify_InterfaceClassPort(unit, entry, data, mask); 18979 } 18980 #endif 18981 18982 #ifdef BCM_TOMAHAWK3_SUPPORT 18983 int 18984 bcm_tomahawk3_field_qualify_InterfaceClassPort_get( 18985 int unit, 18986 bcm_field_entry_t entry, 18987 uint32 *data, 18988 uint32 *mask) 18989 { 18990 return bcm_esw_field_qualify_InterfaceClassPort_get(unit, entry, data, mask); 18991 } 18992 #endif 18993 18994 #ifdef BCM_TOMAHAWK3_SUPPORT 18995 int 18996 bcm_tomahawk3_field_qualify_InterfaceClassProcessingPort( 18997 int unit, 18998 bcm_field_entry_t entry, 18999 uint64 data, 19000 uint64 mask) 19001 { 19002 return bcm_esw_field_qualify_InterfaceClassProcessingPort(unit, entry, data, mask); 19003 } 19004 #endif 19005 19006 #ifdef BCM_TOMAHAWK3_SUPPORT 19007 int 19008 bcm_tomahawk3_field_qualify_InterfaceClassProcessingPort_get( 19009 int unit, 19010 bcm_field_entry_t entry, 19011 uint64 *data, 19012 uint64 *mask) 19013 { 19014 return bcm_esw_field_qualify_InterfaceClassProcessingPort_get(unit, entry, data, mask); 19015 } 19016 #endif 19017 19018 #ifdef BCM_TOMAHAWK3_SUPPORT 19019 int 19020 bcm_tomahawk3_field_qualify_InterfaceClassVPort( 19021 int unit, 19022 bcm_field_entry_t entry, 19023 uint32 data, 19024 uint32 mask) 19025 { 19026 return bcm_esw_field_qualify_InterfaceClassVPort(unit, entry, data, mask); 19027 } 19028 #endif 19029 19030 #ifdef BCM_TOMAHAWK3_SUPPORT 19031 int 19032 bcm_tomahawk3_field_qualify_InterfaceClassVPort_get( 19033 int unit, 19034 bcm_field_entry_t entry, 19035 uint32 *data, 19036 uint32 *mask) 19037 { 19038 return bcm_esw_field_qualify_InterfaceClassVPort_get(unit, entry, data, mask); 19039 } 19040 #endif 19041 19042 int 19043 bcm_tomahawk3_field_qualify_InterfaceInPorts( 19044 int unit, 19045 bcm_field_entry_t entry, 19046 bcm_pbmp_t data, 19047 bcm_pbmp_t mask) 19048 { 19049 return BCM_E_UNAVAIL; 19050 } 19051 19052 int 19053 bcm_tomahawk3_field_qualify_InterfaceInPorts_get( 19054 int unit, 19055 bcm_field_entry_t entry, 19056 bcm_pbmp_t *data, 19057 bcm_pbmp_t *mask) 19058 { 19059 return BCM_E_UNAVAIL; 19060 } 19061 19062 #ifdef BCM_TOMAHAWK3_SUPPORT 19063 int 19064 bcm_tomahawk3_field_qualify_InterfaceIngressKeySelectClassPort( 19065 int unit, 19066 bcm_field_entry_t entry, 19067 uint32 data, 19068 uint32 mask) 19069 { 19070 return bcm_esw_field_qualify_InterfaceIngressKeySelectClassPort(unit, entry, data, mask); 19071 } 19072 #endif 19073 19074 #ifdef BCM_TOMAHAWK3_SUPPORT 19075 int 19076 bcm_tomahawk3_field_qualify_InterfaceIngressKeySelectClassPort_get( 19077 int unit, 19078 bcm_field_entry_t entry, 19079 uint32 *data, 19080 uint32 *mask) 19081 { 19082 return bcm_esw_field_qualify_InterfaceIngressKeySelectClassPort_get(unit, entry, data, mask); 19083 } 19084 #endif 19085 19086 #ifdef BCM_TOMAHAWK3_SUPPORT 19087 int 19088 bcm_tomahawk3_field_qualify_InterfaceLookupClassPort( 19089 int unit, 19090 bcm_field_entry_t entry, 19091 uint32 data, 19092 uint32 mask) 19093 { 19094 return bcm_esw_field_qualify_InterfaceLookupClassPort(unit, entry, data, mask); 19095 } 19096 #endif 19097 19098 #ifdef BCM_TOMAHAWK3_SUPPORT 19099 int 19100 bcm_tomahawk3_field_qualify_InterfaceLookupClassPort_get( 19101 int unit, 19102 bcm_field_entry_t entry, 19103 uint32 *data, 19104 uint32 *mask) 19105 { 19106 return bcm_esw_field_qualify_InterfaceLookupClassPort_get(unit, entry, data, mask); 19107 } 19108 #endif 19109 19110 #ifdef BCM_TOMAHAWK3_SUPPORT 19111 int 19112 bcm_tomahawk3_field_qualify_Ip4Length( 19113 int unit, 19114 bcm_field_entry_t entry, 19115 uint16 data, 19116 uint16 mask) 19117 { 19118 return bcm_esw_field_qualify_Ip4Length(unit, entry, data, mask); 19119 } 19120 #endif 19121 19122 #ifdef BCM_TOMAHAWK3_SUPPORT 19123 int 19124 bcm_tomahawk3_field_qualify_Ip4Length_get( 19125 int unit, 19126 bcm_field_entry_t entry, 19127 uint16 *data, 19128 uint16 *mask) 19129 { 19130 return bcm_esw_field_qualify_Ip4Length_get(unit, entry, data, mask); 19131 } 19132 #endif 19133 19134 #ifdef BCM_TOMAHAWK3_SUPPORT 19135 int 19136 bcm_tomahawk3_field_qualify_Ip6FlowLabel( 19137 int unit, 19138 bcm_field_entry_t entry, 19139 uint32 data, 19140 uint32 mask) 19141 { 19142 return bcm_esw_field_qualify_Ip6FlowLabel(unit, entry, data, mask); 19143 } 19144 #endif 19145 19146 #ifdef BCM_TOMAHAWK3_SUPPORT 19147 int 19148 bcm_tomahawk3_field_qualify_Ip6FlowLabel_get( 19149 int unit, 19150 bcm_field_entry_t entry, 19151 uint32 *data, 19152 uint32 *mask) 19153 { 19154 return bcm_esw_field_qualify_Ip6FlowLabel_get(unit, entry, data, mask); 19155 } 19156 #endif 19157 19158 #ifdef BCM_TOMAHAWK3_SUPPORT 19159 int 19160 bcm_tomahawk3_field_qualify_Ip6HopLimit( 19161 int unit, 19162 bcm_field_entry_t entry, 19163 uint8 data, 19164 uint8 mask) 19165 { 19166 return bcm_esw_field_qualify_Ip6HopLimit(unit, entry, data, mask); 19167 } 19168 #endif 19169 19170 #ifdef BCM_TOMAHAWK3_SUPPORT 19171 int 19172 bcm_tomahawk3_field_qualify_Ip6HopLimit_get( 19173 int unit, 19174 bcm_field_entry_t entry, 19175 uint8 *data, 19176 uint8 *mask) 19177 { 19178 return bcm_esw_field_qualify_Ip6HopLimit_get(unit, entry, data, mask); 19179 } 19180 #endif 19181 19182 #ifdef BCM_TOMAHAWK3_SUPPORT 19183 int 19184 bcm_tomahawk3_field_qualify_Ip6Length( 19185 int unit, 19186 bcm_field_entry_t entry, 19187 uint16 data, 19188 uint16 mask) 19189 { 19190 return bcm_esw_field_qualify_Ip6Length(unit, entry, data, mask); 19191 } 19192 #endif 19193 19194 #ifdef BCM_TOMAHAWK3_SUPPORT 19195 int 19196 bcm_tomahawk3_field_qualify_Ip6Length_get( 19197 int unit, 19198 bcm_field_entry_t entry, 19199 uint16 *data, 19200 uint16 *mask) 19201 { 19202 return bcm_esw_field_qualify_Ip6Length_get(unit, entry, data, mask); 19203 } 19204 #endif 19205 19206 #ifdef BCM_TOMAHAWK3_SUPPORT 19207 int 19208 bcm_tomahawk3_field_qualify_Ip6NextHeader( 19209 int unit, 19210 bcm_field_entry_t entry, 19211 uint8 data, 19212 uint8 mask) 19213 { 19214 return bcm_esw_field_qualify_Ip6NextHeader(unit, entry, data, mask); 19215 } 19216 #endif 19217 19218 #ifdef BCM_TOMAHAWK3_SUPPORT 19219 int 19220 bcm_tomahawk3_field_qualify_Ip6NextHeader_get( 19221 int unit, 19222 bcm_field_entry_t entry, 19223 uint8 *data, 19224 uint8 *mask) 19225 { 19226 return bcm_esw_field_qualify_Ip6NextHeader_get(unit, entry, data, mask); 19227 } 19228 #endif 19229 19230 #ifdef BCM_TOMAHAWK3_SUPPORT 19231 int 19232 bcm_tomahawk3_field_qualify_Ip6PktHopLimit( 19233 int unit, 19234 bcm_field_entry_t entry, 19235 uint8 data, 19236 uint8 mask) 19237 { 19238 return bcm_esw_field_qualify_Ip6PktHopLimit(unit, entry, data, mask); 19239 } 19240 #endif 19241 19242 #ifdef BCM_TOMAHAWK3_SUPPORT 19243 int 19244 bcm_tomahawk3_field_qualify_Ip6PktHopLimit_get( 19245 int unit, 19246 bcm_field_entry_t entry, 19247 uint8 *data, 19248 uint8 *mask) 19249 { 19250 return bcm_esw_field_qualify_Ip6PktHopLimit_get(unit, entry, data, mask); 19251 } 19252 #endif 19253 19254 #ifdef BCM_TOMAHAWK3_SUPPORT 19255 int 19256 bcm_tomahawk3_field_qualify_Ip6PktNextHeader( 19257 int unit, 19258 bcm_field_entry_t entry, 19259 uint8 data, 19260 uint8 mask) 19261 { 19262 return bcm_esw_field_qualify_Ip6PktNextHeader(unit, entry, data, mask); 19263 } 19264 #endif 19265 19266 #ifdef BCM_TOMAHAWK3_SUPPORT 19267 int 19268 bcm_tomahawk3_field_qualify_Ip6PktNextHeader_get( 19269 int unit, 19270 bcm_field_entry_t entry, 19271 uint8 *data, 19272 uint8 *mask) 19273 { 19274 return bcm_esw_field_qualify_Ip6PktNextHeader_get(unit, entry, data, mask); 19275 } 19276 #endif 19277 19278 #ifdef BCM_TOMAHAWK3_SUPPORT 19279 int 19280 bcm_tomahawk3_field_qualify_Ip6PktTrafficClass( 19281 int unit, 19282 bcm_field_entry_t entry, 19283 uint8 data, 19284 uint8 mask) 19285 { 19286 return bcm_esw_field_qualify_Ip6PktTrafficClass(unit, entry, data, mask); 19287 } 19288 #endif 19289 19290 #ifdef BCM_TOMAHAWK3_SUPPORT 19291 int 19292 bcm_tomahawk3_field_qualify_Ip6PktTrafficClass_get( 19293 int unit, 19294 bcm_field_entry_t entry, 19295 uint8 *data, 19296 uint8 *mask) 19297 { 19298 return bcm_esw_field_qualify_Ip6PktTrafficClass_get(unit, entry, data, mask); 19299 } 19300 #endif 19301 19302 #ifdef BCM_TOMAHAWK3_SUPPORT 19303 int 19304 bcm_tomahawk3_field_qualify_Ip6TrafficClass( 19305 int unit, 19306 bcm_field_entry_t entry, 19307 uint8 data, 19308 uint8 mask) 19309 { 19310 return bcm_esw_field_qualify_Ip6TrafficClass(unit, entry, data, mask); 19311 } 19312 #endif 19313 19314 #ifdef BCM_TOMAHAWK3_SUPPORT 19315 int 19316 bcm_tomahawk3_field_qualify_Ip6TrafficClass_get( 19317 int unit, 19318 bcm_field_entry_t entry, 19319 uint8 *data, 19320 uint8 *mask) 19321 { 19322 return bcm_esw_field_qualify_Ip6TrafficClass_get(unit, entry, data, mask); 19323 } 19324 #endif 19325 19326 #ifdef BCM_TOMAHAWK3_SUPPORT 19327 int 19328 bcm_tomahawk3_field_qualify_IpAddrsNormalized( 19329 int unit, 19330 bcm_field_entry_t entry, 19331 uint8 data, 19332 uint8 mask) 19333 { 19334 return bcm_esw_field_qualify_IpAddrsNormalized(unit, entry, data, mask); 19335 } 19336 #endif 19337 19338 #ifdef BCM_TOMAHAWK3_SUPPORT 19339 int 19340 bcm_tomahawk3_field_qualify_IpAddrsNormalized_get( 19341 int unit, 19342 bcm_field_entry_t entry, 19343 uint8 *data, 19344 uint8 *mask) 19345 { 19346 return bcm_esw_field_qualify_IpAddrsNormalized_get(unit, entry, data, mask); 19347 } 19348 #endif 19349 19350 #ifdef BCM_TOMAHAWK3_SUPPORT 19351 int 19352 bcm_tomahawk3_field_qualify_IpChecksumOkPkt( 19353 int unit, 19354 bcm_field_entry_t entry, 19355 uint8 data, 19356 uint8 mask) 19357 { 19358 return bcm_esw_field_qualify_IpChecksumOkPkt(unit, entry, data, mask); 19359 } 19360 #endif 19361 19362 #ifdef BCM_TOMAHAWK3_SUPPORT 19363 int 19364 bcm_tomahawk3_field_qualify_IpChecksumOkPkt_get( 19365 int unit, 19366 bcm_field_entry_t entry, 19367 uint8 *data, 19368 uint8 *mask) 19369 { 19370 return bcm_esw_field_qualify_IpChecksumOkPkt_get(unit, entry, data, mask); 19371 } 19372 #endif 19373 19374 #ifdef BCM_TOMAHAWK3_SUPPORT 19375 int 19376 bcm_tomahawk3_field_qualify_IpFlags( 19377 int unit, 19378 bcm_field_entry_t entry, 19379 uint8 data, 19380 uint8 mask) 19381 { 19382 return bcm_esw_field_qualify_IpFlags(unit, entry, data, mask); 19383 } 19384 #endif 19385 19386 #ifdef BCM_TOMAHAWK3_SUPPORT 19387 int 19388 bcm_tomahawk3_field_qualify_IpFlags_get( 19389 int unit, 19390 bcm_field_entry_t entry, 19391 uint8 *data, 19392 uint8 *mask) 19393 { 19394 return bcm_esw_field_qualify_IpFlags_get(unit, entry, data, mask); 19395 } 19396 #endif 19397 19398 #ifdef BCM_TOMAHAWK3_SUPPORT 19399 int 19400 bcm_tomahawk3_field_qualify_IpFrag( 19401 int unit, 19402 bcm_field_entry_t entry, 19403 bcm_field_IpFrag_t frag_info) 19404 { 19405 return bcm_esw_field_qualify_IpFrag(unit, entry, frag_info); 19406 } 19407 #endif 19408 19409 #ifdef BCM_TOMAHAWK3_SUPPORT 19410 int 19411 bcm_tomahawk3_field_qualify_IpFragNonOrFirst( 19412 int unit, 19413 bcm_field_entry_t entry, 19414 uint8 data, 19415 uint8 mask) 19416 { 19417 return bcm_esw_field_qualify_IpFragNonOrFirst(unit, entry, data, mask); 19418 } 19419 #endif 19420 19421 #ifdef BCM_TOMAHAWK3_SUPPORT 19422 int 19423 bcm_tomahawk3_field_qualify_IpFragNonOrFirst_get( 19424 int unit, 19425 bcm_field_entry_t entry, 19426 uint8 *data, 19427 uint8 *mask) 19428 { 19429 return bcm_esw_field_qualify_IpFragNonOrFirst_get(unit, entry, data, mask); 19430 } 19431 #endif 19432 19433 #ifdef BCM_TOMAHAWK3_SUPPORT 19434 int 19435 bcm_tomahawk3_field_qualify_IpFragPkt( 19436 int unit, 19437 bcm_field_entry_t entry, 19438 uint8 data, 19439 uint8 mask) 19440 { 19441 return bcm_esw_field_qualify_IpFragPkt(unit, entry, data, mask); 19442 } 19443 #endif 19444 19445 #ifdef BCM_TOMAHAWK3_SUPPORT 19446 int 19447 bcm_tomahawk3_field_qualify_IpFragPkt_get( 19448 int unit, 19449 bcm_field_entry_t entry, 19450 uint8 *data, 19451 uint8 *mask) 19452 { 19453 return bcm_esw_field_qualify_IpFragPkt_get(unit, entry, data, mask); 19454 } 19455 #endif 19456 19457 #ifdef BCM_TOMAHAWK3_SUPPORT 19458 int 19459 bcm_tomahawk3_field_qualify_IpFrag_get( 19460 int unit, 19461 bcm_field_entry_t entry, 19462 bcm_field_IpFrag_t *frag_info) 19463 { 19464 return bcm_esw_field_qualify_IpFrag_get(unit, entry, frag_info); 19465 } 19466 #endif 19467 19468 #ifdef BCM_TOMAHAWK3_SUPPORT 19469 int 19470 bcm_tomahawk3_field_qualify_IpIdentifier( 19471 int unit, 19472 bcm_field_entry_t entry, 19473 uint16 data, 19474 uint16 mask) 19475 { 19476 return bcm_esw_field_qualify_IpIdentifier(unit, entry, data, mask); 19477 } 19478 #endif 19479 19480 #ifdef BCM_TOMAHAWK3_SUPPORT 19481 int 19482 bcm_tomahawk3_field_qualify_IpIdentifier_get( 19483 int unit, 19484 bcm_field_entry_t entry, 19485 uint16 *data, 19486 uint16 *mask) 19487 { 19488 return bcm_esw_field_qualify_IpIdentifier_get(unit, entry, data, mask); 19489 } 19490 #endif 19491 19492 #ifdef BCM_TOMAHAWK3_SUPPORT 19493 int 19494 bcm_tomahawk3_field_qualify_IpInIpPkt( 19495 int unit, 19496 bcm_field_entry_t entry, 19497 uint8 data, 19498 uint8 mask) 19499 { 19500 return bcm_esw_field_qualify_IpInIpPkt(unit, entry, data, mask); 19501 } 19502 #endif 19503 19504 #ifdef BCM_TOMAHAWK3_SUPPORT 19505 int 19506 bcm_tomahawk3_field_qualify_IpInIpPkt_get( 19507 int unit, 19508 bcm_field_entry_t entry, 19509 uint8 *data, 19510 uint8 *mask) 19511 { 19512 return bcm_esw_field_qualify_IpInIpPkt_get(unit, entry, data, mask); 19513 } 19514 #endif 19515 19516 #ifdef BCM_TOMAHAWK3_SUPPORT 19517 int 19518 bcm_tomahawk3_field_qualify_IpInfo( 19519 int unit, 19520 bcm_field_entry_t entry, 19521 uint32 data, 19522 uint32 mask) 19523 { 19524 return bcm_esw_field_qualify_IpInfo(unit, entry, data, mask); 19525 } 19526 #endif 19527 19528 #ifdef BCM_TOMAHAWK3_SUPPORT 19529 int 19530 bcm_tomahawk3_field_qualify_IpInfo_get( 19531 int unit, 19532 bcm_field_entry_t entry, 19533 uint32 *data, 19534 uint32 *mask) 19535 { 19536 return bcm_esw_field_qualify_IpInfo_get(unit, entry, data, mask); 19537 } 19538 #endif 19539 19540 int 19541 bcm_tomahawk3_field_qualify_IpMulticastCompatible( 19542 int unit, 19543 bcm_field_entry_t entry, 19544 uint32 data, 19545 uint32 mask) 19546 { 19547 return BCM_E_UNAVAIL; 19548 } 19549 19550 int 19551 bcm_tomahawk3_field_qualify_IpMulticastCompatible_get( 19552 int unit, 19553 bcm_field_entry_t entry, 19554 uint32 *data, 19555 uint32 *mask) 19556 { 19557 return BCM_E_UNAVAIL; 19558 } 19559 19560 #ifdef BCM_TOMAHAWK3_SUPPORT 19561 int 19562 bcm_tomahawk3_field_qualify_IpProtocol( 19563 int unit, 19564 bcm_field_entry_t entry, 19565 uint8 data, 19566 uint8 mask) 19567 { 19568 return bcm_esw_field_qualify_IpProtocol(unit, entry, data, mask); 19569 } 19570 #endif 19571 19572 #ifdef BCM_TOMAHAWK3_SUPPORT 19573 int 19574 bcm_tomahawk3_field_qualify_IpProtocolClass( 19575 int unit, 19576 bcm_field_entry_t entry, 19577 bcm_class_t data, 19578 bcm_class_t mask) 19579 { 19580 return bcm_esw_field_qualify_IpProtocolClass(unit, entry, data, mask); 19581 } 19582 #endif 19583 19584 #ifdef BCM_TOMAHAWK3_SUPPORT 19585 int 19586 bcm_tomahawk3_field_qualify_IpProtocolClass_get( 19587 int unit, 19588 bcm_field_entry_t entry, 19589 bcm_class_t *data, 19590 bcm_class_t *mask) 19591 { 19592 return bcm_esw_field_qualify_IpProtocolClass_get(unit, entry, data, mask); 19593 } 19594 #endif 19595 19596 #ifdef BCM_TOMAHAWK3_SUPPORT 19597 int 19598 bcm_tomahawk3_field_qualify_IpProtocolCommon( 19599 int unit, 19600 bcm_field_entry_t entry, 19601 bcm_field_IpProtocolCommon_t protocol) 19602 { 19603 return bcm_esw_field_qualify_IpProtocolCommon(unit, entry, protocol); 19604 } 19605 #endif 19606 19607 #ifdef BCM_TOMAHAWK3_SUPPORT 19608 int 19609 bcm_tomahawk3_field_qualify_IpProtocolCommon_get( 19610 int unit, 19611 bcm_field_entry_t entry, 19612 bcm_field_IpProtocolCommon_t *protocol) 19613 { 19614 return bcm_esw_field_qualify_IpProtocolCommon_get(unit, entry, protocol); 19615 } 19616 #endif 19617 19618 #ifdef BCM_TOMAHAWK3_SUPPORT 19619 int 19620 bcm_tomahawk3_field_qualify_IpProtocol_get( 19621 int unit, 19622 bcm_field_entry_t entry, 19623 uint8 *data, 19624 uint8 *mask) 19625 { 19626 return bcm_esw_field_qualify_IpProtocol_get(unit, entry, data, mask); 19627 } 19628 #endif 19629 19630 #ifdef BCM_TOMAHAWK3_SUPPORT 19631 int 19632 bcm_tomahawk3_field_qualify_IpTtlZeroPkt( 19633 int unit, 19634 bcm_field_entry_t entry, 19635 uint8 data, 19636 uint8 mask) 19637 { 19638 return bcm_esw_field_qualify_IpTtlZeroPkt(unit, entry, data, mask); 19639 } 19640 #endif 19641 19642 #ifdef BCM_TOMAHAWK3_SUPPORT 19643 int 19644 bcm_tomahawk3_field_qualify_IpTtlZeroPkt_get( 19645 int unit, 19646 bcm_field_entry_t entry, 19647 uint8 *data, 19648 uint8 *mask) 19649 { 19650 return bcm_esw_field_qualify_IpTtlZeroPkt_get(unit, entry, data, mask); 19651 } 19652 #endif 19653 19654 #ifdef BCM_TOMAHAWK3_SUPPORT 19655 int 19656 bcm_tomahawk3_field_qualify_IpTunnelHit( 19657 int unit, 19658 bcm_field_entry_t entry, 19659 uint8 data, 19660 uint8 mask) 19661 { 19662 return bcm_esw_field_qualify_IpTunnelHit(unit, entry, data, mask); 19663 } 19664 #endif 19665 19666 #ifdef BCM_TOMAHAWK3_SUPPORT 19667 int 19668 bcm_tomahawk3_field_qualify_IpTunnelHit_get( 19669 int unit, 19670 bcm_field_entry_t entry, 19671 uint8 *data, 19672 uint8 *mask) 19673 { 19674 return bcm_esw_field_qualify_IpTunnelHit_get(unit, entry, data, mask); 19675 } 19676 #endif 19677 19678 #ifdef BCM_TOMAHAWK3_SUPPORT 19679 int 19680 bcm_tomahawk3_field_qualify_IpTunnelTtl( 19681 int unit, 19682 bcm_field_entry_t entry, 19683 uint8 data, 19684 uint8 mask) 19685 { 19686 return bcm_esw_field_qualify_IpTunnelTtl(unit, entry, data, mask); 19687 } 19688 #endif 19689 19690 #ifdef BCM_TOMAHAWK3_SUPPORT 19691 int 19692 bcm_tomahawk3_field_qualify_IpTunnelTtlClassZero( 19693 int unit, 19694 bcm_field_entry_t entry, 19695 bcm_class_t data, 19696 bcm_class_t mask) 19697 { 19698 return bcm_esw_field_qualify_IpTunnelTtlClassZero(unit, entry, data, mask); 19699 } 19700 #endif 19701 19702 #ifdef BCM_TOMAHAWK3_SUPPORT 19703 int 19704 bcm_tomahawk3_field_qualify_IpTunnelTtlClassZero_get( 19705 int unit, 19706 bcm_field_entry_t entry, 19707 bcm_class_t *data, 19708 bcm_class_t *mask) 19709 { 19710 return bcm_esw_field_qualify_IpTunnelTtlClassZero_get(unit, entry, data, mask); 19711 } 19712 #endif 19713 19714 #ifdef BCM_TOMAHAWK3_SUPPORT 19715 int 19716 bcm_tomahawk3_field_qualify_IpTunnelTtl_get( 19717 int unit, 19718 bcm_field_entry_t entry, 19719 uint8 *data, 19720 uint8 *mask) 19721 { 19722 return bcm_esw_field_qualify_IpTunnelTtl_get(unit, entry, data, mask); 19723 } 19724 #endif 19725 19726 #ifdef BCM_TOMAHAWK3_SUPPORT 19727 int 19728 bcm_tomahawk3_field_qualify_IpTunnelValue( 19729 int unit, 19730 bcm_field_entry_t entry, 19731 uint64 data, 19732 uint64 mask) 19733 { 19734 return bcm_esw_field_qualify_IpTunnelValue(unit, entry, data, mask); 19735 } 19736 #endif 19737 19738 #ifdef BCM_TOMAHAWK3_SUPPORT 19739 int 19740 bcm_tomahawk3_field_qualify_IpTunnelValue_get( 19741 int unit, 19742 bcm_field_entry_t entry, 19743 uint64 *data, 19744 uint64 *mask) 19745 { 19746 return bcm_esw_field_qualify_IpTunnelValue_get(unit, entry, data, mask); 19747 } 19748 #endif 19749 19750 #ifdef BCM_TOMAHAWK3_SUPPORT 19751 int 19752 bcm_tomahawk3_field_qualify_IpType( 19753 int unit, 19754 bcm_field_entry_t entry, 19755 bcm_field_IpType_t type) 19756 { 19757 return bcm_esw_field_qualify_IpType(unit, entry, type); 19758 } 19759 #endif 19760 19761 #ifdef BCM_TOMAHAWK3_SUPPORT 19762 int 19763 bcm_tomahawk3_field_qualify_IpType_get( 19764 int unit, 19765 bcm_field_entry_t entry, 19766 bcm_field_IpType_t *type) 19767 { 19768 return bcm_esw_field_qualify_IpType_get(unit, entry, type); 19769 } 19770 #endif 19771 19772 #ifdef BCM_TOMAHAWK3_SUPPORT 19773 int 19774 bcm_tomahawk3_field_qualify_IpmcHit( 19775 int unit, 19776 bcm_field_entry_t entry, 19777 uint8 data, 19778 uint8 mask) 19779 { 19780 return bcm_esw_field_qualify_IpmcHit(unit, entry, data, mask); 19781 } 19782 #endif 19783 19784 #ifdef BCM_TOMAHAWK3_SUPPORT 19785 int 19786 bcm_tomahawk3_field_qualify_IpmcHit_get( 19787 int unit, 19788 bcm_field_entry_t entry, 19789 uint8 *data, 19790 uint8 *mask) 19791 { 19792 return bcm_esw_field_qualify_IpmcHit_get(unit, entry, data, mask); 19793 } 19794 #endif 19795 19796 #ifdef BCM_TOMAHAWK3_SUPPORT 19797 int 19798 bcm_tomahawk3_field_qualify_IpmcStarGroupHit( 19799 int unit, 19800 bcm_field_entry_t entry, 19801 uint8 data, 19802 uint8 mask) 19803 { 19804 return bcm_esw_field_qualify_IpmcStarGroupHit(unit, entry, data, mask); 19805 } 19806 #endif 19807 19808 #ifdef BCM_TOMAHAWK3_SUPPORT 19809 int 19810 bcm_tomahawk3_field_qualify_IpmcStarGroupHit_get( 19811 int unit, 19812 bcm_field_entry_t entry, 19813 uint8 *data, 19814 uint8 *mask) 19815 { 19816 return bcm_esw_field_qualify_IpmcStarGroupHit_get(unit, entry, data, mask); 19817 } 19818 #endif 19819 19820 int 19821 bcm_tomahawk3_field_qualify_IpmcStarGroupValue( 19822 int unit, 19823 bcm_field_entry_t entry, 19824 uint64 data, 19825 uint64 mask) 19826 { 19827 return BCM_E_UNAVAIL; 19828 } 19829 19830 int 19831 bcm_tomahawk3_field_qualify_IpmcStarGroupValue_get( 19832 int unit, 19833 bcm_field_entry_t entry, 19834 uint64 *data, 19835 uint64 *mask) 19836 { 19837 return BCM_E_UNAVAIL; 19838 } 19839 19840 #ifdef BCM_TOMAHAWK3_SUPPORT 19841 int 19842 bcm_tomahawk3_field_qualify_IpmcV4Pkt( 19843 int unit, 19844 bcm_field_entry_t entry, 19845 uint8 data, 19846 uint8 mask) 19847 { 19848 return bcm_esw_field_qualify_IpmcV4Pkt(unit, entry, data, mask); 19849 } 19850 #endif 19851 19852 #ifdef BCM_TOMAHAWK3_SUPPORT 19853 int 19854 bcm_tomahawk3_field_qualify_IpmcV4Pkt_get( 19855 int unit, 19856 bcm_field_entry_t entry, 19857 uint8 *data, 19858 uint8 *mask) 19859 { 19860 return bcm_esw_field_qualify_IpmcV4Pkt_get(unit, entry, data, mask); 19861 } 19862 #endif 19863 19864 #ifdef BCM_TOMAHAWK3_SUPPORT 19865 int 19866 bcm_tomahawk3_field_qualify_IpmcV6Pkt( 19867 int unit, 19868 bcm_field_entry_t entry, 19869 uint8 data, 19870 uint8 mask) 19871 { 19872 return bcm_esw_field_qualify_IpmcV6Pkt(unit, entry, data, mask); 19873 } 19874 #endif 19875 19876 #ifdef BCM_TOMAHAWK3_SUPPORT 19877 int 19878 bcm_tomahawk3_field_qualify_IpmcV6Pkt_get( 19879 int unit, 19880 bcm_field_entry_t entry, 19881 uint8 *data, 19882 uint8 *mask) 19883 { 19884 return bcm_esw_field_qualify_IpmcV6Pkt_get(unit, entry, data, mask); 19885 } 19886 #endif 19887 19888 #ifdef BCM_TOMAHAWK3_SUPPORT 19889 int 19890 bcm_tomahawk3_field_qualify_IpmcValue( 19891 int unit, 19892 bcm_field_entry_t entry, 19893 uint64 data, 19894 uint64 mask) 19895 { 19896 return bcm_esw_field_qualify_IpmcValue(unit, entry, data, mask); 19897 } 19898 #endif 19899 19900 #ifdef BCM_TOMAHAWK3_SUPPORT 19901 int 19902 bcm_tomahawk3_field_qualify_IpmcValue_get( 19903 int unit, 19904 bcm_field_entry_t entry, 19905 uint64 *data, 19906 uint64 *mask) 19907 { 19908 return bcm_esw_field_qualify_IpmcValue_get(unit, entry, data, mask); 19909 } 19910 #endif 19911 19912 #ifdef BCM_TOMAHAWK3_SUPPORT 19913 int 19914 bcm_tomahawk3_field_qualify_Ipv4OptionHdrType( 19915 int unit, 19916 bcm_field_entry_t entry, 19917 bcm_field_ip_option_hdr_type_t type) 19918 { 19919 return bcm_esw_field_qualify_Ipv4OptionHdrType(unit, entry, type); 19920 } 19921 #endif 19922 19923 #ifdef BCM_TOMAHAWK3_SUPPORT 19924 int 19925 bcm_tomahawk3_field_qualify_Ipv4OptionHdrType_get( 19926 int unit, 19927 bcm_field_entry_t entry, 19928 bcm_field_ip_option_hdr_type_t *type) 19929 { 19930 return bcm_esw_field_qualify_Ipv4OptionHdrType_get(unit, entry, type); 19931 } 19932 #endif 19933 19934 #ifdef BCM_TOMAHAWK3_SUPPORT 19935 int 19936 bcm_tomahawk3_field_qualify_Ipv6ExtensionHdrType( 19937 int unit, 19938 bcm_field_entry_t entry, 19939 bcm_field_ip_option_hdr_type_t type) 19940 { 19941 return bcm_esw_field_qualify_Ipv6ExtensionHdrType(unit, entry, type); 19942 } 19943 #endif 19944 19945 #ifdef BCM_TOMAHAWK3_SUPPORT 19946 int 19947 bcm_tomahawk3_field_qualify_Ipv6ExtensionHdrType_get( 19948 int unit, 19949 bcm_field_entry_t entry, 19950 bcm_field_ip_option_hdr_type_t *type) 19951 { 19952 return bcm_esw_field_qualify_Ipv6ExtensionHdrType_get(unit, entry, type); 19953 } 19954 #endif 19955 19956 int 19957 bcm_tomahawk3_field_qualify_IsEqualValue( 19958 int unit, 19959 bcm_field_entry_t entry, 19960 uint8 data, 19961 uint8 mask) 19962 { 19963 return BCM_E_UNAVAIL; 19964 } 19965 19966 int 19967 bcm_tomahawk3_field_qualify_IsEqualValue_get( 19968 int unit, 19969 bcm_field_entry_t entry, 19970 uint8 *data, 19971 uint8 *mask) 19972 { 19973 return BCM_E_UNAVAIL; 19974 } 19975 19976 #ifdef BCM_TOMAHAWK3_SUPPORT 19977 int 19978 bcm_tomahawk3_field_qualify_KeyGenVar( 19979 int unit, 19980 bcm_field_entry_t entry, 19981 uint32 data, 19982 uint32 mask) 19983 { 19984 return bcm_esw_field_qualify_KeyGenVar(unit, entry, data, mask); 19985 } 19986 #endif 19987 19988 #ifdef BCM_TOMAHAWK3_SUPPORT 19989 int 19990 bcm_tomahawk3_field_qualify_L2CacheHit( 19991 int unit, 19992 bcm_field_entry_t entry, 19993 uint8 data, 19994 uint8 mask) 19995 { 19996 return bcm_esw_field_qualify_L2CacheHit(unit, entry, data, mask); 19997 } 19998 #endif 19999 20000 #ifdef BCM_TOMAHAWK3_SUPPORT 20001 int 20002 bcm_tomahawk3_field_qualify_L2CacheHit_get( 20003 int unit, 20004 bcm_field_entry_t entry, 20005 uint8 *data, 20006 uint8 *mask) 20007 { 20008 return bcm_esw_field_qualify_L2CacheHit_get(unit, entry, data, mask); 20009 } 20010 #endif 20011 20012 #ifdef BCM_TOMAHAWK3_SUPPORT 20013 int 20014 bcm_tomahawk3_field_qualify_L2DestHit( 20015 int unit, 20016 bcm_field_entry_t entry, 20017 uint8 data, 20018 uint8 mask) 20019 { 20020 return bcm_esw_field_qualify_L2DestHit(unit, entry, data, mask); 20021 } 20022 #endif 20023 20024 #ifdef BCM_TOMAHAWK3_SUPPORT 20025 int 20026 bcm_tomahawk3_field_qualify_L2DestHit_get( 20027 int unit, 20028 bcm_field_entry_t entry, 20029 uint8 *data, 20030 uint8 *mask) 20031 { 20032 return bcm_esw_field_qualify_L2DestHit_get(unit, entry, data, mask); 20033 } 20034 #endif 20035 20036 #ifdef BCM_TOMAHAWK3_SUPPORT 20037 int 20038 bcm_tomahawk3_field_qualify_L2DestSRNodeType( 20039 int unit, 20040 bcm_field_entry_t entry, 20041 bcm_field_sr_node_type_t type) 20042 { 20043 return bcm_esw_field_qualify_L2DestSRNodeType(unit, entry, type); 20044 } 20045 #endif 20046 20047 #ifdef BCM_TOMAHAWK3_SUPPORT 20048 int 20049 bcm_tomahawk3_field_qualify_L2DestSRNodeType_get( 20050 int unit, 20051 bcm_field_entry_t entry, 20052 bcm_field_sr_node_type_t *type) 20053 { 20054 return bcm_esw_field_qualify_L2DestSRNodeType_get(unit, entry, type); 20055 } 20056 #endif 20057 20058 #ifdef BCM_TOMAHAWK3_SUPPORT 20059 int 20060 bcm_tomahawk3_field_qualify_L2DestValue( 20061 int unit, 20062 bcm_field_entry_t entry, 20063 uint64 data, 20064 uint64 mask) 20065 { 20066 return bcm_esw_field_qualify_L2DestValue(unit, entry, data, mask); 20067 } 20068 #endif 20069 20070 #ifdef BCM_TOMAHAWK3_SUPPORT 20071 int 20072 bcm_tomahawk3_field_qualify_L2DestValue_get( 20073 int unit, 20074 bcm_field_entry_t entry, 20075 uint64 *data, 20076 uint64 *mask) 20077 { 20078 return bcm_esw_field_qualify_L2DestValue_get(unit, entry, data, mask); 20079 } 20080 #endif 20081 20082 #ifdef BCM_TOMAHAWK3_SUPPORT 20083 int 20084 bcm_tomahawk3_field_qualify_L2DstMulticastHit( 20085 int unit, 20086 bcm_field_entry_t entry, 20087 uint8 data, 20088 uint8 mask) 20089 { 20090 return bcm_esw_field_qualify_L2DstMulticastHit(unit, entry, data, mask); 20091 } 20092 #endif 20093 20094 #ifdef BCM_TOMAHAWK3_SUPPORT 20095 int 20096 bcm_tomahawk3_field_qualify_L2DstMulticastHit_get( 20097 int unit, 20098 bcm_field_entry_t entry, 20099 uint8 *data, 20100 uint8 *mask) 20101 { 20102 return bcm_esw_field_qualify_L2DstMulticastHit_get(unit, entry, data, mask); 20103 } 20104 #endif 20105 20106 #ifdef BCM_TOMAHAWK3_SUPPORT 20107 int 20108 bcm_tomahawk3_field_qualify_L2Format( 20109 int unit, 20110 bcm_field_entry_t entry, 20111 bcm_field_L2Format_t type) 20112 { 20113 return bcm_esw_field_qualify_L2Format(unit, entry, type); 20114 } 20115 #endif 20116 20117 #ifdef BCM_TOMAHAWK3_SUPPORT 20118 int 20119 bcm_tomahawk3_field_qualify_L2Format_get( 20120 int unit, 20121 bcm_field_entry_t entry, 20122 bcm_field_L2Format_t *type) 20123 { 20124 return bcm_esw_field_qualify_L2Format_get(unit, entry, type); 20125 } 20126 #endif 20127 20128 int 20129 bcm_tomahawk3_field_qualify_L2GreFlowId( 20130 int unit, 20131 bcm_field_entry_t entry, 20132 uint8 data, 20133 uint8 mask) 20134 { 20135 return BCM_E_UNAVAIL; 20136 } 20137 20138 int 20139 bcm_tomahawk3_field_qualify_L2GreFlowId_get( 20140 int unit, 20141 bcm_field_entry_t entry, 20142 uint8 *data, 20143 uint8 *mask) 20144 { 20145 return BCM_E_UNAVAIL; 20146 } 20147 20148 int 20149 bcm_tomahawk3_field_qualify_L2GreProtocolType( 20150 int unit, 20151 bcm_field_entry_t entry, 20152 uint16 data, 20153 uint16 mask) 20154 { 20155 return BCM_E_UNAVAIL; 20156 } 20157 20158 int 20159 bcm_tomahawk3_field_qualify_L2GreProtocolType_get( 20160 int unit, 20161 bcm_field_entry_t entry, 20162 uint16 *data, 20163 uint16 *mask) 20164 { 20165 return BCM_E_UNAVAIL; 20166 } 20167 20168 #ifdef BCM_TOMAHAWK3_SUPPORT 20169 int 20170 bcm_tomahawk3_field_qualify_L2GreSrcIpHit( 20171 int unit, 20172 bcm_field_entry_t entry, 20173 uint8 data, 20174 uint8 mask) 20175 { 20176 return bcm_esw_field_qualify_L2GreSrcIpHit(unit, entry, data, mask); 20177 } 20178 #endif 20179 20180 #ifdef BCM_TOMAHAWK3_SUPPORT 20181 int 20182 bcm_tomahawk3_field_qualify_L2GreSrcIpHit_get( 20183 int unit, 20184 bcm_field_entry_t entry, 20185 uint8 *data, 20186 uint8 *mask) 20187 { 20188 return bcm_esw_field_qualify_L2GreSrcIpHit_get(unit, entry, data, mask); 20189 } 20190 #endif 20191 20192 #ifdef BCM_TOMAHAWK3_SUPPORT 20193 int 20194 bcm_tomahawk3_field_qualify_L2GreVfiHit( 20195 int unit, 20196 bcm_field_entry_t entry, 20197 uint8 data, 20198 uint8 mask) 20199 { 20200 return bcm_esw_field_qualify_L2GreVfiHit(unit, entry, data, mask); 20201 } 20202 #endif 20203 20204 #ifdef BCM_TOMAHAWK3_SUPPORT 20205 int 20206 bcm_tomahawk3_field_qualify_L2GreVfiHit_get( 20207 int unit, 20208 bcm_field_entry_t entry, 20209 uint8 *data, 20210 uint8 *mask) 20211 { 20212 return bcm_esw_field_qualify_L2GreVfiHit_get(unit, entry, data, mask); 20213 } 20214 #endif 20215 20216 #ifdef BCM_TOMAHAWK3_SUPPORT 20217 int 20218 bcm_tomahawk3_field_qualify_L2GreVsid( 20219 int unit, 20220 bcm_field_entry_t entry, 20221 uint32 data, 20222 uint32 mask) 20223 { 20224 return bcm_esw_field_qualify_L2GreVsid(unit, entry, data, mask); 20225 } 20226 #endif 20227 20228 #ifdef BCM_TOMAHAWK3_SUPPORT 20229 int 20230 bcm_tomahawk3_field_qualify_L2GreVsid_get( 20231 int unit, 20232 bcm_field_entry_t entry, 20233 uint32 *data, 20234 uint32 *mask) 20235 { 20236 return bcm_esw_field_qualify_L2GreVsid_get(unit, entry, data, mask); 20237 } 20238 #endif 20239 20240 #ifdef BCM_TOMAHAWK3_SUPPORT 20241 int 20242 bcm_tomahawk3_field_qualify_L2Learn( 20243 int unit, 20244 bcm_field_entry_t entry, 20245 uint8 data, 20246 uint8 mask) 20247 { 20248 return bcm_esw_field_qualify_L2Learn(unit, entry, data, mask); 20249 } 20250 #endif 20251 20252 #ifdef BCM_TOMAHAWK3_SUPPORT 20253 int 20254 bcm_tomahawk3_field_qualify_L2Learn_get( 20255 int unit, 20256 bcm_field_entry_t entry, 20257 uint8 *data, 20258 uint8 *mask) 20259 { 20260 return bcm_esw_field_qualify_L2Learn_get(unit, entry, data, mask); 20261 } 20262 #endif 20263 20264 #ifdef BCM_TOMAHAWK3_SUPPORT 20265 int 20266 bcm_tomahawk3_field_qualify_L2PayLoad( 20267 int unit, 20268 bcm_field_entry_t entry, 20269 uint32 length, 20270 const uint8 *data, 20271 const uint8 *mask) 20272 { 20273 return bcm_esw_field_qualify_L2PayLoad(unit, entry, length, data, mask); 20274 } 20275 #endif 20276 20277 #ifdef BCM_TOMAHAWK3_SUPPORT 20278 int 20279 bcm_tomahawk3_field_qualify_L2PayLoad_get( 20280 int unit, 20281 bcm_field_entry_t entry, 20282 uint32 length, 20283 uint8 *data, 20284 uint8 *mask) 20285 { 20286 return bcm_esw_field_qualify_L2PayLoad_get(unit, entry, length, data, mask); 20287 } 20288 #endif 20289 20290 #ifdef BCM_TOMAHAWK3_SUPPORT 20291 int 20292 bcm_tomahawk3_field_qualify_L2PayloadFirstEightBytes( 20293 int unit, 20294 bcm_field_entry_t entry, 20295 uint32 data1, 20296 uint32 data2, 20297 uint32 mask1, 20298 uint32 mask2) 20299 { 20300 return bcm_esw_field_qualify_L2PayloadFirstEightBytes(unit, entry, data1, data2, mask1, mask2); 20301 } 20302 #endif 20303 20304 #ifdef BCM_TOMAHAWK3_SUPPORT 20305 int 20306 bcm_tomahawk3_field_qualify_L2PayloadFirstEightBytes_get( 20307 int unit, 20308 bcm_field_entry_t entry, 20309 uint32 *data1, 20310 uint32 *data2, 20311 uint32 *mask1, 20312 uint32 *mask2) 20313 { 20314 return bcm_esw_field_qualify_L2PayloadFirstEightBytes_get(unit, entry, data1, data2, mask1, mask2); 20315 } 20316 #endif 20317 20318 #ifdef BCM_TOMAHAWK3_SUPPORT 20319 int 20320 bcm_tomahawk3_field_qualify_L2PktType( 20321 int unit, 20322 bcm_field_entry_t entry, 20323 bcm_field_l2_pkt_type_t type) 20324 { 20325 return bcm_esw_field_qualify_L2PktType(unit, entry, type); 20326 } 20327 #endif 20328 20329 #ifdef BCM_TOMAHAWK3_SUPPORT 20330 int 20331 bcm_tomahawk3_field_qualify_L2PktType_get( 20332 int unit, 20333 bcm_field_entry_t entry, 20334 bcm_field_l2_pkt_type_t *type) 20335 { 20336 return bcm_esw_field_qualify_L2PktType_get(unit, entry, type); 20337 } 20338 #endif 20339 20340 #ifdef BCM_TOMAHAWK3_SUPPORT 20341 int 20342 bcm_tomahawk3_field_qualify_L2SrcHit( 20343 int unit, 20344 bcm_field_entry_t entry, 20345 uint8 data, 20346 uint8 mask) 20347 { 20348 return bcm_esw_field_qualify_L2SrcHit(unit, entry, data, mask); 20349 } 20350 #endif 20351 20352 #ifdef BCM_TOMAHAWK3_SUPPORT 20353 int 20354 bcm_tomahawk3_field_qualify_L2SrcHit_get( 20355 int unit, 20356 bcm_field_entry_t entry, 20357 uint8 *data, 20358 uint8 *mask) 20359 { 20360 return bcm_esw_field_qualify_L2SrcHit_get(unit, entry, data, mask); 20361 } 20362 #endif 20363 20364 #ifdef BCM_TOMAHAWK3_SUPPORT 20365 int 20366 bcm_tomahawk3_field_qualify_L2SrcMulticastHit( 20367 int unit, 20368 bcm_field_entry_t entry, 20369 uint8 data, 20370 uint8 mask) 20371 { 20372 return bcm_esw_field_qualify_L2SrcMulticastHit(unit, entry, data, mask); 20373 } 20374 #endif 20375 20376 #ifdef BCM_TOMAHAWK3_SUPPORT 20377 int 20378 bcm_tomahawk3_field_qualify_L2SrcMulticastHit_get( 20379 int unit, 20380 bcm_field_entry_t entry, 20381 uint8 *data, 20382 uint8 *mask) 20383 { 20384 return bcm_esw_field_qualify_L2SrcMulticastHit_get(unit, entry, data, mask); 20385 } 20386 #endif 20387 20388 #ifdef BCM_TOMAHAWK3_SUPPORT 20389 int 20390 bcm_tomahawk3_field_qualify_L2SrcStatic( 20391 int unit, 20392 bcm_field_entry_t entry, 20393 uint8 data, 20394 uint8 mask) 20395 { 20396 return bcm_esw_field_qualify_L2SrcStatic(unit, entry, data, mask); 20397 } 20398 #endif 20399 20400 #ifdef BCM_TOMAHAWK3_SUPPORT 20401 int 20402 bcm_tomahawk3_field_qualify_L2SrcStatic_get( 20403 int unit, 20404 bcm_field_entry_t entry, 20405 uint8 *data, 20406 uint8 *mask) 20407 { 20408 return bcm_esw_field_qualify_L2SrcStatic_get(unit, entry, data, mask); 20409 } 20410 #endif 20411 20412 #ifdef BCM_TOMAHAWK3_SUPPORT 20413 int 20414 bcm_tomahawk3_field_qualify_L2SrcValue( 20415 int unit, 20416 bcm_field_entry_t entry, 20417 uint64 data, 20418 uint64 mask) 20419 { 20420 return bcm_esw_field_qualify_L2SrcValue(unit, entry, data, mask); 20421 } 20422 #endif 20423 20424 #ifdef BCM_TOMAHAWK3_SUPPORT 20425 int 20426 bcm_tomahawk3_field_qualify_L2SrcValue_get( 20427 int unit, 20428 bcm_field_entry_t entry, 20429 uint64 *data, 20430 uint64 *mask) 20431 { 20432 return bcm_esw_field_qualify_L2SrcValue_get(unit, entry, data, mask); 20433 } 20434 #endif 20435 20436 #ifdef BCM_TOMAHAWK3_SUPPORT 20437 int 20438 bcm_tomahawk3_field_qualify_L2StationMove( 20439 int unit, 20440 bcm_field_entry_t entry, 20441 uint8 data, 20442 uint8 mask) 20443 { 20444 return bcm_esw_field_qualify_L2StationMove(unit, entry, data, mask); 20445 } 20446 #endif 20447 20448 #ifdef BCM_TOMAHAWK3_SUPPORT 20449 int 20450 bcm_tomahawk3_field_qualify_L2StationMove_get( 20451 int unit, 20452 bcm_field_entry_t entry, 20453 uint8 *data, 20454 uint8 *mask) 20455 { 20456 return bcm_esw_field_qualify_L2StationMove_get(unit, entry, data, mask); 20457 } 20458 #endif 20459 20460 #ifdef BCM_TOMAHAWK3_SUPPORT 20461 int 20462 bcm_tomahawk3_field_qualify_L3DestHostHit( 20463 int unit, 20464 bcm_field_entry_t entry, 20465 uint8 data, 20466 uint8 mask) 20467 { 20468 return bcm_esw_field_qualify_L3DestHostHit(unit, entry, data, mask); 20469 } 20470 #endif 20471 20472 #ifdef BCM_TOMAHAWK3_SUPPORT 20473 int 20474 bcm_tomahawk3_field_qualify_L3DestHostHit_get( 20475 int unit, 20476 bcm_field_entry_t entry, 20477 uint8 *data, 20478 uint8 *mask) 20479 { 20480 return bcm_esw_field_qualify_L3DestHostHit_get(unit, entry, data, mask); 20481 } 20482 #endif 20483 20484 #ifdef BCM_TOMAHAWK3_SUPPORT 20485 int 20486 bcm_tomahawk3_field_qualify_L3DestRouteHit( 20487 int unit, 20488 bcm_field_entry_t entry, 20489 uint8 data, 20490 uint8 mask) 20491 { 20492 return bcm_esw_field_qualify_L3DestRouteHit(unit, entry, data, mask); 20493 } 20494 #endif 20495 20496 #ifdef BCM_TOMAHAWK3_SUPPORT 20497 int 20498 bcm_tomahawk3_field_qualify_L3DestRouteHit_get( 20499 int unit, 20500 bcm_field_entry_t entry, 20501 uint8 *data, 20502 uint8 *mask) 20503 { 20504 return bcm_esw_field_qualify_L3DestRouteHit_get(unit, entry, data, mask); 20505 } 20506 #endif 20507 20508 #ifdef BCM_TOMAHAWK3_SUPPORT 20509 int 20510 bcm_tomahawk3_field_qualify_L3DestRouteValue( 20511 int unit, 20512 bcm_field_entry_t entry, 20513 uint64 data, 20514 uint64 mask) 20515 { 20516 return bcm_esw_field_qualify_L3DestRouteValue(unit, entry, data, mask); 20517 } 20518 #endif 20519 20520 #ifdef BCM_TOMAHAWK3_SUPPORT 20521 int 20522 bcm_tomahawk3_field_qualify_L3DestRouteValue_get( 20523 int unit, 20524 bcm_field_entry_t entry, 20525 uint64 *data, 20526 uint64 *mask) 20527 { 20528 return bcm_esw_field_qualify_L3DestRouteValue_get(unit, entry, data, mask); 20529 } 20530 #endif 20531 20532 #ifdef BCM_TOMAHAWK3_SUPPORT 20533 int 20534 bcm_tomahawk3_field_qualify_L3Ingress( 20535 int unit, 20536 bcm_field_entry_t entry, 20537 uint32 intf_id, 20538 uint32 mask) 20539 { 20540 return bcm_esw_field_qualify_L3Ingress(unit, entry, intf_id, mask); 20541 } 20542 #endif 20543 20544 #ifdef BCM_TOMAHAWK3_SUPPORT 20545 int 20546 bcm_tomahawk3_field_qualify_L3Ingress_get( 20547 int unit, 20548 bcm_field_entry_t entry, 20549 uint32 *data, 20550 uint32 *mask) 20551 { 20552 return bcm_esw_field_qualify_L3Ingress_get(unit, entry, data, mask); 20553 } 20554 #endif 20555 20556 #ifdef BCM_TOMAHAWK3_SUPPORT 20557 int 20558 bcm_tomahawk3_field_qualify_L3Routable( 20559 int unit, 20560 bcm_field_entry_t entry, 20561 uint8 data, 20562 uint8 mask) 20563 { 20564 return bcm_esw_field_qualify_L3Routable(unit, entry, data, mask); 20565 } 20566 #endif 20567 20568 #ifdef BCM_TOMAHAWK3_SUPPORT 20569 int 20570 bcm_tomahawk3_field_qualify_L3Routable_get( 20571 int unit, 20572 bcm_field_entry_t entry, 20573 uint8 *data, 20574 uint8 *mask) 20575 { 20576 return bcm_esw_field_qualify_L3Routable_get(unit, entry, data, mask); 20577 } 20578 #endif 20579 20580 int 20581 bcm_tomahawk3_field_qualify_L3SrcBind( 20582 int unit, 20583 bcm_field_entry_t entry, 20584 uint8 data, 20585 uint8 mask) 20586 { 20587 return BCM_E_UNAVAIL; 20588 } 20589 20590 int 20591 bcm_tomahawk3_field_qualify_L3SrcBind_get( 20592 int unit, 20593 bcm_field_entry_t entry, 20594 uint8 *data, 20595 uint8 *mask) 20596 { 20597 return BCM_E_UNAVAIL; 20598 } 20599 20600 #ifdef BCM_TOMAHAWK3_SUPPORT 20601 int 20602 bcm_tomahawk3_field_qualify_L3SrcHostHit( 20603 int unit, 20604 bcm_field_entry_t entry, 20605 uint8 data, 20606 uint8 mask) 20607 { 20608 return bcm_esw_field_qualify_L3SrcHostHit(unit, entry, data, mask); 20609 } 20610 #endif 20611 20612 #ifdef BCM_TOMAHAWK3_SUPPORT 20613 int 20614 bcm_tomahawk3_field_qualify_L3SrcHostHit_get( 20615 int unit, 20616 bcm_field_entry_t entry, 20617 uint8 *data, 20618 uint8 *mask) 20619 { 20620 return bcm_esw_field_qualify_L3SrcHostHit_get(unit, entry, data, mask); 20621 } 20622 #endif 20623 20624 #ifdef BCM_TOMAHAWK3_SUPPORT 20625 int 20626 bcm_tomahawk3_field_qualify_L3SrcRouteHit( 20627 int unit, 20628 bcm_field_entry_t entry, 20629 uint8 data, 20630 uint8 mask) 20631 { 20632 return bcm_esw_field_qualify_L3SrcRouteHit(unit, entry, data, mask); 20633 } 20634 #endif 20635 20636 #ifdef BCM_TOMAHAWK3_SUPPORT 20637 int 20638 bcm_tomahawk3_field_qualify_L3SrcRouteHit_get( 20639 int unit, 20640 bcm_field_entry_t entry, 20641 uint8 *data, 20642 uint8 *mask) 20643 { 20644 return bcm_esw_field_qualify_L3SrcRouteHit_get(unit, entry, data, mask); 20645 } 20646 #endif 20647 20648 #ifdef BCM_TOMAHAWK3_SUPPORT 20649 int 20650 bcm_tomahawk3_field_qualify_L3SrcRouteValue( 20651 int unit, 20652 bcm_field_entry_t entry, 20653 uint64 data, 20654 uint64 mask) 20655 { 20656 return bcm_esw_field_qualify_L3SrcRouteValue(unit, entry, data, mask); 20657 } 20658 #endif 20659 20660 #ifdef BCM_TOMAHAWK3_SUPPORT 20661 int 20662 bcm_tomahawk3_field_qualify_L3SrcRouteValue_get( 20663 int unit, 20664 bcm_field_entry_t entry, 20665 uint64 *data, 20666 uint64 *mask) 20667 { 20668 return bcm_esw_field_qualify_L3SrcRouteValue_get(unit, entry, data, mask); 20669 } 20670 #endif 20671 20672 #ifdef BCM_TOMAHAWK3_SUPPORT 20673 int 20674 bcm_tomahawk3_field_qualify_L4DstPort( 20675 int unit, 20676 bcm_field_entry_t entry, 20677 bcm_l4_port_t data, 20678 bcm_l4_port_t mask) 20679 { 20680 return bcm_esw_field_qualify_L4DstPort(unit, entry, data, mask); 20681 } 20682 #endif 20683 20684 #ifdef BCM_TOMAHAWK3_SUPPORT 20685 int 20686 bcm_tomahawk3_field_qualify_L4DstPortClass( 20687 int unit, 20688 bcm_field_entry_t entry, 20689 bcm_class_t data, 20690 bcm_class_t mask) 20691 { 20692 return bcm_esw_field_qualify_L4DstPortClass(unit, entry, data, mask); 20693 } 20694 #endif 20695 20696 #ifdef BCM_TOMAHAWK3_SUPPORT 20697 int 20698 bcm_tomahawk3_field_qualify_L4DstPortClass_get( 20699 int unit, 20700 bcm_field_entry_t entry, 20701 bcm_class_t *data, 20702 bcm_class_t *mask) 20703 { 20704 return bcm_esw_field_qualify_L4DstPortClass_get(unit, entry, data, mask); 20705 } 20706 #endif 20707 20708 #ifdef BCM_TOMAHAWK3_SUPPORT 20709 int 20710 bcm_tomahawk3_field_qualify_L4DstPort_get( 20711 int unit, 20712 bcm_field_entry_t entry, 20713 bcm_l4_port_t *data, 20714 bcm_l4_port_t *mask) 20715 { 20716 return bcm_esw_field_qualify_L4DstPort_get(unit, entry, data, mask); 20717 } 20718 #endif 20719 20720 #ifdef BCM_TOMAHAWK3_SUPPORT 20721 int 20722 bcm_tomahawk3_field_qualify_L4PortRangeCheck( 20723 int unit, 20724 bcm_field_entry_t entry, 20725 bcm_field_range_t range, 20726 int invert) 20727 { 20728 return bcm_esw_field_qualify_L4PortRangeCheck(unit, entry, range, invert); 20729 } 20730 #endif 20731 20732 #ifdef BCM_TOMAHAWK3_SUPPORT 20733 int 20734 bcm_tomahawk3_field_qualify_L4PortRangeCheck_get( 20735 int unit, 20736 bcm_field_entry_t entry, 20737 int max_count, 20738 bcm_field_range_t *range, 20739 int *invert, 20740 int *count) 20741 { 20742 return bcm_esw_field_qualify_L4PortRangeCheck_get(unit, entry, max_count, range, invert, count); 20743 } 20744 #endif 20745 20746 #ifdef BCM_TOMAHAWK3_SUPPORT 20747 int 20748 bcm_tomahawk3_field_qualify_L4Ports( 20749 int unit, 20750 bcm_field_entry_t entry, 20751 uint8 data, 20752 uint8 mask) 20753 { 20754 return bcm_esw_field_qualify_L4Ports(unit, entry, data, mask); 20755 } 20756 #endif 20757 20758 #ifdef BCM_TOMAHAWK3_SUPPORT 20759 int 20760 bcm_tomahawk3_field_qualify_L4Ports_get( 20761 int unit, 20762 bcm_field_entry_t entry, 20763 uint8 *data, 20764 uint8 *mask) 20765 { 20766 return bcm_esw_field_qualify_L4Ports_get(unit, entry, data, mask); 20767 } 20768 #endif 20769 20770 #ifdef BCM_TOMAHAWK3_SUPPORT 20771 int 20772 bcm_tomahawk3_field_qualify_L4SrcPort( 20773 int unit, 20774 bcm_field_entry_t entry, 20775 bcm_l4_port_t data, 20776 bcm_l4_port_t mask) 20777 { 20778 return bcm_esw_field_qualify_L4SrcPort(unit, entry, data, mask); 20779 } 20780 #endif 20781 20782 #ifdef BCM_TOMAHAWK3_SUPPORT 20783 int 20784 bcm_tomahawk3_field_qualify_L4SrcPortClass( 20785 int unit, 20786 bcm_field_entry_t entry, 20787 bcm_class_t data, 20788 bcm_class_t mask) 20789 { 20790 return bcm_esw_field_qualify_L4SrcPortClass(unit, entry, data, mask); 20791 } 20792 #endif 20793 20794 #ifdef BCM_TOMAHAWK3_SUPPORT 20795 int 20796 bcm_tomahawk3_field_qualify_L4SrcPortClass_get( 20797 int unit, 20798 bcm_field_entry_t entry, 20799 bcm_class_t *data, 20800 bcm_class_t *mask) 20801 { 20802 return bcm_esw_field_qualify_L4SrcPortClass_get(unit, entry, data, mask); 20803 } 20804 #endif 20805 20806 #ifdef BCM_TOMAHAWK3_SUPPORT 20807 int 20808 bcm_tomahawk3_field_qualify_L4SrcPort_get( 20809 int unit, 20810 bcm_field_entry_t entry, 20811 bcm_l4_port_t *data, 20812 bcm_l4_port_t *mask) 20813 { 20814 return bcm_esw_field_qualify_L4SrcPort_get(unit, entry, data, mask); 20815 } 20816 #endif 20817 20818 int 20819 bcm_tomahawk3_field_qualify_LearnExtension( 20820 int unit, 20821 bcm_field_entry_t entry, 20822 uint8 data) 20823 { 20824 return BCM_E_UNAVAIL; 20825 } 20826 20827 int 20828 bcm_tomahawk3_field_qualify_LearnExtension_get( 20829 int unit, 20830 bcm_field_entry_t entry, 20831 uint8 *data) 20832 { 20833 return BCM_E_UNAVAIL; 20834 } 20835 20836 int 20837 bcm_tomahawk3_field_qualify_LearnInVPort( 20838 int unit, 20839 bcm_field_entry_t entry, 20840 uint32 data, 20841 uint32 mask) 20842 { 20843 return BCM_E_UNAVAIL; 20844 } 20845 20846 int 20847 bcm_tomahawk3_field_qualify_LearnInVPort_get( 20848 int unit, 20849 bcm_field_entry_t entry, 20850 uint32 *data, 20851 uint32 *mask) 20852 { 20853 return BCM_E_UNAVAIL; 20854 } 20855 20856 #ifdef BCM_TOMAHAWK3_SUPPORT 20857 int 20858 bcm_tomahawk3_field_qualify_LearnSrcMac( 20859 int unit, 20860 bcm_field_entry_t entry, 20861 bcm_mac_t data, 20862 bcm_mac_t mask) 20863 { 20864 return bcm_esw_field_qualify_LearnSrcMac(unit, entry, data, mask); 20865 } 20866 #endif 20867 20868 #ifdef BCM_TOMAHAWK3_SUPPORT 20869 int 20870 bcm_tomahawk3_field_qualify_LearnSrcMac_get( 20871 int unit, 20872 bcm_field_entry_t entry, 20873 bcm_mac_t *data, 20874 bcm_mac_t *mask) 20875 { 20876 return bcm_esw_field_qualify_LearnSrcMac_get(unit, entry, data, mask); 20877 } 20878 #endif 20879 20880 #ifdef BCM_TOMAHAWK3_SUPPORT 20881 int 20882 bcm_tomahawk3_field_qualify_LearnSrcPort( 20883 int unit, 20884 bcm_field_entry_t entry, 20885 bcm_gport_t data) 20886 { 20887 return bcm_esw_field_qualify_LearnSrcPort(unit, entry, data); 20888 } 20889 #endif 20890 20891 #ifdef BCM_TOMAHAWK3_SUPPORT 20892 int 20893 bcm_tomahawk3_field_qualify_LearnSrcPort_get( 20894 int unit, 20895 bcm_field_entry_t entry, 20896 bcm_gport_t *data) 20897 { 20898 return bcm_esw_field_qualify_LearnSrcPort_get(unit, entry, data); 20899 } 20900 #endif 20901 20902 #ifdef BCM_TOMAHAWK3_SUPPORT 20903 int 20904 bcm_tomahawk3_field_qualify_LearnVlan( 20905 int unit, 20906 bcm_field_entry_t entry, 20907 bcm_vlan_t data, 20908 bcm_vlan_t mask) 20909 { 20910 return bcm_esw_field_qualify_LearnVlan(unit, entry, data, mask); 20911 } 20912 #endif 20913 20914 #ifdef BCM_TOMAHAWK3_SUPPORT 20915 int 20916 bcm_tomahawk3_field_qualify_LearnVlan_get( 20917 int unit, 20918 bcm_field_entry_t entry, 20919 bcm_vlan_t *data, 20920 bcm_vlan_t *mask) 20921 { 20922 return bcm_esw_field_qualify_LearnVlan_get(unit, entry, data, mask); 20923 } 20924 #endif 20925 20926 #ifdef BCM_TOMAHAWK3_SUPPORT 20927 int 20928 bcm_tomahawk3_field_qualify_Llc( 20929 int unit, 20930 bcm_field_entry_t entry, 20931 bcm_field_llc_header_t data, 20932 bcm_field_llc_header_t mask) 20933 { 20934 return bcm_esw_field_qualify_Llc(unit, entry, data, mask); 20935 } 20936 #endif 20937 20938 #ifdef BCM_TOMAHAWK3_SUPPORT 20939 int 20940 bcm_tomahawk3_field_qualify_Llc_get( 20941 int unit, 20942 bcm_field_entry_t entry, 20943 bcm_field_llc_header_t *data, 20944 bcm_field_llc_header_t *mask) 20945 { 20946 return bcm_esw_field_qualify_Llc_get(unit, entry, data, mask); 20947 } 20948 #endif 20949 20950 int 20951 bcm_tomahawk3_field_qualify_LlidValue( 20952 int unit, 20953 bcm_field_entry_t entry, 20954 uint16 data, 20955 uint16 mask) 20956 { 20957 return BCM_E_UNAVAIL; 20958 } 20959 20960 int 20961 bcm_tomahawk3_field_qualify_LlidValue_get( 20962 int unit, 20963 bcm_field_entry_t entry, 20964 uint16 *data, 20965 uint16 *mask) 20966 { 20967 return BCM_E_UNAVAIL; 20968 } 20969 20970 #ifdef BCM_TOMAHAWK3_SUPPORT 20971 int 20972 bcm_tomahawk3_field_qualify_LoopBackColor( 20973 int unit, 20974 bcm_field_entry_t entry, 20975 uint8 color) 20976 { 20977 return bcm_esw_field_qualify_LoopBackColor(unit, entry, color); 20978 } 20979 #endif 20980 20981 #ifdef BCM_TOMAHAWK3_SUPPORT 20982 int 20983 bcm_tomahawk3_field_qualify_LoopBackColor_get( 20984 int unit, 20985 bcm_field_entry_t entry, 20986 uint8 *color) 20987 { 20988 return bcm_esw_field_qualify_LoopBackColor_get(unit, entry, color); 20989 } 20990 #endif 20991 20992 #ifdef BCM_TOMAHAWK3_SUPPORT 20993 int 20994 bcm_tomahawk3_field_qualify_LoopBackCpuMasqueradePktProfile( 20995 int unit, 20996 bcm_field_entry_t entry, 20997 uint8 data, 20998 uint8 mask) 20999 { 21000 return bcm_esw_field_qualify_LoopBackCpuMasqueradePktProfile(unit, entry, data, mask); 21001 } 21002 #endif 21003 21004 #ifdef BCM_TOMAHAWK3_SUPPORT 21005 int 21006 bcm_tomahawk3_field_qualify_LoopBackCpuMasqueradePktProfile_get( 21007 int unit, 21008 bcm_field_entry_t entry, 21009 uint8 *data, 21010 uint8 *mask) 21011 { 21012 return bcm_esw_field_qualify_LoopBackCpuMasqueradePktProfile_get(unit, entry, data, mask); 21013 } 21014 #endif 21015 21016 #ifdef BCM_TOMAHAWK3_SUPPORT 21017 int 21018 bcm_tomahawk3_field_qualify_LoopBackPacketProcessingPort( 21019 int unit, 21020 bcm_field_entry_t entry, 21021 bcm_gport_t port_id, 21022 bcm_gport_t port_mask) 21023 { 21024 return bcm_esw_field_qualify_LoopBackPacketProcessingPort(unit, entry, port_id, port_mask); 21025 } 21026 #endif 21027 21028 #ifdef BCM_TOMAHAWK3_SUPPORT 21029 int 21030 bcm_tomahawk3_field_qualify_LoopBackPacketProcessingPort_get( 21031 int unit, 21032 bcm_field_entry_t entry, 21033 bcm_gport_t *port_id, 21034 bcm_gport_t *port_mask) 21035 { 21036 return bcm_esw_field_qualify_LoopBackPacketProcessingPort_get(unit, entry, port_id, port_mask); 21037 } 21038 #endif 21039 21040 #ifdef BCM_TOMAHAWK3_SUPPORT 21041 int 21042 bcm_tomahawk3_field_qualify_LoopBackQueue( 21043 int unit, 21044 bcm_field_entry_t entry, 21045 uint8 data, 21046 uint8 mask) 21047 { 21048 return bcm_esw_field_qualify_LoopBackQueue(unit, entry, data, mask); 21049 } 21050 #endif 21051 21052 #ifdef BCM_TOMAHAWK3_SUPPORT 21053 int 21054 bcm_tomahawk3_field_qualify_LoopBackQueue_get( 21055 int unit, 21056 bcm_field_entry_t entry, 21057 uint8 *data, 21058 uint8 *mask) 21059 { 21060 return bcm_esw_field_qualify_LoopBackQueue_get(unit, entry, data, mask); 21061 } 21062 #endif 21063 21064 #ifdef BCM_TOMAHAWK3_SUPPORT 21065 int 21066 bcm_tomahawk3_field_qualify_LoopBackSrcGport( 21067 int unit, 21068 bcm_field_entry_t entry, 21069 bcm_gport_t port_id, 21070 bcm_gport_t port_mask) 21071 { 21072 return bcm_esw_field_qualify_LoopBackSrcGport(unit, entry, port_id, port_mask); 21073 } 21074 #endif 21075 21076 #ifdef BCM_TOMAHAWK3_SUPPORT 21077 int 21078 bcm_tomahawk3_field_qualify_LoopBackSrcGport_get( 21079 int unit, 21080 bcm_field_entry_t entry, 21081 bcm_gport_t *port_id, 21082 bcm_gport_t *port_mask) 21083 { 21084 return bcm_esw_field_qualify_LoopBackSrcGport_get(unit, entry, port_id, port_mask); 21085 } 21086 #endif 21087 21088 #ifdef BCM_TOMAHAWK3_SUPPORT 21089 int 21090 bcm_tomahawk3_field_qualify_LoopBackTrafficClass( 21091 int unit, 21092 bcm_field_entry_t entry, 21093 uint8 data, 21094 uint8 mask) 21095 { 21096 return bcm_esw_field_qualify_LoopBackTrafficClass(unit, entry, data, mask); 21097 } 21098 #endif 21099 21100 #ifdef BCM_TOMAHAWK3_SUPPORT 21101 int 21102 bcm_tomahawk3_field_qualify_LoopBackTrafficClass_get( 21103 int unit, 21104 bcm_field_entry_t entry, 21105 uint8 *data, 21106 uint8 *mask) 21107 { 21108 return bcm_esw_field_qualify_LoopBackTrafficClass_get(unit, entry, data, mask); 21109 } 21110 #endif 21111 21112 #ifdef BCM_TOMAHAWK3_SUPPORT 21113 int 21114 bcm_tomahawk3_field_qualify_Loopback( 21115 int unit, 21116 bcm_field_entry_t entry, 21117 uint8 data, 21118 uint8 mask) 21119 { 21120 return bcm_esw_field_qualify_Loopback(unit, entry, data, mask); 21121 } 21122 #endif 21123 21124 #ifdef BCM_TOMAHAWK3_SUPPORT 21125 int 21126 bcm_tomahawk3_field_qualify_LoopbackSubtype( 21127 int unit, 21128 bcm_field_entry_t entry, 21129 bcm_field_loopback_subtype_t lb_subtype) 21130 { 21131 return bcm_esw_field_qualify_LoopbackSubtype(unit, entry, lb_subtype); 21132 } 21133 #endif 21134 21135 #ifdef BCM_TOMAHAWK3_SUPPORT 21136 int 21137 bcm_tomahawk3_field_qualify_LoopbackSubtype_get( 21138 int unit, 21139 bcm_field_entry_t entry, 21140 bcm_field_loopback_subtype_t *lb_subtype) 21141 { 21142 return bcm_esw_field_qualify_LoopbackSubtype_get(unit, entry, lb_subtype); 21143 } 21144 #endif 21145 21146 #ifdef BCM_TOMAHAWK3_SUPPORT 21147 int 21148 bcm_tomahawk3_field_qualify_LoopbackType( 21149 int unit, 21150 bcm_field_entry_t entry, 21151 bcm_field_LoopbackType_t loopback_type) 21152 { 21153 return bcm_esw_field_qualify_LoopbackType(unit, entry, loopback_type); 21154 } 21155 #endif 21156 21157 #ifdef BCM_TOMAHAWK3_SUPPORT 21158 int 21159 bcm_tomahawk3_field_qualify_LoopbackType_get( 21160 int unit, 21161 bcm_field_entry_t entry, 21162 bcm_field_LoopbackType_t *loopback_type) 21163 { 21164 return bcm_esw_field_qualify_LoopbackType_get(unit, entry, loopback_type); 21165 } 21166 #endif 21167 21168 #ifdef BCM_TOMAHAWK3_SUPPORT 21169 int 21170 bcm_tomahawk3_field_qualify_Loopback_get( 21171 int unit, 21172 bcm_field_entry_t entry, 21173 uint8 *data, 21174 uint8 *mask) 21175 { 21176 return bcm_esw_field_qualify_Loopback_get(unit, entry, data, mask); 21177 } 21178 #endif 21179 21180 #ifdef BCM_TOMAHAWK3_SUPPORT 21181 int 21182 bcm_tomahawk3_field_qualify_MHOpcode( 21183 int unit, 21184 bcm_field_entry_t entry, 21185 uint8 data, 21186 uint8 mask) 21187 { 21188 return bcm_esw_field_qualify_MHOpcode(unit, entry, data, mask); 21189 } 21190 #endif 21191 21192 #ifdef BCM_TOMAHAWK3_SUPPORT 21193 int 21194 bcm_tomahawk3_field_qualify_MHOpcode_get( 21195 int unit, 21196 bcm_field_entry_t entry, 21197 uint8 *data, 21198 uint8 *mask) 21199 { 21200 return bcm_esw_field_qualify_MHOpcode_get(unit, entry, data, mask); 21201 } 21202 #endif 21203 21204 #ifdef BCM_TOMAHAWK3_SUPPORT 21205 int 21206 bcm_tomahawk3_field_qualify_MacAddrsNormalized( 21207 int unit, 21208 bcm_field_entry_t entry, 21209 uint8 data, 21210 uint8 mask) 21211 { 21212 return bcm_esw_field_qualify_MacAddrsNormalized(unit, entry, data, mask); 21213 } 21214 #endif 21215 21216 #ifdef BCM_TOMAHAWK3_SUPPORT 21217 int 21218 bcm_tomahawk3_field_qualify_MacAddrsNormalized_get( 21219 int unit, 21220 bcm_field_entry_t entry, 21221 uint8 *data, 21222 uint8 *mask) 21223 { 21224 return bcm_esw_field_qualify_MacAddrsNormalized_get(unit, entry, data, mask); 21225 } 21226 #endif 21227 21228 #ifdef BCM_TOMAHAWK3_SUPPORT 21229 int 21230 bcm_tomahawk3_field_qualify_MacSecDstMacRangeHit( 21231 int unit, 21232 bcm_field_entry_t entry, 21233 uint8 data, 21234 uint8 mask) 21235 { 21236 return bcm_esw_field_qualify_MacSecDstMacRangeHit(unit, entry, data, mask); 21237 } 21238 #endif 21239 21240 #ifdef BCM_TOMAHAWK3_SUPPORT 21241 int 21242 bcm_tomahawk3_field_qualify_MacSecDstMacRangeHit_get( 21243 int unit, 21244 bcm_field_entry_t entry, 21245 uint8 *data, 21246 uint8 *mask) 21247 { 21248 return bcm_esw_field_qualify_MacSecDstMacRangeHit_get(unit, entry, data, mask); 21249 } 21250 #endif 21251 21252 #ifdef BCM_TOMAHAWK3_SUPPORT 21253 int 21254 bcm_tomahawk3_field_qualify_MacSecFlow( 21255 int unit, 21256 bcm_field_entry_t entry, 21257 bcm_field_macsec_flow_t data) 21258 { 21259 return bcm_esw_field_qualify_MacSecFlow(unit, entry, data); 21260 } 21261 #endif 21262 21263 #ifdef BCM_TOMAHAWK3_SUPPORT 21264 int 21265 bcm_tomahawk3_field_qualify_MacSecFlow_get( 21266 int unit, 21267 bcm_field_entry_t entry, 21268 bcm_field_macsec_flow_t *data) 21269 { 21270 return bcm_esw_field_qualify_MacSecFlow_get(unit, entry, data); 21271 } 21272 #endif 21273 21274 #ifdef BCM_TOMAHAWK3_SUPPORT 21275 int 21276 bcm_tomahawk3_field_qualify_MacSecTag( 21277 int unit, 21278 bcm_field_entry_t entry, 21279 uint8 data, 21280 uint8 mask) 21281 { 21282 return bcm_esw_field_qualify_MacSecTag(unit, entry, data, mask); 21283 } 21284 #endif 21285 21286 #ifdef BCM_TOMAHAWK3_SUPPORT 21287 int 21288 bcm_tomahawk3_field_qualify_MacSecTagPresent( 21289 int unit, 21290 bcm_field_entry_t entry, 21291 uint8 data, 21292 uint8 mask) 21293 { 21294 return bcm_esw_field_qualify_MacSecTagPresent(unit, entry, data, mask); 21295 } 21296 #endif 21297 21298 #ifdef BCM_TOMAHAWK3_SUPPORT 21299 int 21300 bcm_tomahawk3_field_qualify_MacSecTagPresent_get( 21301 int unit, 21302 bcm_field_entry_t entry, 21303 uint8 *data, 21304 uint8 *mask) 21305 { 21306 return bcm_esw_field_qualify_MacSecTagPresent_get(unit, entry, data, mask); 21307 } 21308 #endif 21309 21310 #ifdef BCM_TOMAHAWK3_SUPPORT 21311 int 21312 bcm_tomahawk3_field_qualify_MacSecTag_get( 21313 int unit, 21314 bcm_field_entry_t entry, 21315 uint8 *data, 21316 uint8 *mask) 21317 { 21318 return bcm_esw_field_qualify_MacSecTag_get(unit, entry, data, mask); 21319 } 21320 #endif 21321 21322 #ifdef BCM_TOMAHAWK3_SUPPORT 21323 int 21324 bcm_tomahawk3_field_qualify_MimSrcGportHit( 21325 int unit, 21326 bcm_field_entry_t entry, 21327 uint8 data, 21328 uint8 mask) 21329 { 21330 return bcm_esw_field_qualify_MimSrcGportHit(unit, entry, data, mask); 21331 } 21332 #endif 21333 21334 #ifdef BCM_TOMAHAWK3_SUPPORT 21335 int 21336 bcm_tomahawk3_field_qualify_MimSrcGportHit_get( 21337 int unit, 21338 bcm_field_entry_t entry, 21339 uint8 *data, 21340 uint8 *mask) 21341 { 21342 return bcm_esw_field_qualify_MimSrcGportHit_get(unit, entry, data, mask); 21343 } 21344 #endif 21345 21346 #ifdef BCM_TOMAHAWK3_SUPPORT 21347 int 21348 bcm_tomahawk3_field_qualify_MimVfiHit( 21349 int unit, 21350 bcm_field_entry_t entry, 21351 uint8 data, 21352 uint8 mask) 21353 { 21354 return bcm_esw_field_qualify_MimVfiHit(unit, entry, data, mask); 21355 } 21356 #endif 21357 21358 #ifdef BCM_TOMAHAWK3_SUPPORT 21359 int 21360 bcm_tomahawk3_field_qualify_MimVfiHit_get( 21361 int unit, 21362 bcm_field_entry_t entry, 21363 uint8 *data, 21364 uint8 *mask) 21365 { 21366 return bcm_esw_field_qualify_MimVfiHit_get(unit, entry, data, mask); 21367 } 21368 #endif 21369 21370 int 21371 bcm_tomahawk3_field_qualify_MimVlanCfi( 21372 int unit, 21373 bcm_field_entry_t entry, 21374 uint8 data, 21375 uint8 mask) 21376 { 21377 return BCM_E_UNAVAIL; 21378 } 21379 21380 int 21381 bcm_tomahawk3_field_qualify_MimVlanCfi_get( 21382 int unit, 21383 bcm_field_entry_t entry, 21384 uint8 *data, 21385 uint8 *mask) 21386 { 21387 return BCM_E_UNAVAIL; 21388 } 21389 21390 int 21391 bcm_tomahawk3_field_qualify_MimVlanPri( 21392 int unit, 21393 bcm_field_entry_t entry, 21394 uint8 data, 21395 uint8 mask) 21396 { 21397 return BCM_E_UNAVAIL; 21398 } 21399 21400 int 21401 bcm_tomahawk3_field_qualify_MimVlanPri_get( 21402 int unit, 21403 bcm_field_entry_t entry, 21404 uint8 *data, 21405 uint8 *mask) 21406 { 21407 return BCM_E_UNAVAIL; 21408 } 21409 21410 #ifdef BCM_TOMAHAWK3_SUPPORT 21411 int 21412 bcm_tomahawk3_field_qualify_MimlDstMac( 21413 int unit, 21414 bcm_field_entry_t entry, 21415 bcm_mac_t data, 21416 bcm_mac_t mask) 21417 { 21418 return bcm_esw_field_qualify_MimlDstMac(unit, entry, data, mask); 21419 } 21420 #endif 21421 21422 #ifdef BCM_TOMAHAWK3_SUPPORT 21423 int 21424 bcm_tomahawk3_field_qualify_MimlDstMac_get( 21425 int unit, 21426 bcm_field_entry_t entry, 21427 bcm_mac_t *data, 21428 bcm_mac_t *mask) 21429 { 21430 return bcm_esw_field_qualify_MimlDstMac_get(unit, entry, data, mask); 21431 } 21432 #endif 21433 21434 #ifdef BCM_TOMAHAWK3_SUPPORT 21435 int 21436 bcm_tomahawk3_field_qualify_MimlInnerTag( 21437 int unit, 21438 bcm_field_entry_t entry, 21439 uint32 data, 21440 uint32 mask) 21441 { 21442 return bcm_esw_field_qualify_MimlInnerTag(unit, entry, data, mask); 21443 } 21444 #endif 21445 21446 #ifdef BCM_TOMAHAWK3_SUPPORT 21447 int 21448 bcm_tomahawk3_field_qualify_MimlInnerTag_get( 21449 int unit, 21450 bcm_field_entry_t entry, 21451 uint32 *data, 21452 uint32 *mask) 21453 { 21454 return bcm_esw_field_qualify_MimlInnerTag_get(unit, entry, data, mask); 21455 } 21456 #endif 21457 21458 #ifdef BCM_TOMAHAWK3_SUPPORT 21459 int 21460 bcm_tomahawk3_field_qualify_MimlPkt( 21461 int unit, 21462 bcm_field_entry_t entry, 21463 uint8 data, 21464 uint8 mask) 21465 { 21466 return bcm_esw_field_qualify_MimlPkt(unit, entry, data, mask); 21467 } 21468 #endif 21469 21470 #ifdef BCM_TOMAHAWK3_SUPPORT 21471 int 21472 bcm_tomahawk3_field_qualify_MimlPkt_get( 21473 int unit, 21474 bcm_field_entry_t entry, 21475 uint8 *data, 21476 uint8 *mask) 21477 { 21478 return bcm_esw_field_qualify_MimlPkt_get(unit, entry, data, mask); 21479 } 21480 #endif 21481 21482 #ifdef BCM_TOMAHAWK3_SUPPORT 21483 int 21484 bcm_tomahawk3_field_qualify_MimlSrcMac( 21485 int unit, 21486 bcm_field_entry_t entry, 21487 bcm_mac_t data, 21488 bcm_mac_t mask) 21489 { 21490 return bcm_esw_field_qualify_MimlSrcMac(unit, entry, data, mask); 21491 } 21492 #endif 21493 21494 #ifdef BCM_TOMAHAWK3_SUPPORT 21495 int 21496 bcm_tomahawk3_field_qualify_MimlSrcMac_get( 21497 int unit, 21498 bcm_field_entry_t entry, 21499 bcm_mac_t *data, 21500 bcm_mac_t *mask) 21501 { 21502 return bcm_esw_field_qualify_MimlSrcMac_get(unit, entry, data, mask); 21503 } 21504 #endif 21505 21506 #ifdef BCM_TOMAHAWK3_SUPPORT 21507 int 21508 bcm_tomahawk3_field_qualify_MimlVlan( 21509 int unit, 21510 bcm_field_entry_t entry, 21511 bcm_vlan_t data, 21512 bcm_vlan_t mask) 21513 { 21514 return bcm_esw_field_qualify_MimlVlan(unit, entry, data, mask); 21515 } 21516 #endif 21517 21518 #ifdef BCM_TOMAHAWK3_SUPPORT 21519 int 21520 bcm_tomahawk3_field_qualify_MimlVlanCfi( 21521 int unit, 21522 bcm_field_entry_t entry, 21523 uint8 data, 21524 uint8 mask) 21525 { 21526 return bcm_esw_field_qualify_MimlVlanCfi(unit, entry, data, mask); 21527 } 21528 #endif 21529 21530 #ifdef BCM_TOMAHAWK3_SUPPORT 21531 int 21532 bcm_tomahawk3_field_qualify_MimlVlanCfi_get( 21533 int unit, 21534 bcm_field_entry_t entry, 21535 uint8 *data, 21536 uint8 *mask) 21537 { 21538 return bcm_esw_field_qualify_MimlVlanCfi_get(unit, entry, data, mask); 21539 } 21540 #endif 21541 21542 #ifdef BCM_TOMAHAWK3_SUPPORT 21543 int 21544 bcm_tomahawk3_field_qualify_MimlVlanId( 21545 int unit, 21546 bcm_field_entry_t entry, 21547 bcm_vlan_t data, 21548 bcm_vlan_t mask) 21549 { 21550 return bcm_esw_field_qualify_MimlVlanId(unit, entry, data, mask); 21551 } 21552 #endif 21553 21554 #ifdef BCM_TOMAHAWK3_SUPPORT 21555 int 21556 bcm_tomahawk3_field_qualify_MimlVlanId_get( 21557 int unit, 21558 bcm_field_entry_t entry, 21559 bcm_vlan_t *data, 21560 bcm_vlan_t *mask) 21561 { 21562 return bcm_esw_field_qualify_MimlVlanId_get(unit, entry, data, mask); 21563 } 21564 #endif 21565 21566 #ifdef BCM_TOMAHAWK3_SUPPORT 21567 int 21568 bcm_tomahawk3_field_qualify_MimlVlanPri( 21569 int unit, 21570 bcm_field_entry_t entry, 21571 uint8 data, 21572 uint8 mask) 21573 { 21574 return bcm_esw_field_qualify_MimlVlanPri(unit, entry, data, mask); 21575 } 21576 #endif 21577 21578 #ifdef BCM_TOMAHAWK3_SUPPORT 21579 int 21580 bcm_tomahawk3_field_qualify_MimlVlanPri_get( 21581 int unit, 21582 bcm_field_entry_t entry, 21583 uint8 *data, 21584 uint8 *mask) 21585 { 21586 return bcm_esw_field_qualify_MimlVlanPri_get(unit, entry, data, mask); 21587 } 21588 #endif 21589 21590 #ifdef BCM_TOMAHAWK3_SUPPORT 21591 int 21592 bcm_tomahawk3_field_qualify_MimlVlan_get( 21593 int unit, 21594 bcm_field_entry_t entry, 21595 bcm_vlan_t *data, 21596 bcm_vlan_t *mask) 21597 { 21598 return bcm_esw_field_qualify_MimlVlan_get(unit, entry, data, mask); 21599 } 21600 #endif 21601 21602 #ifdef BCM_TOMAHAWK3_SUPPORT 21603 int 21604 bcm_tomahawk3_field_qualify_MirrorCopy( 21605 int unit, 21606 bcm_field_entry_t entry, 21607 uint8 data, 21608 uint8 mask) 21609 { 21610 return bcm_esw_field_qualify_MirrorCopy(unit, entry, data, mask); 21611 } 21612 #endif 21613 21614 #ifdef BCM_TOMAHAWK3_SUPPORT 21615 int 21616 bcm_tomahawk3_field_qualify_MirrorCopy_get( 21617 int unit, 21618 bcm_field_entry_t entry, 21619 uint8 *data, 21620 uint8 *mask) 21621 { 21622 return bcm_esw_field_qualify_MirrorCopy_get(unit, entry, data, mask); 21623 } 21624 #endif 21625 21626 int 21627 bcm_tomahawk3_field_qualify_MirrorDest( 21628 int unit, 21629 bcm_field_entry_t entry, 21630 bcm_gport_t mirror_gport) 21631 { 21632 return BCM_E_UNAVAIL; 21633 } 21634 21635 int 21636 bcm_tomahawk3_field_qualify_MirrorDest_get( 21637 int unit, 21638 bcm_field_entry_t entry, 21639 bcm_gport_t *mirror_gport) 21640 { 21641 return BCM_E_UNAVAIL; 21642 } 21643 21644 int 21645 bcm_tomahawk3_field_qualify_MirrorEgressDisabled( 21646 int unit, 21647 bcm_field_entry_t entry, 21648 uint8 data, 21649 uint8 mask) 21650 { 21651 return BCM_E_UNAVAIL; 21652 } 21653 21654 int 21655 bcm_tomahawk3_field_qualify_MirrorEgressDisabled_get( 21656 int unit, 21657 bcm_field_entry_t entry, 21658 uint8 *data, 21659 uint8 *mask) 21660 { 21661 return BCM_E_UNAVAIL; 21662 } 21663 21664 #ifdef BCM_TOMAHAWK3_SUPPORT 21665 int 21666 bcm_tomahawk3_field_qualify_MixedSrcClassId( 21667 int unit, 21668 bcm_field_entry_t entry, 21669 bcm_pbmp_t pbmp, 21670 bcm_field_src_class_t data, 21671 bcm_field_src_class_t mask) 21672 { 21673 return bcm_esw_field_qualify_MixedSrcClassId(unit, entry, pbmp, data, mask); 21674 } 21675 #endif 21676 21677 #ifdef BCM_TOMAHAWK3_SUPPORT 21678 int 21679 bcm_tomahawk3_field_qualify_MixedSrcClassId_get( 21680 int unit, 21681 bcm_field_entry_t entry, 21682 bcm_pbmp_t pbmp, 21683 bcm_field_src_class_t *data, 21684 bcm_field_src_class_t *mask) 21685 { 21686 return bcm_esw_field_qualify_MixedSrcClassId_get(unit, entry, pbmp, data, mask); 21687 } 21688 #endif 21689 21690 #ifdef BCM_TOMAHAWK3_SUPPORT 21691 int 21692 bcm_tomahawk3_field_qualify_MplsBos( 21693 int unit, 21694 bcm_field_entry_t entry, 21695 uint8 data, 21696 uint8 mask) 21697 { 21698 return bcm_esw_field_qualify_MplsBos(unit, entry, data, mask); 21699 } 21700 #endif 21701 21702 #ifdef BCM_TOMAHAWK3_SUPPORT 21703 int 21704 bcm_tomahawk3_field_qualify_MplsBos_get( 21705 int unit, 21706 bcm_field_entry_t entry, 21707 uint8 *data, 21708 uint8 *mask) 21709 { 21710 return bcm_esw_field_qualify_MplsBos_get(unit, entry, data, mask); 21711 } 21712 #endif 21713 21714 #ifdef BCM_TOMAHAWK3_SUPPORT 21715 int 21716 bcm_tomahawk3_field_qualify_MplsControlPkt( 21717 int unit, 21718 bcm_field_entry_t entry, 21719 uint8 data, 21720 uint8 mask) 21721 { 21722 return bcm_esw_field_qualify_MplsControlPkt(unit, entry, data, mask); 21723 } 21724 #endif 21725 21726 #ifdef BCM_TOMAHAWK3_SUPPORT 21727 int 21728 bcm_tomahawk3_field_qualify_MplsControlPkt_get( 21729 int unit, 21730 bcm_field_entry_t entry, 21731 uint8 *data, 21732 uint8 *mask) 21733 { 21734 return bcm_esw_field_qualify_MplsControlPkt_get(unit, entry, data, mask); 21735 } 21736 #endif 21737 21738 #ifdef BCM_TOMAHAWK3_SUPPORT 21739 int 21740 bcm_tomahawk3_field_qualify_MplsControlWord( 21741 int unit, 21742 bcm_field_entry_t entry, 21743 uint32 data, 21744 uint32 mask) 21745 { 21746 return bcm_esw_field_qualify_MplsControlWord(unit, entry, data, mask); 21747 } 21748 #endif 21749 21750 #ifdef BCM_TOMAHAWK3_SUPPORT 21751 int 21752 bcm_tomahawk3_field_qualify_MplsControlWordValid( 21753 int unit, 21754 bcm_field_entry_t entry, 21755 uint8 data, 21756 uint8 mask) 21757 { 21758 return bcm_esw_field_qualify_MplsControlWordValid(unit, entry, data, mask); 21759 } 21760 #endif 21761 21762 #ifdef BCM_TOMAHAWK3_SUPPORT 21763 int 21764 bcm_tomahawk3_field_qualify_MplsControlWordValid_get( 21765 int unit, 21766 bcm_field_entry_t entry, 21767 uint8 *data, 21768 uint8 *mask) 21769 { 21770 return bcm_esw_field_qualify_MplsControlWordValid_get(unit, entry, data, mask); 21771 } 21772 #endif 21773 21774 #ifdef BCM_TOMAHAWK3_SUPPORT 21775 int 21776 bcm_tomahawk3_field_qualify_MplsControlWord_get( 21777 int unit, 21778 bcm_field_entry_t entry, 21779 uint32 *data, 21780 uint32 *mask) 21781 { 21782 return bcm_esw_field_qualify_MplsControlWord_get(unit, entry, data, mask); 21783 } 21784 #endif 21785 21786 #ifdef BCM_TOMAHAWK3_SUPPORT 21787 int 21788 bcm_tomahawk3_field_qualify_MplsCwPresent( 21789 int unit, 21790 bcm_field_entry_t entry, 21791 uint8 data, 21792 uint8 mask) 21793 { 21794 return bcm_esw_field_qualify_MplsCwPresent(unit, entry, data, mask); 21795 } 21796 #endif 21797 21798 #ifdef BCM_TOMAHAWK3_SUPPORT 21799 int 21800 bcm_tomahawk3_field_qualify_MplsCwPresent_get( 21801 int unit, 21802 bcm_field_entry_t entry, 21803 uint8 *data, 21804 uint8 *mask) 21805 { 21806 return bcm_esw_field_qualify_MplsCwPresent_get(unit, entry, data, mask); 21807 } 21808 #endif 21809 21810 #ifdef BCM_TOMAHAWK3_SUPPORT 21811 int 21812 bcm_tomahawk3_field_qualify_MplsForwardingLabel( 21813 int unit, 21814 bcm_field_entry_t entry, 21815 uint32 data, 21816 uint32 mask) 21817 { 21818 return bcm_esw_field_qualify_MplsForwardingLabel(unit, entry, data, mask); 21819 } 21820 #endif 21821 21822 #ifdef BCM_TOMAHAWK3_SUPPORT 21823 int 21824 bcm_tomahawk3_field_qualify_MplsForwardingLabelAction( 21825 int unit, 21826 bcm_field_entry_t entry, 21827 uint8 data, 21828 uint8 mask) 21829 { 21830 return bcm_esw_field_qualify_MplsForwardingLabelAction(unit, entry, data, mask); 21831 } 21832 #endif 21833 21834 #ifdef BCM_TOMAHAWK3_SUPPORT 21835 int 21836 bcm_tomahawk3_field_qualify_MplsForwardingLabelAction32( 21837 int unit, 21838 bcm_field_entry_t entry, 21839 uint32 data, 21840 uint32 mask) 21841 { 21842 return bcm_esw_field_qualify_MplsForwardingLabelAction32(unit, entry, data, mask); 21843 } 21844 #endif 21845 21846 #ifdef BCM_TOMAHAWK3_SUPPORT 21847 int 21848 bcm_tomahawk3_field_qualify_MplsForwardingLabelAction32_get( 21849 int unit, 21850 bcm_field_entry_t entry, 21851 uint32 *data, 21852 uint32 *mask) 21853 { 21854 return bcm_esw_field_qualify_MplsForwardingLabelAction32_get(unit, entry, data, mask); 21855 } 21856 #endif 21857 21858 #ifdef BCM_TOMAHAWK3_SUPPORT 21859 int 21860 bcm_tomahawk3_field_qualify_MplsForwardingLabelAction_get( 21861 int unit, 21862 bcm_field_entry_t entry, 21863 uint8 *data, 21864 uint8 *mask) 21865 { 21866 return bcm_esw_field_qualify_MplsForwardingLabelAction_get(unit, entry, data, mask); 21867 } 21868 #endif 21869 21870 #ifdef BCM_TOMAHAWK3_SUPPORT 21871 int 21872 bcm_tomahawk3_field_qualify_MplsForwardingLabelBos( 21873 int unit, 21874 bcm_field_entry_t entry, 21875 uint8 data, 21876 uint8 mask) 21877 { 21878 return bcm_esw_field_qualify_MplsForwardingLabelBos(unit, entry, data, mask); 21879 } 21880 #endif 21881 21882 #ifdef BCM_TOMAHAWK3_SUPPORT 21883 int 21884 bcm_tomahawk3_field_qualify_MplsForwardingLabelBos_get( 21885 int unit, 21886 bcm_field_entry_t entry, 21887 uint8 *data, 21888 uint8 *mask) 21889 { 21890 return bcm_esw_field_qualify_MplsForwardingLabelBos_get(unit, entry, data, mask); 21891 } 21892 #endif 21893 21894 #ifdef BCM_TOMAHAWK3_SUPPORT 21895 int 21896 bcm_tomahawk3_field_qualify_MplsForwardingLabelExp( 21897 int unit, 21898 bcm_field_entry_t entry, 21899 uint8 data, 21900 uint8 mask) 21901 { 21902 return bcm_esw_field_qualify_MplsForwardingLabelExp(unit, entry, data, mask); 21903 } 21904 #endif 21905 21906 #ifdef BCM_TOMAHAWK3_SUPPORT 21907 int 21908 bcm_tomahawk3_field_qualify_MplsForwardingLabelExp_get( 21909 int unit, 21910 bcm_field_entry_t entry, 21911 uint8 *data, 21912 uint8 *mask) 21913 { 21914 return bcm_esw_field_qualify_MplsForwardingLabelExp_get(unit, entry, data, mask); 21915 } 21916 #endif 21917 21918 #ifdef BCM_TOMAHAWK3_SUPPORT 21919 int 21920 bcm_tomahawk3_field_qualify_MplsForwardingLabelId( 21921 int unit, 21922 bcm_field_entry_t entry, 21923 uint32 data, 21924 uint32 mask) 21925 { 21926 return bcm_esw_field_qualify_MplsForwardingLabelId(unit, entry, data, mask); 21927 } 21928 #endif 21929 21930 #ifdef BCM_TOMAHAWK3_SUPPORT 21931 int 21932 bcm_tomahawk3_field_qualify_MplsForwardingLabelId_get( 21933 int unit, 21934 bcm_field_entry_t entry, 21935 uint32 *data, 21936 uint32 *mask) 21937 { 21938 return bcm_esw_field_qualify_MplsForwardingLabelId_get(unit, entry, data, mask); 21939 } 21940 #endif 21941 21942 int 21943 bcm_tomahawk3_field_qualify_MplsForwardingLabelPayload( 21944 int unit, 21945 bcm_field_entry_t entry, 21946 uint64 data, 21947 uint64 mask) 21948 { 21949 return BCM_E_UNAVAIL; 21950 } 21951 21952 int 21953 bcm_tomahawk3_field_qualify_MplsForwardingLabelPayload_get( 21954 int unit, 21955 bcm_field_entry_t entry, 21956 uint64 *data, 21957 uint64 *mask) 21958 { 21959 return BCM_E_UNAVAIL; 21960 } 21961 21962 #ifdef BCM_TOMAHAWK3_SUPPORT 21963 int 21964 bcm_tomahawk3_field_qualify_MplsForwardingLabelTtl( 21965 int unit, 21966 bcm_field_entry_t entry, 21967 uint8 data, 21968 uint8 mask) 21969 { 21970 return bcm_esw_field_qualify_MplsForwardingLabelTtl(unit, entry, data, mask); 21971 } 21972 #endif 21973 21974 #ifdef BCM_TOMAHAWK3_SUPPORT 21975 int 21976 bcm_tomahawk3_field_qualify_MplsForwardingLabelTtl_get( 21977 int unit, 21978 bcm_field_entry_t entry, 21979 uint8 *data, 21980 uint8 *mask) 21981 { 21982 return bcm_esw_field_qualify_MplsForwardingLabelTtl_get(unit, entry, data, mask); 21983 } 21984 #endif 21985 21986 #ifdef BCM_TOMAHAWK3_SUPPORT 21987 int 21988 bcm_tomahawk3_field_qualify_MplsForwardingLabel_get( 21989 int unit, 21990 bcm_field_entry_t entry, 21991 uint32 *data, 21992 uint32 *mask) 21993 { 21994 return bcm_esw_field_qualify_MplsForwardingLabel_get(unit, entry, data, mask); 21995 } 21996 #endif 21997 21998 #ifdef BCM_TOMAHAWK3_SUPPORT 21999 int 22000 bcm_tomahawk3_field_qualify_MplsLabel1( 22001 int unit, 22002 bcm_field_entry_t entry, 22003 uint32 data, 22004 uint32 mask) 22005 { 22006 return bcm_esw_field_qualify_MplsLabel1(unit, entry, data, mask); 22007 } 22008 #endif 22009 22010 #ifdef BCM_TOMAHAWK3_SUPPORT 22011 int 22012 bcm_tomahawk3_field_qualify_MplsLabel1Bos( 22013 int unit, 22014 bcm_field_entry_t entry, 22015 uint8 data, 22016 uint8 mask) 22017 { 22018 return bcm_esw_field_qualify_MplsLabel1Bos(unit, entry, data, mask); 22019 } 22020 #endif 22021 22022 #ifdef BCM_TOMAHAWK3_SUPPORT 22023 int 22024 bcm_tomahawk3_field_qualify_MplsLabel1Bos_get( 22025 int unit, 22026 bcm_field_entry_t entry, 22027 uint8 *data, 22028 uint8 *mask) 22029 { 22030 return bcm_esw_field_qualify_MplsLabel1Bos_get(unit, entry, data, mask); 22031 } 22032 #endif 22033 22034 #ifdef BCM_TOMAHAWK3_SUPPORT 22035 int 22036 bcm_tomahawk3_field_qualify_MplsLabel1Exp( 22037 int unit, 22038 bcm_field_entry_t entry, 22039 uint8 data, 22040 uint8 mask) 22041 { 22042 return bcm_esw_field_qualify_MplsLabel1Exp(unit, entry, data, mask); 22043 } 22044 #endif 22045 22046 #ifdef BCM_TOMAHAWK3_SUPPORT 22047 int 22048 bcm_tomahawk3_field_qualify_MplsLabel1Exp_get( 22049 int unit, 22050 bcm_field_entry_t entry, 22051 uint8 *data, 22052 uint8 *mask) 22053 { 22054 return bcm_esw_field_qualify_MplsLabel1Exp_get(unit, entry, data, mask); 22055 } 22056 #endif 22057 22058 #ifdef BCM_TOMAHAWK3_SUPPORT 22059 int 22060 bcm_tomahawk3_field_qualify_MplsLabel1Hit( 22061 int unit, 22062 bcm_field_entry_t entry, 22063 uint8 data, 22064 uint8 mask) 22065 { 22066 return bcm_esw_field_qualify_MplsLabel1Hit(unit, entry, data, mask); 22067 } 22068 #endif 22069 22070 #ifdef BCM_TOMAHAWK3_SUPPORT 22071 int 22072 bcm_tomahawk3_field_qualify_MplsLabel1Hit_get( 22073 int unit, 22074 bcm_field_entry_t entry, 22075 uint8 *data, 22076 uint8 *mask) 22077 { 22078 return bcm_esw_field_qualify_MplsLabel1Hit_get(unit, entry, data, mask); 22079 } 22080 #endif 22081 22082 #ifdef BCM_TOMAHAWK3_SUPPORT 22083 int 22084 bcm_tomahawk3_field_qualify_MplsLabel1Id( 22085 int unit, 22086 bcm_field_entry_t entry, 22087 uint32 data, 22088 uint32 mask) 22089 { 22090 return bcm_esw_field_qualify_MplsLabel1Id(unit, entry, data, mask); 22091 } 22092 #endif 22093 22094 #ifdef BCM_TOMAHAWK3_SUPPORT 22095 int 22096 bcm_tomahawk3_field_qualify_MplsLabel1Id_get( 22097 int unit, 22098 bcm_field_entry_t entry, 22099 uint32 *data, 22100 uint32 *mask) 22101 { 22102 return bcm_esw_field_qualify_MplsLabel1Id_get(unit, entry, data, mask); 22103 } 22104 #endif 22105 22106 #ifdef BCM_TOMAHAWK3_SUPPORT 22107 int 22108 bcm_tomahawk3_field_qualify_MplsLabel1Ttl( 22109 int unit, 22110 bcm_field_entry_t entry, 22111 uint8 data, 22112 uint8 mask) 22113 { 22114 return bcm_esw_field_qualify_MplsLabel1Ttl(unit, entry, data, mask); 22115 } 22116 #endif 22117 22118 #ifdef BCM_TOMAHAWK3_SUPPORT 22119 int 22120 bcm_tomahawk3_field_qualify_MplsLabel1Ttl_get( 22121 int unit, 22122 bcm_field_entry_t entry, 22123 uint8 *data, 22124 uint8 *mask) 22125 { 22126 return bcm_esw_field_qualify_MplsLabel1Ttl_get(unit, entry, data, mask); 22127 } 22128 #endif 22129 22130 #ifdef BCM_TOMAHAWK3_SUPPORT 22131 int 22132 bcm_tomahawk3_field_qualify_MplsLabel1_get( 22133 int unit, 22134 bcm_field_entry_t entry, 22135 uint32 *data, 22136 uint32 *mask) 22137 { 22138 return bcm_esw_field_qualify_MplsLabel1_get(unit, entry, data, mask); 22139 } 22140 #endif 22141 22142 #ifdef BCM_TOMAHAWK3_SUPPORT 22143 int 22144 bcm_tomahawk3_field_qualify_MplsLabel2( 22145 int unit, 22146 bcm_field_entry_t entry, 22147 uint32 data, 22148 uint32 mask) 22149 { 22150 return bcm_esw_field_qualify_MplsLabel2(unit, entry, data, mask); 22151 } 22152 #endif 22153 22154 #ifdef BCM_TOMAHAWK3_SUPPORT 22155 int 22156 bcm_tomahawk3_field_qualify_MplsLabel2Bos( 22157 int unit, 22158 bcm_field_entry_t entry, 22159 uint8 data, 22160 uint8 mask) 22161 { 22162 return bcm_esw_field_qualify_MplsLabel2Bos(unit, entry, data, mask); 22163 } 22164 #endif 22165 22166 #ifdef BCM_TOMAHAWK3_SUPPORT 22167 int 22168 bcm_tomahawk3_field_qualify_MplsLabel2Bos_get( 22169 int unit, 22170 bcm_field_entry_t entry, 22171 uint8 *data, 22172 uint8 *mask) 22173 { 22174 return bcm_esw_field_qualify_MplsLabel2Bos_get(unit, entry, data, mask); 22175 } 22176 #endif 22177 22178 #ifdef BCM_TOMAHAWK3_SUPPORT 22179 int 22180 bcm_tomahawk3_field_qualify_MplsLabel2Exp( 22181 int unit, 22182 bcm_field_entry_t entry, 22183 uint8 data, 22184 uint8 mask) 22185 { 22186 return bcm_esw_field_qualify_MplsLabel2Exp(unit, entry, data, mask); 22187 } 22188 #endif 22189 22190 #ifdef BCM_TOMAHAWK3_SUPPORT 22191 int 22192 bcm_tomahawk3_field_qualify_MplsLabel2Exp_get( 22193 int unit, 22194 bcm_field_entry_t entry, 22195 uint8 *data, 22196 uint8 *mask) 22197 { 22198 return bcm_esw_field_qualify_MplsLabel2Exp_get(unit, entry, data, mask); 22199 } 22200 #endif 22201 22202 #ifdef BCM_TOMAHAWK3_SUPPORT 22203 int 22204 bcm_tomahawk3_field_qualify_MplsLabel2Hit( 22205 int unit, 22206 bcm_field_entry_t entry, 22207 uint8 data, 22208 uint8 mask) 22209 { 22210 return bcm_esw_field_qualify_MplsLabel2Hit(unit, entry, data, mask); 22211 } 22212 #endif 22213 22214 #ifdef BCM_TOMAHAWK3_SUPPORT 22215 int 22216 bcm_tomahawk3_field_qualify_MplsLabel2Hit_get( 22217 int unit, 22218 bcm_field_entry_t entry, 22219 uint8 *data, 22220 uint8 *mask) 22221 { 22222 return bcm_esw_field_qualify_MplsLabel2Hit_get(unit, entry, data, mask); 22223 } 22224 #endif 22225 22226 #ifdef BCM_TOMAHAWK3_SUPPORT 22227 int 22228 bcm_tomahawk3_field_qualify_MplsLabel2Id( 22229 int unit, 22230 bcm_field_entry_t entry, 22231 uint32 data, 22232 uint32 mask) 22233 { 22234 return bcm_esw_field_qualify_MplsLabel2Id(unit, entry, data, mask); 22235 } 22236 #endif 22237 22238 #ifdef BCM_TOMAHAWK3_SUPPORT 22239 int 22240 bcm_tomahawk3_field_qualify_MplsLabel2Id_get( 22241 int unit, 22242 bcm_field_entry_t entry, 22243 uint32 *data, 22244 uint32 *mask) 22245 { 22246 return bcm_esw_field_qualify_MplsLabel2Id_get(unit, entry, data, mask); 22247 } 22248 #endif 22249 22250 #ifdef BCM_TOMAHAWK3_SUPPORT 22251 int 22252 bcm_tomahawk3_field_qualify_MplsLabel2Ttl( 22253 int unit, 22254 bcm_field_entry_t entry, 22255 uint8 data, 22256 uint8 mask) 22257 { 22258 return bcm_esw_field_qualify_MplsLabel2Ttl(unit, entry, data, mask); 22259 } 22260 #endif 22261 22262 #ifdef BCM_TOMAHAWK3_SUPPORT 22263 int 22264 bcm_tomahawk3_field_qualify_MplsLabel2Ttl_get( 22265 int unit, 22266 bcm_field_entry_t entry, 22267 uint8 *data, 22268 uint8 *mask) 22269 { 22270 return bcm_esw_field_qualify_MplsLabel2Ttl_get(unit, entry, data, mask); 22271 } 22272 #endif 22273 22274 #ifdef BCM_TOMAHAWK3_SUPPORT 22275 int 22276 bcm_tomahawk3_field_qualify_MplsLabel2_get( 22277 int unit, 22278 bcm_field_entry_t entry, 22279 uint32 *data, 22280 uint32 *mask) 22281 { 22282 return bcm_esw_field_qualify_MplsLabel2_get(unit, entry, data, mask); 22283 } 22284 #endif 22285 22286 #ifdef BCM_TOMAHAWK3_SUPPORT 22287 int 22288 bcm_tomahawk3_field_qualify_MplsLabel3( 22289 int unit, 22290 bcm_field_entry_t entry, 22291 uint32 data, 22292 uint32 mask) 22293 { 22294 return bcm_esw_field_qualify_MplsLabel3(unit, entry, data, mask); 22295 } 22296 #endif 22297 22298 #ifdef BCM_TOMAHAWK3_SUPPORT 22299 int 22300 bcm_tomahawk3_field_qualify_MplsLabel3Bos( 22301 int unit, 22302 bcm_field_entry_t entry, 22303 uint8 data, 22304 uint8 mask) 22305 { 22306 return bcm_esw_field_qualify_MplsLabel3Bos(unit, entry, data, mask); 22307 } 22308 #endif 22309 22310 #ifdef BCM_TOMAHAWK3_SUPPORT 22311 int 22312 bcm_tomahawk3_field_qualify_MplsLabel3Bos_get( 22313 int unit, 22314 bcm_field_entry_t entry, 22315 uint8 *data, 22316 uint8 *mask) 22317 { 22318 return bcm_esw_field_qualify_MplsLabel3Bos_get(unit, entry, data, mask); 22319 } 22320 #endif 22321 22322 #ifdef BCM_TOMAHAWK3_SUPPORT 22323 int 22324 bcm_tomahawk3_field_qualify_MplsLabel3Exp( 22325 int unit, 22326 bcm_field_entry_t entry, 22327 uint8 data, 22328 uint8 mask) 22329 { 22330 return bcm_esw_field_qualify_MplsLabel3Exp(unit, entry, data, mask); 22331 } 22332 #endif 22333 22334 #ifdef BCM_TOMAHAWK3_SUPPORT 22335 int 22336 bcm_tomahawk3_field_qualify_MplsLabel3Exp_get( 22337 int unit, 22338 bcm_field_entry_t entry, 22339 uint8 *data, 22340 uint8 *mask) 22341 { 22342 return bcm_esw_field_qualify_MplsLabel3Exp_get(unit, entry, data, mask); 22343 } 22344 #endif 22345 22346 #ifdef BCM_TOMAHAWK3_SUPPORT 22347 int 22348 bcm_tomahawk3_field_qualify_MplsLabel3Id( 22349 int unit, 22350 bcm_field_entry_t entry, 22351 uint32 data, 22352 uint32 mask) 22353 { 22354 return bcm_esw_field_qualify_MplsLabel3Id(unit, entry, data, mask); 22355 } 22356 #endif 22357 22358 #ifdef BCM_TOMAHAWK3_SUPPORT 22359 int 22360 bcm_tomahawk3_field_qualify_MplsLabel3Id_get( 22361 int unit, 22362 bcm_field_entry_t entry, 22363 uint32 *data, 22364 uint32 *mask) 22365 { 22366 return bcm_esw_field_qualify_MplsLabel3Id_get(unit, entry, data, mask); 22367 } 22368 #endif 22369 22370 #ifdef BCM_TOMAHAWK3_SUPPORT 22371 int 22372 bcm_tomahawk3_field_qualify_MplsLabel3Ttl( 22373 int unit, 22374 bcm_field_entry_t entry, 22375 uint8 data, 22376 uint8 mask) 22377 { 22378 return bcm_esw_field_qualify_MplsLabel3Ttl(unit, entry, data, mask); 22379 } 22380 #endif 22381 22382 #ifdef BCM_TOMAHAWK3_SUPPORT 22383 int 22384 bcm_tomahawk3_field_qualify_MplsLabel3Ttl_get( 22385 int unit, 22386 bcm_field_entry_t entry, 22387 uint8 *data, 22388 uint8 *mask) 22389 { 22390 return bcm_esw_field_qualify_MplsLabel3Ttl_get(unit, entry, data, mask); 22391 } 22392 #endif 22393 22394 #ifdef BCM_TOMAHAWK3_SUPPORT 22395 int 22396 bcm_tomahawk3_field_qualify_MplsLabel3_get( 22397 int unit, 22398 bcm_field_entry_t entry, 22399 uint32 *data, 22400 uint32 *mask) 22401 { 22402 return bcm_esw_field_qualify_MplsLabel3_get(unit, entry, data, mask); 22403 } 22404 #endif 22405 22406 #ifdef BCM_TOMAHAWK3_SUPPORT 22407 int 22408 bcm_tomahawk3_field_qualify_MplsMcastEthertypePresent( 22409 int unit, 22410 bcm_field_entry_t entry, 22411 uint8 data, 22412 uint8 mask) 22413 { 22414 return bcm_esw_field_qualify_MplsMcastEthertypePresent(unit, entry, data, mask); 22415 } 22416 #endif 22417 22418 #ifdef BCM_TOMAHAWK3_SUPPORT 22419 int 22420 bcm_tomahawk3_field_qualify_MplsMcastEthertypePresent_get( 22421 int unit, 22422 bcm_field_entry_t entry, 22423 uint8 *data, 22424 uint8 *mask) 22425 { 22426 return bcm_esw_field_qualify_MplsMcastEthertypePresent_get(unit, entry, data, mask); 22427 } 22428 #endif 22429 22430 #ifdef BCM_TOMAHAWK3_SUPPORT 22431 int 22432 bcm_tomahawk3_field_qualify_MplsOamACH( 22433 int unit, 22434 bcm_field_entry_t entry, 22435 uint32 data, 22436 uint32 mask) 22437 { 22438 return bcm_esw_field_qualify_MplsOamACH(unit, entry, data, mask); 22439 } 22440 #endif 22441 22442 #ifdef BCM_TOMAHAWK3_SUPPORT 22443 int 22444 bcm_tomahawk3_field_qualify_MplsOamACH_get( 22445 int unit, 22446 bcm_field_entry_t entry, 22447 uint32 *data, 22448 uint32 *mask) 22449 { 22450 return bcm_esw_field_qualify_MplsOamACH_get(unit, entry, data, mask); 22451 } 22452 #endif 22453 22454 #ifdef BCM_TOMAHAWK3_SUPPORT 22455 int 22456 bcm_tomahawk3_field_qualify_MplsOamClassMplsSwitchLabel( 22457 int unit, 22458 bcm_field_entry_t entry, 22459 uint16 data, 22460 uint16 mask) 22461 { 22462 return bcm_esw_field_qualify_MplsOamClassMplsSwitchLabel(unit, entry, data, mask); 22463 } 22464 #endif 22465 22466 #ifdef BCM_TOMAHAWK3_SUPPORT 22467 int 22468 bcm_tomahawk3_field_qualify_MplsOamClassMplsSwitchLabel_get( 22469 int unit, 22470 bcm_field_entry_t entry, 22471 uint16 *data, 22472 uint16 *mask) 22473 { 22474 return bcm_esw_field_qualify_MplsOamClassMplsSwitchLabel_get(unit, entry, data, mask); 22475 } 22476 #endif 22477 22478 #ifdef BCM_TOMAHAWK3_SUPPORT 22479 int 22480 bcm_tomahawk3_field_qualify_MplsOamControlPktType( 22481 int unit, 22482 bcm_field_entry_t entry, 22483 bcm_field_MplsOam_Control_pktType_t data) 22484 { 22485 return bcm_esw_field_qualify_MplsOamControlPktType(unit, entry, data); 22486 } 22487 #endif 22488 22489 #ifdef BCM_TOMAHAWK3_SUPPORT 22490 int 22491 bcm_tomahawk3_field_qualify_MplsOamControlPktType_get( 22492 int unit, 22493 bcm_field_entry_t entry, 22494 bcm_field_MplsOam_Control_pktType_t *data) 22495 { 22496 return bcm_esw_field_qualify_MplsOamControlPktType_get(unit, entry, data); 22497 } 22498 #endif 22499 22500 #ifdef BCM_TOMAHAWK3_SUPPORT 22501 int 22502 bcm_tomahawk3_field_qualify_MplsOamGALExposed( 22503 int unit, 22504 bcm_field_entry_t entry, 22505 uint8 data, 22506 uint8 mask) 22507 { 22508 return bcm_esw_field_qualify_MplsOamGALExposed(unit, entry, data, mask); 22509 } 22510 #endif 22511 22512 #ifdef BCM_TOMAHAWK3_SUPPORT 22513 int 22514 bcm_tomahawk3_field_qualify_MplsOamGALExposed_get( 22515 int unit, 22516 bcm_field_entry_t entry, 22517 uint8 *data, 22518 uint8 *mask) 22519 { 22520 return bcm_esw_field_qualify_MplsOamGALExposed_get(unit, entry, data, mask); 22521 } 22522 #endif 22523 22524 #ifdef BCM_TOMAHAWK3_SUPPORT 22525 int 22526 bcm_tomahawk3_field_qualify_MplsOamGALLabelOnly( 22527 int unit, 22528 bcm_field_entry_t entry, 22529 uint8 data, 22530 uint8 mask) 22531 { 22532 return bcm_esw_field_qualify_MplsOamGALLabelOnly(unit, entry, data, mask); 22533 } 22534 #endif 22535 22536 #ifdef BCM_TOMAHAWK3_SUPPORT 22537 int 22538 bcm_tomahawk3_field_qualify_MplsOamGALLabelOnly_get( 22539 int unit, 22540 bcm_field_entry_t entry, 22541 uint8 *data, 22542 uint8 *mask) 22543 { 22544 return bcm_esw_field_qualify_MplsOamGALLabelOnly_get(unit, entry, data, mask); 22545 } 22546 #endif 22547 22548 #ifdef BCM_TOMAHAWK3_SUPPORT 22549 int 22550 bcm_tomahawk3_field_qualify_MplsOamHeaderBits0_31( 22551 int unit, 22552 bcm_field_entry_t entry, 22553 uint32 data, 22554 uint32 mask) 22555 { 22556 return bcm_esw_field_qualify_MplsOamHeaderBits0_31(unit, entry, data, mask); 22557 } 22558 #endif 22559 22560 #ifdef BCM_TOMAHAWK3_SUPPORT 22561 int 22562 bcm_tomahawk3_field_qualify_MplsOamHeaderBits0_31_get( 22563 int unit, 22564 bcm_field_entry_t entry, 22565 uint32 *data, 22566 uint32 *mask) 22567 { 22568 return bcm_esw_field_qualify_MplsOamHeaderBits0_31_get(unit, entry, data, mask); 22569 } 22570 #endif 22571 22572 #ifdef BCM_TOMAHAWK3_SUPPORT 22573 int 22574 bcm_tomahawk3_field_qualify_MplsOamHeaderBits32_63( 22575 int unit, 22576 bcm_field_entry_t entry, 22577 uint32 data, 22578 uint32 mask) 22579 { 22580 return bcm_esw_field_qualify_MplsOamHeaderBits32_63(unit, entry, data, mask); 22581 } 22582 #endif 22583 22584 #ifdef BCM_TOMAHAWK3_SUPPORT 22585 int 22586 bcm_tomahawk3_field_qualify_MplsOamHeaderBits32_63_get( 22587 int unit, 22588 bcm_field_entry_t entry, 22589 uint32 *data, 22590 uint32 *mask) 22591 { 22592 return bcm_esw_field_qualify_MplsOamHeaderBits32_63_get(unit, entry, data, mask); 22593 } 22594 #endif 22595 22596 #ifdef BCM_TOMAHAWK3_SUPPORT 22597 int 22598 bcm_tomahawk3_field_qualify_MplsOamUpperLabelDataDrop( 22599 int unit, 22600 bcm_field_entry_t entry, 22601 uint8 data, 22602 uint8 mask) 22603 { 22604 return bcm_esw_field_qualify_MplsOamUpperLabelDataDrop(unit, entry, data, mask); 22605 } 22606 #endif 22607 22608 #ifdef BCM_TOMAHAWK3_SUPPORT 22609 int 22610 bcm_tomahawk3_field_qualify_MplsOamUpperLabelDataDrop_get( 22611 int unit, 22612 bcm_field_entry_t entry, 22613 uint8 *data, 22614 uint8 *mask) 22615 { 22616 return bcm_esw_field_qualify_MplsOamUpperLabelDataDrop_get(unit, entry, data, mask); 22617 } 22618 #endif 22619 22620 #ifdef BCM_TOMAHAWK3_SUPPORT 22621 int 22622 bcm_tomahawk3_field_qualify_MplsOuterLabelPop( 22623 int unit, 22624 bcm_field_entry_t entry, 22625 uint8 data, 22626 uint8 mask) 22627 { 22628 return bcm_esw_field_qualify_MplsOuterLabelPop(unit, entry, data, mask); 22629 } 22630 #endif 22631 22632 #ifdef BCM_TOMAHAWK3_SUPPORT 22633 int 22634 bcm_tomahawk3_field_qualify_MplsOuterLabelPop_get( 22635 int unit, 22636 bcm_field_entry_t entry, 22637 uint8 *data, 22638 uint8 *mask) 22639 { 22640 return bcm_esw_field_qualify_MplsOuterLabelPop_get(unit, entry, data, mask); 22641 } 22642 #endif 22643 22644 #ifdef BCM_TOMAHAWK3_SUPPORT 22645 int 22646 bcm_tomahawk3_field_qualify_MplsStationHitTunnelUnterminated( 22647 int unit, 22648 bcm_field_entry_t entry, 22649 uint8 data, 22650 uint8 mask) 22651 { 22652 return bcm_esw_field_qualify_MplsStationHitTunnelUnterminated(unit, entry, data, mask); 22653 } 22654 #endif 22655 22656 #ifdef BCM_TOMAHAWK3_SUPPORT 22657 int 22658 bcm_tomahawk3_field_qualify_MplsStationHitTunnelUnterminated_get( 22659 int unit, 22660 bcm_field_entry_t entry, 22661 uint8 *data, 22662 uint8 *mask) 22663 { 22664 return bcm_esw_field_qualify_MplsStationHitTunnelUnterminated_get(unit, entry, data, mask); 22665 } 22666 #endif 22667 22668 #ifdef BCM_TOMAHAWK3_SUPPORT 22669 int 22670 bcm_tomahawk3_field_qualify_MplsTerminated( 22671 int unit, 22672 bcm_field_entry_t entry, 22673 uint8 data, 22674 uint8 mask) 22675 { 22676 return bcm_esw_field_qualify_MplsTerminated(unit, entry, data, mask); 22677 } 22678 #endif 22679 22680 #ifdef BCM_TOMAHAWK3_SUPPORT 22681 int 22682 bcm_tomahawk3_field_qualify_MplsTerminatedHit( 22683 int unit, 22684 bcm_field_entry_t entry, 22685 uint8 data, 22686 uint8 mask) 22687 { 22688 return bcm_esw_field_qualify_MplsTerminatedHit(unit, entry, data, mask); 22689 } 22690 #endif 22691 22692 #ifdef BCM_TOMAHAWK3_SUPPORT 22693 int 22694 bcm_tomahawk3_field_qualify_MplsTerminatedHit_get( 22695 int unit, 22696 bcm_field_entry_t entry, 22697 uint8 *data, 22698 uint8 *mask) 22699 { 22700 return bcm_esw_field_qualify_MplsTerminatedHit_get(unit, entry, data, mask); 22701 } 22702 #endif 22703 22704 #ifdef BCM_TOMAHAWK3_SUPPORT 22705 int 22706 bcm_tomahawk3_field_qualify_MplsTerminatedValue( 22707 int unit, 22708 bcm_field_entry_t entry, 22709 uint64 data, 22710 uint64 mask) 22711 { 22712 return bcm_esw_field_qualify_MplsTerminatedValue(unit, entry, data, mask); 22713 } 22714 #endif 22715 22716 #ifdef BCM_TOMAHAWK3_SUPPORT 22717 int 22718 bcm_tomahawk3_field_qualify_MplsTerminatedValue_get( 22719 int unit, 22720 bcm_field_entry_t entry, 22721 uint64 *data, 22722 uint64 *mask) 22723 { 22724 return bcm_esw_field_qualify_MplsTerminatedValue_get(unit, entry, data, mask); 22725 } 22726 #endif 22727 22728 #ifdef BCM_TOMAHAWK3_SUPPORT 22729 int 22730 bcm_tomahawk3_field_qualify_MplsTerminated_get( 22731 int unit, 22732 bcm_field_entry_t entry, 22733 uint8 *data, 22734 uint8 *mask) 22735 { 22736 return bcm_esw_field_qualify_MplsTerminated_get(unit, entry, data, mask); 22737 } 22738 #endif 22739 22740 #ifdef BCM_TOMAHAWK3_SUPPORT 22741 int 22742 bcm_tomahawk3_field_qualify_MyStation2Hit( 22743 int unit, 22744 bcm_field_entry_t entry, 22745 uint8 data, 22746 uint8 mask) 22747 { 22748 return bcm_esw_field_qualify_MyStation2Hit(unit, entry, data, mask); 22749 } 22750 #endif 22751 22752 #ifdef BCM_TOMAHAWK3_SUPPORT 22753 int 22754 bcm_tomahawk3_field_qualify_MyStation2Hit_get( 22755 int unit, 22756 bcm_field_entry_t entry, 22757 uint8 *data, 22758 uint8 *mask) 22759 { 22760 return bcm_esw_field_qualify_MyStation2Hit_get(unit, entry, data, mask); 22761 } 22762 #endif 22763 22764 #ifdef BCM_TOMAHAWK3_SUPPORT 22765 int 22766 bcm_tomahawk3_field_qualify_MyStationHit( 22767 int unit, 22768 bcm_field_entry_t entry, 22769 uint8 data, 22770 uint8 mask) 22771 { 22772 return bcm_esw_field_qualify_MyStationHit(unit, entry, data, mask); 22773 } 22774 #endif 22775 22776 #ifdef BCM_TOMAHAWK3_SUPPORT 22777 int 22778 bcm_tomahawk3_field_qualify_MyStationHit_get( 22779 int unit, 22780 bcm_field_entry_t entry, 22781 uint8 *data, 22782 uint8 *mask) 22783 { 22784 return bcm_esw_field_qualify_MyStationHit_get(unit, entry, data, mask); 22785 } 22786 #endif 22787 22788 #ifdef BCM_TOMAHAWK3_SUPPORT 22789 int 22790 bcm_tomahawk3_field_qualify_NatDstRealmId( 22791 int unit, 22792 bcm_field_entry_t entry, 22793 uint8 data, 22794 uint8 mask) 22795 { 22796 return bcm_esw_field_qualify_NatDstRealmId(unit, entry, data, mask); 22797 } 22798 #endif 22799 22800 #ifdef BCM_TOMAHAWK3_SUPPORT 22801 int 22802 bcm_tomahawk3_field_qualify_NatDstRealmId_get( 22803 int unit, 22804 bcm_field_entry_t entry, 22805 uint8 *data, 22806 uint8 *mask) 22807 { 22808 return bcm_esw_field_qualify_NatDstRealmId_get(unit, entry, data, mask); 22809 } 22810 #endif 22811 22812 #ifdef BCM_TOMAHAWK3_SUPPORT 22813 int 22814 bcm_tomahawk3_field_qualify_NatNeeded( 22815 int unit, 22816 bcm_field_entry_t entry, 22817 uint8 data, 22818 uint8 mask) 22819 { 22820 return bcm_esw_field_qualify_NatNeeded(unit, entry, data, mask); 22821 } 22822 #endif 22823 22824 #ifdef BCM_TOMAHAWK3_SUPPORT 22825 int 22826 bcm_tomahawk3_field_qualify_NatNeeded_get( 22827 int unit, 22828 bcm_field_entry_t entry, 22829 uint8 *data, 22830 uint8 *mask) 22831 { 22832 return bcm_esw_field_qualify_NatNeeded_get(unit, entry, data, mask); 22833 } 22834 #endif 22835 22836 #ifdef BCM_TOMAHAWK3_SUPPORT 22837 int 22838 bcm_tomahawk3_field_qualify_NatSrcRealmId( 22839 int unit, 22840 bcm_field_entry_t entry, 22841 uint8 data, 22842 uint8 mask) 22843 { 22844 return bcm_esw_field_qualify_NatSrcRealmId(unit, entry, data, mask); 22845 } 22846 #endif 22847 22848 #ifdef BCM_TOMAHAWK3_SUPPORT 22849 int 22850 bcm_tomahawk3_field_qualify_NatSrcRealmId_get( 22851 int unit, 22852 bcm_field_entry_t entry, 22853 uint8 *data, 22854 uint8 *mask) 22855 { 22856 return bcm_esw_field_qualify_NatSrcRealmId_get(unit, entry, data, mask); 22857 } 22858 #endif 22859 22860 int 22861 bcm_tomahawk3_field_qualify_NativeVSwitch( 22862 int unit, 22863 bcm_field_entry_t entry, 22864 bcm_vlan_t data, 22865 bcm_vlan_t mask) 22866 { 22867 return BCM_E_UNAVAIL; 22868 } 22869 22870 int 22871 bcm_tomahawk3_field_qualify_NativeVSwitchValid( 22872 int unit, 22873 bcm_field_entry_t entry, 22874 uint8 data, 22875 uint8 mask) 22876 { 22877 return BCM_E_UNAVAIL; 22878 } 22879 22880 int 22881 bcm_tomahawk3_field_qualify_NativeVSwitchValid_get( 22882 int unit, 22883 bcm_field_entry_t entry, 22884 uint8 *data, 22885 uint8 *mask) 22886 { 22887 return BCM_E_UNAVAIL; 22888 } 22889 22890 int 22891 bcm_tomahawk3_field_qualify_NativeVSwitch_get( 22892 int unit, 22893 bcm_field_entry_t entry, 22894 bcm_vlan_t *data, 22895 bcm_vlan_t *mask) 22896 { 22897 return BCM_E_UNAVAIL; 22898 } 22899 22900 #ifdef BCM_TOMAHAWK3_SUPPORT 22901 int 22902 bcm_tomahawk3_field_qualify_NetworkTagMulticastPkt( 22903 int unit, 22904 bcm_field_entry_t entry, 22905 uint8 data, 22906 uint8 mask) 22907 { 22908 return bcm_esw_field_qualify_NetworkTagMulticastPkt(unit, entry, data, mask); 22909 } 22910 #endif 22911 22912 #ifdef BCM_TOMAHAWK3_SUPPORT 22913 int 22914 bcm_tomahawk3_field_qualify_NetworkTagMulticastPkt_get( 22915 int unit, 22916 bcm_field_entry_t entry, 22917 uint8 *data, 22918 uint8 *mask) 22919 { 22920 return bcm_esw_field_qualify_NetworkTagMulticastPkt_get(unit, entry, data, mask); 22921 } 22922 #endif 22923 22924 #ifdef BCM_TOMAHAWK3_SUPPORT 22925 int 22926 bcm_tomahawk3_field_qualify_NetworkTagType( 22927 int unit, 22928 bcm_field_entry_t entry, 22929 bcm_field_network_tag_type_t type) 22930 { 22931 return bcm_esw_field_qualify_NetworkTagType(unit, entry, type); 22932 } 22933 #endif 22934 22935 #ifdef BCM_TOMAHAWK3_SUPPORT 22936 int 22937 bcm_tomahawk3_field_qualify_NetworkTagType_get( 22938 int unit, 22939 bcm_field_entry_t entry, 22940 bcm_field_network_tag_type_t *type) 22941 { 22942 return bcm_esw_field_qualify_NetworkTagType_get(unit, entry, type); 22943 } 22944 #endif 22945 22946 #ifdef BCM_TOMAHAWK3_SUPPORT 22947 int 22948 bcm_tomahawk3_field_qualify_NshServiceIndex( 22949 int unit, 22950 bcm_field_entry_t entry, 22951 uint32 data, 22952 uint32 mask) 22953 { 22954 return bcm_esw_field_qualify_NshServiceIndex(unit, entry, data, mask); 22955 } 22956 #endif 22957 22958 #ifdef BCM_TOMAHAWK3_SUPPORT 22959 int 22960 bcm_tomahawk3_field_qualify_NshServiceIndex_get( 22961 int unit, 22962 bcm_field_entry_t entry, 22963 uint32 *data, 22964 uint32 *mask) 22965 { 22966 return bcm_esw_field_qualify_NshServiceIndex_get(unit, entry, data, mask); 22967 } 22968 #endif 22969 22970 #ifdef BCM_TOMAHAWK3_SUPPORT 22971 int 22972 bcm_tomahawk3_field_qualify_NshServicePathId( 22973 int unit, 22974 bcm_field_entry_t entry, 22975 uint32 data, 22976 uint32 mask) 22977 { 22978 return bcm_esw_field_qualify_NshServicePathId(unit, entry, data, mask); 22979 } 22980 #endif 22981 22982 #ifdef BCM_TOMAHAWK3_SUPPORT 22983 int 22984 bcm_tomahawk3_field_qualify_NshServicePathId_get( 22985 int unit, 22986 bcm_field_entry_t entry, 22987 uint32 *data, 22988 uint32 *mask) 22989 { 22990 return bcm_esw_field_qualify_NshServicePathId_get(unit, entry, data, mask); 22991 } 22992 #endif 22993 22994 #ifdef BCM_TOMAHAWK3_SUPPORT 22995 int 22996 bcm_tomahawk3_field_qualify_OamDownMEPLoopbackPacket( 22997 int unit, 22998 bcm_field_entry_t entry, 22999 uint8 data, 23000 uint8 mask) 23001 { 23002 return bcm_esw_field_qualify_OamDownMEPLoopbackPacket(unit, entry, data, mask); 23003 } 23004 #endif 23005 23006 #ifdef BCM_TOMAHAWK3_SUPPORT 23007 int 23008 bcm_tomahawk3_field_qualify_OamDownMEPLoopbackPacket_get( 23009 int unit, 23010 bcm_field_entry_t entry, 23011 uint8 *data, 23012 uint8 *mask) 23013 { 23014 return bcm_esw_field_qualify_OamDownMEPLoopbackPacket_get(unit, entry, data, mask); 23015 } 23016 #endif 23017 23018 #ifdef BCM_TOMAHAWK3_SUPPORT 23019 int 23020 bcm_tomahawk3_field_qualify_OamEgressClass2Vxlt( 23021 int unit, 23022 bcm_field_entry_t entry, 23023 uint32 data, 23024 uint32 mask) 23025 { 23026 return bcm_esw_field_qualify_OamEgressClass2Vxlt(unit, entry, data, mask); 23027 } 23028 #endif 23029 23030 #ifdef BCM_TOMAHAWK3_SUPPORT 23031 int 23032 bcm_tomahawk3_field_qualify_OamEgressClass2Vxlt_get( 23033 int unit, 23034 bcm_field_entry_t entry, 23035 uint32 *data, 23036 uint32 *mask) 23037 { 23038 return bcm_esw_field_qualify_OamEgressClass2Vxlt_get(unit, entry, data, mask); 23039 } 23040 #endif 23041 23042 #ifdef BCM_TOMAHAWK3_SUPPORT 23043 int 23044 bcm_tomahawk3_field_qualify_OamEgressClassPort( 23045 int unit, 23046 bcm_field_entry_t entry, 23047 uint16 data, 23048 uint16 mask) 23049 { 23050 return bcm_esw_field_qualify_OamEgressClassPort(unit, entry, data, mask); 23051 } 23052 #endif 23053 23054 #ifdef BCM_TOMAHAWK3_SUPPORT 23055 int 23056 bcm_tomahawk3_field_qualify_OamEgressClassPort_get( 23057 int unit, 23058 bcm_field_entry_t entry, 23059 uint16 *data, 23060 uint16 *mask) 23061 { 23062 return bcm_esw_field_qualify_OamEgressClassPort_get(unit, entry, data, mask); 23063 } 23064 #endif 23065 23066 #ifdef BCM_TOMAHAWK3_SUPPORT 23067 int 23068 bcm_tomahawk3_field_qualify_OamEgressClassSrcMac( 23069 int unit, 23070 bcm_field_entry_t entry, 23071 uint32 data, 23072 uint32 mask) 23073 { 23074 return bcm_esw_field_qualify_OamEgressClassSrcMac(unit, entry, data, mask); 23075 } 23076 #endif 23077 23078 #ifdef BCM_TOMAHAWK3_SUPPORT 23079 int 23080 bcm_tomahawk3_field_qualify_OamEgressClassSrcMac_get( 23081 int unit, 23082 bcm_field_entry_t entry, 23083 uint32 *data, 23084 uint32 *mask) 23085 { 23086 return bcm_esw_field_qualify_OamEgressClassSrcMac_get(unit, entry, data, mask); 23087 } 23088 #endif 23089 23090 #ifdef BCM_TOMAHAWK3_SUPPORT 23091 int 23092 bcm_tomahawk3_field_qualify_OamEgressClassVxlt( 23093 int unit, 23094 bcm_field_entry_t entry, 23095 uint16 data, 23096 uint16 mask) 23097 { 23098 return bcm_esw_field_qualify_OamEgressClassVxlt(unit, entry, data, mask); 23099 } 23100 #endif 23101 23102 #ifdef BCM_TOMAHAWK3_SUPPORT 23103 int 23104 bcm_tomahawk3_field_qualify_OamEgressClassVxlt_get( 23105 int unit, 23106 bcm_field_entry_t entry, 23107 uint16 *data, 23108 uint16 *mask) 23109 { 23110 return bcm_esw_field_qualify_OamEgressClassVxlt_get(unit, entry, data, mask); 23111 } 23112 #endif 23113 23114 #ifdef BCM_TOMAHAWK3_SUPPORT 23115 int 23116 bcm_tomahawk3_field_qualify_OamEgressEtherType( 23117 int unit, 23118 bcm_field_entry_t entry, 23119 uint16 data) 23120 { 23121 return bcm_esw_field_qualify_OamEgressEtherType(unit, entry, data); 23122 } 23123 #endif 23124 23125 #ifdef BCM_TOMAHAWK3_SUPPORT 23126 int 23127 bcm_tomahawk3_field_qualify_OamEgressEtherType_get( 23128 int unit, 23129 bcm_field_entry_t entry, 23130 uint16 *data) 23131 { 23132 return bcm_esw_field_qualify_OamEgressEtherType_get(unit, entry, data); 23133 } 23134 #endif 23135 23136 #ifdef BCM_TOMAHAWK3_SUPPORT 23137 int 23138 bcm_tomahawk3_field_qualify_OamEgressMulticastMacHit( 23139 int unit, 23140 bcm_field_entry_t entry, 23141 uint8 data) 23142 { 23143 return bcm_esw_field_qualify_OamEgressMulticastMacHit(unit, entry, data); 23144 } 23145 #endif 23146 23147 #ifdef BCM_TOMAHAWK3_SUPPORT 23148 int 23149 bcm_tomahawk3_field_qualify_OamEgressMulticastMacHit_get( 23150 int unit, 23151 bcm_field_entry_t entry, 23152 uint8 *data) 23153 { 23154 return bcm_esw_field_qualify_OamEgressMulticastMacHit_get(unit, entry, data); 23155 } 23156 #endif 23157 23158 #ifdef BCM_TOMAHAWK3_SUPPORT 23159 int 23160 bcm_tomahawk3_field_qualify_OamEgressPortUnicastDstMacHit( 23161 int unit, 23162 bcm_field_entry_t entry, 23163 uint8 data, 23164 uint8 mask) 23165 { 23166 return bcm_esw_field_qualify_OamEgressPortUnicastDstMacHit(unit, entry, data, mask); 23167 } 23168 #endif 23169 23170 #ifdef BCM_TOMAHAWK3_SUPPORT 23171 int 23172 bcm_tomahawk3_field_qualify_OamEgressPortUnicastDstMacHit_get( 23173 int unit, 23174 bcm_field_entry_t entry, 23175 uint8 *data, 23176 uint8 *mask) 23177 { 23178 return bcm_esw_field_qualify_OamEgressPortUnicastDstMacHit_get(unit, entry, data, mask); 23179 } 23180 #endif 23181 23182 #ifdef BCM_TOMAHAWK3_SUPPORT 23183 int 23184 bcm_tomahawk3_field_qualify_OamEgressVxltFirstHit( 23185 int unit, 23186 bcm_field_entry_t entry, 23187 uint8 data, 23188 uint8 mask) 23189 { 23190 return bcm_esw_field_qualify_OamEgressVxltFirstHit(unit, entry, data, mask); 23191 } 23192 #endif 23193 23194 #ifdef BCM_TOMAHAWK3_SUPPORT 23195 int 23196 bcm_tomahawk3_field_qualify_OamEgressVxltFirstHit_get( 23197 int unit, 23198 bcm_field_entry_t entry, 23199 uint8 *data, 23200 uint8 *mask) 23201 { 23202 return bcm_esw_field_qualify_OamEgressVxltFirstHit_get(unit, entry, data, mask); 23203 } 23204 #endif 23205 23206 #ifdef BCM_TOMAHAWK3_SUPPORT 23207 int 23208 bcm_tomahawk3_field_qualify_OamEgressVxltSecondHit( 23209 int unit, 23210 bcm_field_entry_t entry, 23211 uint8 data, 23212 uint8 mask) 23213 { 23214 return bcm_esw_field_qualify_OamEgressVxltSecondHit(unit, entry, data, mask); 23215 } 23216 #endif 23217 23218 #ifdef BCM_TOMAHAWK3_SUPPORT 23219 int 23220 bcm_tomahawk3_field_qualify_OamEgressVxltSecondHit_get( 23221 int unit, 23222 bcm_field_entry_t entry, 23223 uint8 *data, 23224 uint8 *mask) 23225 { 23226 return bcm_esw_field_qualify_OamEgressVxltSecondHit_get(unit, entry, data, mask); 23227 } 23228 #endif 23229 23230 #ifdef BCM_TOMAHAWK3_SUPPORT 23231 int 23232 bcm_tomahawk3_field_qualify_OamHeaderBits0_31( 23233 int unit, 23234 bcm_field_entry_t entry, 23235 uint32 data, 23236 uint32 mask) 23237 { 23238 return bcm_esw_field_qualify_OamHeaderBits0_31(unit, entry, data, mask); 23239 } 23240 #endif 23241 23242 #ifdef BCM_TOMAHAWK3_SUPPORT 23243 int 23244 bcm_tomahawk3_field_qualify_OamHeaderBits0_31_get( 23245 int unit, 23246 bcm_field_entry_t entry, 23247 uint32 *data, 23248 uint32 *mask) 23249 { 23250 return bcm_esw_field_qualify_OamHeaderBits0_31_get(unit, entry, data, mask); 23251 } 23252 #endif 23253 23254 #ifdef BCM_TOMAHAWK3_SUPPORT 23255 int 23256 bcm_tomahawk3_field_qualify_OamHeaderBits32_63( 23257 int unit, 23258 bcm_field_entry_t entry, 23259 uint32 data, 23260 uint32 mask) 23261 { 23262 return bcm_esw_field_qualify_OamHeaderBits32_63(unit, entry, data, mask); 23263 } 23264 #endif 23265 23266 #ifdef BCM_TOMAHAWK3_SUPPORT 23267 int 23268 bcm_tomahawk3_field_qualify_OamHeaderBits32_63_get( 23269 int unit, 23270 bcm_field_entry_t entry, 23271 uint32 *data, 23272 uint32 *mask) 23273 { 23274 return bcm_esw_field_qualify_OamHeaderBits32_63_get(unit, entry, data, mask); 23275 } 23276 #endif 23277 23278 int 23279 bcm_tomahawk3_field_qualify_OamHeaderOffset( 23280 int unit, 23281 bcm_field_entry_t entry, 23282 uint32 data, 23283 uint32 mask) 23284 { 23285 return BCM_E_UNAVAIL; 23286 } 23287 23288 int 23289 bcm_tomahawk3_field_qualify_OamHeaderOffset_get( 23290 int unit, 23291 bcm_field_entry_t entry, 23292 uint32 *data, 23293 uint32 *mask) 23294 { 23295 return BCM_E_UNAVAIL; 23296 } 23297 23298 int 23299 bcm_tomahawk3_field_qualify_OamInLifId( 23300 int unit, 23301 bcm_field_entry_t entry, 23302 uint32 data, 23303 uint32 mask) 23304 { 23305 return BCM_E_UNAVAIL; 23306 } 23307 23308 int 23309 bcm_tomahawk3_field_qualify_OamInLifIdValid( 23310 int unit, 23311 bcm_field_entry_t entry, 23312 uint8 data, 23313 uint8 mask) 23314 { 23315 return BCM_E_UNAVAIL; 23316 } 23317 23318 int 23319 bcm_tomahawk3_field_qualify_OamInLifIdValid_get( 23320 int unit, 23321 bcm_field_entry_t entry, 23322 uint8 *data, 23323 uint8 *mask) 23324 { 23325 return BCM_E_UNAVAIL; 23326 } 23327 23328 int 23329 bcm_tomahawk3_field_qualify_OamInLifId_get( 23330 int unit, 23331 bcm_field_entry_t entry, 23332 uint32 *data, 23333 uint32 *mask) 23334 { 23335 return BCM_E_UNAVAIL; 23336 } 23337 23338 #ifdef BCM_TOMAHAWK3_SUPPORT 23339 int 23340 bcm_tomahawk3_field_qualify_OamMdl( 23341 int unit, 23342 bcm_field_entry_t entry, 23343 uint8 data, 23344 uint8 mask) 23345 { 23346 return bcm_esw_field_qualify_OamMdl(unit, entry, data, mask); 23347 } 23348 #endif 23349 23350 #ifdef BCM_TOMAHAWK3_SUPPORT 23351 int 23352 bcm_tomahawk3_field_qualify_OamMdl_get( 23353 int unit, 23354 bcm_field_entry_t entry, 23355 uint8 *data, 23356 uint8 *mask) 23357 { 23358 return bcm_esw_field_qualify_OamMdl_get(unit, entry, data, mask); 23359 } 23360 #endif 23361 23362 int 23363 bcm_tomahawk3_field_qualify_OamMepId( 23364 int unit, 23365 bcm_field_entry_t entry, 23366 uint32 data, 23367 uint32 mask) 23368 { 23369 return BCM_E_UNAVAIL; 23370 } 23371 23372 int 23373 bcm_tomahawk3_field_qualify_OamMepId_get( 23374 int unit, 23375 bcm_field_entry_t entry, 23376 uint32 *data, 23377 uint32 *mask) 23378 { 23379 return BCM_E_UNAVAIL; 23380 } 23381 23382 int 23383 bcm_tomahawk3_field_qualify_OamMeterDisable( 23384 int unit, 23385 bcm_field_entry_t entry, 23386 uint8 data, 23387 uint8 mask) 23388 { 23389 return BCM_E_UNAVAIL; 23390 } 23391 23392 int 23393 bcm_tomahawk3_field_qualify_OamMeterDisable_get( 23394 int unit, 23395 bcm_field_entry_t entry, 23396 uint8 *data, 23397 uint8 *mask) 23398 { 23399 return BCM_E_UNAVAIL; 23400 } 23401 23402 int 23403 bcm_tomahawk3_field_qualify_OamStampOffset( 23404 int unit, 23405 bcm_field_entry_t entry, 23406 uint32 data, 23407 uint32 mask) 23408 { 23409 return BCM_E_UNAVAIL; 23410 } 23411 23412 int 23413 bcm_tomahawk3_field_qualify_OamStampOffset_get( 23414 int unit, 23415 bcm_field_entry_t entry, 23416 uint32 *data, 23417 uint32 *mask) 23418 { 23419 return BCM_E_UNAVAIL; 23420 } 23421 23422 int 23423 bcm_tomahawk3_field_qualify_OamSubtype( 23424 int unit, 23425 bcm_field_entry_t entry, 23426 uint8 data, 23427 uint8 mask) 23428 { 23429 return BCM_E_UNAVAIL; 23430 } 23431 23432 int 23433 bcm_tomahawk3_field_qualify_OamSubtype_get( 23434 int unit, 23435 bcm_field_entry_t entry, 23436 uint8 *data, 23437 uint8 *mask) 23438 { 23439 return BCM_E_UNAVAIL; 23440 } 23441 23442 int 23443 bcm_tomahawk3_field_qualify_OamTsSystemHeader( 23444 int unit, 23445 bcm_field_entry_t entry, 23446 uint64 data, 23447 uint64 mask) 23448 { 23449 return BCM_E_UNAVAIL; 23450 } 23451 23452 int 23453 bcm_tomahawk3_field_qualify_OamTsSystemHeader_get( 23454 int unit, 23455 bcm_field_entry_t entry, 23456 uint64 *data, 23457 uint64 *mask) 23458 { 23459 return BCM_E_UNAVAIL; 23460 } 23461 23462 #ifdef BCM_TOMAHAWK3_SUPPORT 23463 int 23464 bcm_tomahawk3_field_qualify_OamType( 23465 int unit, 23466 bcm_field_entry_t entry, 23467 bcm_field_oam_type_t oam_type) 23468 { 23469 return bcm_esw_field_qualify_OamType(unit, entry, oam_type); 23470 } 23471 #endif 23472 23473 #ifdef BCM_TOMAHAWK3_SUPPORT 23474 int 23475 bcm_tomahawk3_field_qualify_OamType_get( 23476 int unit, 23477 bcm_field_entry_t entry, 23478 bcm_field_oam_type_t *oam_type) 23479 { 23480 return bcm_esw_field_qualify_OamType_get(unit, entry, oam_type); 23481 } 23482 #endif 23483 23484 int 23485 bcm_tomahawk3_field_qualify_OamUpMep( 23486 int unit, 23487 bcm_field_entry_t entry, 23488 uint8 data, 23489 uint8 mask) 23490 { 23491 return BCM_E_UNAVAIL; 23492 } 23493 23494 int 23495 bcm_tomahawk3_field_qualify_OamUpMep_get( 23496 int unit, 23497 bcm_field_entry_t entry, 23498 uint8 *data, 23499 uint8 *mask) 23500 { 23501 return BCM_E_UNAVAIL; 23502 } 23503 23504 #ifdef BCM_TOMAHAWK3_SUPPORT 23505 int 23506 bcm_tomahawk3_field_qualify_OpaqueObject1( 23507 int unit, 23508 bcm_field_entry_t entry, 23509 uint16 data, 23510 uint16 mask) 23511 { 23512 return bcm_esw_field_qualify_OpaqueObject1(unit, entry, data, mask); 23513 } 23514 #endif 23515 23516 #ifdef BCM_TOMAHAWK3_SUPPORT 23517 int 23518 bcm_tomahawk3_field_qualify_OpaqueObject1_get( 23519 int unit, 23520 bcm_field_entry_t entry, 23521 uint16 *data, 23522 uint16 *mask) 23523 { 23524 return bcm_esw_field_qualify_OpaqueObject1_get(unit, entry, data, mask); 23525 } 23526 #endif 23527 23528 #ifdef BCM_TOMAHAWK3_SUPPORT 23529 int 23530 bcm_tomahawk3_field_qualify_OpaqueObject2( 23531 int unit, 23532 bcm_field_entry_t entry, 23533 uint16 data, 23534 uint16 mask) 23535 { 23536 return bcm_esw_field_qualify_OpaqueObject2(unit, entry, data, mask); 23537 } 23538 #endif 23539 23540 #ifdef BCM_TOMAHAWK3_SUPPORT 23541 int 23542 bcm_tomahawk3_field_qualify_OpaqueObject2_get( 23543 int unit, 23544 bcm_field_entry_t entry, 23545 uint16 *data, 23546 uint16 *mask) 23547 { 23548 return bcm_esw_field_qualify_OpaqueObject2_get(unit, entry, data, mask); 23549 } 23550 #endif 23551 23552 #ifdef BCM_TOMAHAWK3_SUPPORT 23553 int 23554 bcm_tomahawk3_field_qualify_OpaqueObject3( 23555 int unit, 23556 bcm_field_entry_t entry, 23557 uint16 data, 23558 uint16 mask) 23559 { 23560 return bcm_esw_field_qualify_OpaqueObject3(unit, entry, data, mask); 23561 } 23562 #endif 23563 23564 #ifdef BCM_TOMAHAWK3_SUPPORT 23565 int 23566 bcm_tomahawk3_field_qualify_OpaqueObject3_get( 23567 int unit, 23568 bcm_field_entry_t entry, 23569 uint16 *data, 23570 uint16 *mask) 23571 { 23572 return bcm_esw_field_qualify_OpaqueObject3_get(unit, entry, data, mask); 23573 } 23574 #endif 23575 23576 #ifdef BCM_TOMAHAWK3_SUPPORT 23577 int 23578 bcm_tomahawk3_field_qualify_OpaqueObject4( 23579 int unit, 23580 bcm_field_entry_t entry, 23581 uint16 data, 23582 uint16 mask) 23583 { 23584 return bcm_esw_field_qualify_OpaqueObject4(unit, entry, data, mask); 23585 } 23586 #endif 23587 23588 #ifdef BCM_TOMAHAWK3_SUPPORT 23589 int 23590 bcm_tomahawk3_field_qualify_OpaqueObject4_get( 23591 int unit, 23592 bcm_field_entry_t entry, 23593 uint16 *data, 23594 uint16 *mask) 23595 { 23596 return bcm_esw_field_qualify_OpaqueObject4_get(unit, entry, data, mask); 23597 } 23598 #endif 23599 23600 #ifdef BCM_TOMAHAWK3_SUPPORT 23601 int 23602 bcm_tomahawk3_field_qualify_OpaqueTagHigh( 23603 int unit, 23604 bcm_field_entry_t entry, 23605 uint32 data, 23606 uint32 mask) 23607 { 23608 return bcm_esw_field_qualify_OpaqueTagHigh(unit, entry, data, mask); 23609 } 23610 #endif 23611 23612 #ifdef BCM_TOMAHAWK3_SUPPORT 23613 int 23614 bcm_tomahawk3_field_qualify_OpaqueTagHigh_get( 23615 int unit, 23616 bcm_field_entry_t entry, 23617 uint32 *data, 23618 uint32 *mask) 23619 { 23620 return bcm_esw_field_qualify_OpaqueTagHigh_get(unit, entry, data, mask); 23621 } 23622 #endif 23623 23624 #ifdef BCM_TOMAHAWK3_SUPPORT 23625 int 23626 bcm_tomahawk3_field_qualify_OpaqueTagLow( 23627 int unit, 23628 bcm_field_entry_t entry, 23629 uint32 data, 23630 uint32 mask) 23631 { 23632 return bcm_esw_field_qualify_OpaqueTagLow(unit, entry, data, mask); 23633 } 23634 #endif 23635 23636 #ifdef BCM_TOMAHAWK3_SUPPORT 23637 int 23638 bcm_tomahawk3_field_qualify_OpaqueTagLow_get( 23639 int unit, 23640 bcm_field_entry_t entry, 23641 uint32 *data, 23642 uint32 *mask) 23643 { 23644 return bcm_esw_field_qualify_OpaqueTagLow_get(unit, entry, data, mask); 23645 } 23646 #endif 23647 23648 #ifdef BCM_TOMAHAWK3_SUPPORT 23649 int 23650 bcm_tomahawk3_field_qualify_OpaqueTagType( 23651 int unit, 23652 bcm_field_entry_t entry, 23653 uint8 data, 23654 uint8 mask) 23655 { 23656 return bcm_esw_field_qualify_OpaqueTagType(unit, entry, data, mask); 23657 } 23658 #endif 23659 23660 #ifdef BCM_TOMAHAWK3_SUPPORT 23661 int 23662 bcm_tomahawk3_field_qualify_OpaqueTagType_get( 23663 int unit, 23664 bcm_field_entry_t entry, 23665 uint8 *data, 23666 uint8 *mask) 23667 { 23668 return bcm_esw_field_qualify_OpaqueTagType_get(unit, entry, data, mask); 23669 } 23670 #endif 23671 23672 #ifdef BCM_TOMAHAWK3_SUPPORT 23673 int 23674 bcm_tomahawk3_field_qualify_OutPort( 23675 int unit, 23676 bcm_field_entry_t entry, 23677 bcm_port_t data, 23678 bcm_port_t mask) 23679 { 23680 return bcm_esw_field_qualify_OutPort(unit, entry, data, mask); 23681 } 23682 #endif 23683 23684 #ifdef BCM_TOMAHAWK3_SUPPORT 23685 int 23686 bcm_tomahawk3_field_qualify_OutPort_get( 23687 int unit, 23688 bcm_field_entry_t entry, 23689 bcm_port_t *data, 23690 bcm_port_t *mask) 23691 { 23692 return bcm_esw_field_qualify_OutPort_get(unit, entry, data, mask); 23693 } 23694 #endif 23695 23696 #ifdef BCM_TOMAHAWK3_SUPPORT 23697 int 23698 bcm_tomahawk3_field_qualify_OutPorts( 23699 int unit, 23700 bcm_field_entry_t entry, 23701 bcm_pbmp_t data, 23702 bcm_pbmp_t mask) 23703 { 23704 return bcm_esw_field_qualify_OutPorts(unit, entry, data, mask); 23705 } 23706 #endif 23707 23708 #ifdef BCM_TOMAHAWK3_SUPPORT 23709 int 23710 bcm_tomahawk3_field_qualify_OutPorts_get( 23711 int unit, 23712 bcm_field_entry_t entry, 23713 bcm_pbmp_t *data, 23714 bcm_pbmp_t *mask) 23715 { 23716 return bcm_esw_field_qualify_OutPorts_get(unit, entry, data, mask); 23717 } 23718 #endif 23719 23720 #ifdef BCM_TOMAHAWK3_SUPPORT 23721 int 23722 bcm_tomahawk3_field_qualify_OutVPort( 23723 int unit, 23724 bcm_field_entry_t entry, 23725 uint8 data, 23726 uint8 mask) 23727 { 23728 return bcm_esw_field_qualify_OutVPort(unit, entry, data, mask); 23729 } 23730 #endif 23731 23732 #ifdef BCM_TOMAHAWK3_SUPPORT 23733 int 23734 bcm_tomahawk3_field_qualify_OutVPort32( 23735 int unit, 23736 bcm_field_entry_t entry, 23737 uint32 data, 23738 uint32 mask) 23739 { 23740 return bcm_esw_field_qualify_OutVPort32(unit, entry, data, mask); 23741 } 23742 #endif 23743 23744 #ifdef BCM_TOMAHAWK3_SUPPORT 23745 int 23746 bcm_tomahawk3_field_qualify_OutVPort32_get( 23747 int unit, 23748 bcm_field_entry_t entry, 23749 uint32 *data, 23750 uint32 *mask) 23751 { 23752 return bcm_esw_field_qualify_OutVPort32_get(unit, entry, data, mask); 23753 } 23754 #endif 23755 23756 #ifdef BCM_TOMAHAWK3_SUPPORT 23757 int 23758 bcm_tomahawk3_field_qualify_OutVPort_get( 23759 int unit, 23760 bcm_field_entry_t entry, 23761 uint8 *data, 23762 uint8 *mask) 23763 { 23764 return bcm_esw_field_qualify_OutVPort_get(unit, entry, data, mask); 23765 } 23766 #endif 23767 23768 #ifdef BCM_TOMAHAWK3_SUPPORT 23769 int 23770 bcm_tomahawk3_field_qualify_OuterPriTaggedPkt( 23771 int unit, 23772 bcm_field_entry_t entry, 23773 uint8 data, 23774 uint8 mask) 23775 { 23776 return bcm_esw_field_qualify_OuterPriTaggedPkt(unit, entry, data, mask); 23777 } 23778 #endif 23779 23780 #ifdef BCM_TOMAHAWK3_SUPPORT 23781 int 23782 bcm_tomahawk3_field_qualify_OuterPriTaggedPkt_get( 23783 int unit, 23784 bcm_field_entry_t entry, 23785 uint8 *data, 23786 uint8 *mask) 23787 { 23788 return bcm_esw_field_qualify_OuterPriTaggedPkt_get(unit, entry, data, mask); 23789 } 23790 #endif 23791 23792 #ifdef BCM_TOMAHAWK3_SUPPORT 23793 int 23794 bcm_tomahawk3_field_qualify_OuterTpid( 23795 int unit, 23796 bcm_field_entry_t entry, 23797 uint16 tpid) 23798 { 23799 return bcm_esw_field_qualify_OuterTpid(unit, entry, tpid); 23800 } 23801 #endif 23802 23803 #ifdef BCM_TOMAHAWK3_SUPPORT 23804 int 23805 bcm_tomahawk3_field_qualify_OuterTpid_get( 23806 int unit, 23807 bcm_field_entry_t entry, 23808 uint16 *tpid) 23809 { 23810 return bcm_esw_field_qualify_OuterTpid_get(unit, entry, tpid); 23811 } 23812 #endif 23813 23814 #ifdef BCM_TOMAHAWK3_SUPPORT 23815 int 23816 bcm_tomahawk3_field_qualify_OuterVlan( 23817 int unit, 23818 bcm_field_entry_t entry, 23819 bcm_vlan_t data, 23820 bcm_vlan_t mask) 23821 { 23822 return bcm_esw_field_qualify_OuterVlan(unit, entry, data, mask); 23823 } 23824 #endif 23825 23826 int 23827 bcm_tomahawk3_field_qualify_OuterVlanActionRange( 23828 int unit, 23829 bcm_field_entry_t entry, 23830 bcm_vlan_t data, 23831 bcm_vlan_t mask) 23832 { 23833 return BCM_E_UNAVAIL; 23834 } 23835 23836 int 23837 bcm_tomahawk3_field_qualify_OuterVlanActionRange_get( 23838 int unit, 23839 bcm_field_entry_t entry, 23840 bcm_vlan_t *data, 23841 bcm_vlan_t *mask) 23842 { 23843 return BCM_E_UNAVAIL; 23844 } 23845 23846 #ifdef BCM_TOMAHAWK3_SUPPORT 23847 int 23848 bcm_tomahawk3_field_qualify_OuterVlanCfi( 23849 int unit, 23850 bcm_field_entry_t entry, 23851 uint8 data, 23852 uint8 mask) 23853 { 23854 return bcm_esw_field_qualify_OuterVlanCfi(unit, entry, data, mask); 23855 } 23856 #endif 23857 23858 #ifdef BCM_TOMAHAWK3_SUPPORT 23859 int 23860 bcm_tomahawk3_field_qualify_OuterVlanCfi_get( 23861 int unit, 23862 bcm_field_entry_t entry, 23863 uint8 *data, 23864 uint8 *mask) 23865 { 23866 return bcm_esw_field_qualify_OuterVlanCfi_get(unit, entry, data, mask); 23867 } 23868 #endif 23869 23870 #ifdef BCM_TOMAHAWK3_SUPPORT 23871 int 23872 bcm_tomahawk3_field_qualify_OuterVlanId( 23873 int unit, 23874 bcm_field_entry_t entry, 23875 bcm_vlan_t data, 23876 bcm_vlan_t mask) 23877 { 23878 return bcm_esw_field_qualify_OuterVlanId(unit, entry, data, mask); 23879 } 23880 #endif 23881 23882 #ifdef BCM_TOMAHAWK3_SUPPORT 23883 int 23884 bcm_tomahawk3_field_qualify_OuterVlanId_get( 23885 int unit, 23886 bcm_field_entry_t entry, 23887 bcm_vlan_t *data, 23888 bcm_vlan_t *mask) 23889 { 23890 return bcm_esw_field_qualify_OuterVlanId_get(unit, entry, data, mask); 23891 } 23892 #endif 23893 23894 #ifdef BCM_TOMAHAWK3_SUPPORT 23895 int 23896 bcm_tomahawk3_field_qualify_OuterVlanPri( 23897 int unit, 23898 bcm_field_entry_t entry, 23899 uint8 data, 23900 uint8 mask) 23901 { 23902 return bcm_esw_field_qualify_OuterVlanPri(unit, entry, data, mask); 23903 } 23904 #endif 23905 23906 int 23907 bcm_tomahawk3_field_qualify_OuterVlanPriCfi( 23908 int unit, 23909 bcm_field_entry_t entry, 23910 uint8 data, 23911 uint8 mask) 23912 { 23913 return BCM_E_UNAVAIL; 23914 } 23915 23916 int 23917 bcm_tomahawk3_field_qualify_OuterVlanPriCfi_get( 23918 int unit, 23919 bcm_field_entry_t entry, 23920 uint8 *data, 23921 uint8 *mask) 23922 { 23923 return BCM_E_UNAVAIL; 23924 } 23925 23926 #ifdef BCM_TOMAHAWK3_SUPPORT 23927 int 23928 bcm_tomahawk3_field_qualify_OuterVlanPri_get( 23929 int unit, 23930 bcm_field_entry_t entry, 23931 uint8 *data, 23932 uint8 *mask) 23933 { 23934 return bcm_esw_field_qualify_OuterVlanPri_get(unit, entry, data, mask); 23935 } 23936 #endif 23937 23938 #ifdef BCM_TOMAHAWK3_SUPPORT 23939 int 23940 bcm_tomahawk3_field_qualify_OuterVlan_get( 23941 int unit, 23942 bcm_field_entry_t entry, 23943 bcm_vlan_t *data, 23944 bcm_vlan_t *mask) 23945 { 23946 return bcm_esw_field_qualify_OuterVlan_get(unit, entry, data, mask); 23947 } 23948 #endif 23949 23950 #ifdef BCM_TOMAHAWK3_SUPPORT 23951 int 23952 bcm_tomahawk3_field_qualify_OverlayIpv4OptionHdrType( 23953 int unit, 23954 bcm_field_entry_t entry, 23955 bcm_field_ip_option_hdr_type_t type) 23956 { 23957 return bcm_esw_field_qualify_OverlayIpv4OptionHdrType(unit, entry, type); 23958 } 23959 #endif 23960 23961 #ifdef BCM_TOMAHAWK3_SUPPORT 23962 int 23963 bcm_tomahawk3_field_qualify_OverlayIpv4OptionHdrType_get( 23964 int unit, 23965 bcm_field_entry_t entry, 23966 bcm_field_ip_option_hdr_type_t *type) 23967 { 23968 return bcm_esw_field_qualify_OverlayIpv4OptionHdrType_get(unit, entry, type); 23969 } 23970 #endif 23971 23972 #ifdef BCM_TOMAHAWK3_SUPPORT 23973 int 23974 bcm_tomahawk3_field_qualify_OverlayIpv6ExtensionHdrType( 23975 int unit, 23976 bcm_field_entry_t entry, 23977 bcm_field_ip_option_hdr_type_t type) 23978 { 23979 return bcm_esw_field_qualify_OverlayIpv6ExtensionHdrType(unit, entry, type); 23980 } 23981 #endif 23982 23983 #ifdef BCM_TOMAHAWK3_SUPPORT 23984 int 23985 bcm_tomahawk3_field_qualify_OverlayIpv6ExtensionHdrType_get( 23986 int unit, 23987 bcm_field_entry_t entry, 23988 bcm_field_ip_option_hdr_type_t *type) 23989 { 23990 return bcm_esw_field_qualify_OverlayIpv6ExtensionHdrType_get(unit, entry, type); 23991 } 23992 #endif 23993 23994 #ifdef BCM_TOMAHAWK3_SUPPORT 23995 int 23996 bcm_tomahawk3_field_qualify_OverlayL2PktType( 23997 int unit, 23998 bcm_field_entry_t entry, 23999 bcm_field_l2_pkt_type_t type) 24000 { 24001 return bcm_esw_field_qualify_OverlayL2PktType(unit, entry, type); 24002 } 24003 #endif 24004 24005 #ifdef BCM_TOMAHAWK3_SUPPORT 24006 int 24007 bcm_tomahawk3_field_qualify_OverlayL2PktType_get( 24008 int unit, 24009 bcm_field_entry_t entry, 24010 bcm_field_l2_pkt_type_t *type) 24011 { 24012 return bcm_esw_field_qualify_OverlayL2PktType_get(unit, entry, type); 24013 } 24014 #endif 24015 24016 #ifdef BCM_TOMAHAWK3_SUPPORT 24017 int 24018 bcm_tomahawk3_field_qualify_OverlayPktType( 24019 int unit, 24020 bcm_field_entry_t entry, 24021 bcm_field_pkt_type_t type) 24022 { 24023 return bcm_esw_field_qualify_OverlayPktType(unit, entry, type); 24024 } 24025 #endif 24026 24027 #ifdef BCM_TOMAHAWK3_SUPPORT 24028 int 24029 bcm_tomahawk3_field_qualify_OverlayPktType_get( 24030 int unit, 24031 bcm_field_entry_t entry, 24032 bcm_field_pkt_type_t *type) 24033 { 24034 return bcm_esw_field_qualify_OverlayPktType_get(unit, entry, type); 24035 } 24036 #endif 24037 24038 #ifdef BCM_TOMAHAWK3_SUPPORT 24039 int 24040 bcm_tomahawk3_field_qualify_OverlayVlanFormat( 24041 int unit, 24042 bcm_field_entry_t entry, 24043 uint8 data, 24044 uint8 mask) 24045 { 24046 return bcm_esw_field_qualify_OverlayVlanFormat(unit, entry, data, mask); 24047 } 24048 #endif 24049 24050 #ifdef BCM_TOMAHAWK3_SUPPORT 24051 int 24052 bcm_tomahawk3_field_qualify_OverlayVlanFormat_get( 24053 int unit, 24054 bcm_field_entry_t entry, 24055 uint8 *data, 24056 uint8 *mask) 24057 { 24058 return bcm_esw_field_qualify_OverlayVlanFormat_get(unit, entry, data, mask); 24059 } 24060 #endif 24061 24062 int 24063 bcm_tomahawk3_field_qualify_PacketIsIEEE1588( 24064 int unit, 24065 bcm_field_entry_t entry, 24066 uint8 data, 24067 uint8 mask) 24068 { 24069 return BCM_E_UNAVAIL; 24070 } 24071 24072 int 24073 bcm_tomahawk3_field_qualify_PacketIsIEEE1588_get( 24074 int unit, 24075 bcm_field_entry_t entry, 24076 uint8 *data, 24077 uint8 *mask) 24078 { 24079 return BCM_E_UNAVAIL; 24080 } 24081 24082 #ifdef BCM_TOMAHAWK3_SUPPORT 24083 int 24084 bcm_tomahawk3_field_qualify_PacketLength( 24085 int unit, 24086 bcm_field_entry_t entry, 24087 uint16 data, 24088 uint16 mask) 24089 { 24090 return bcm_esw_field_qualify_PacketLength(unit, entry, data, mask); 24091 } 24092 #endif 24093 24094 #ifdef BCM_TOMAHAWK3_SUPPORT 24095 int 24096 bcm_tomahawk3_field_qualify_PacketLengthRangeCheck( 24097 int unit, 24098 bcm_field_entry_t entry, 24099 bcm_field_range_t range, 24100 int invert) 24101 { 24102 return bcm_esw_field_qualify_PacketLengthRangeCheck(unit, entry, range, invert); 24103 } 24104 #endif 24105 24106 #ifdef BCM_TOMAHAWK3_SUPPORT 24107 int 24108 bcm_tomahawk3_field_qualify_PacketLengthRangeCheck_get( 24109 int unit, 24110 bcm_field_entry_t entry, 24111 int max_count, 24112 bcm_field_range_t *range, 24113 int *invert, 24114 int *count) 24115 { 24116 return bcm_esw_field_qualify_PacketLengthRangeCheck_get(unit, entry, max_count, range, invert, count); 24117 } 24118 #endif 24119 24120 #ifdef BCM_TOMAHAWK3_SUPPORT 24121 int 24122 bcm_tomahawk3_field_qualify_PacketLength_get( 24123 int unit, 24124 bcm_field_entry_t entry, 24125 uint16 *data, 24126 uint16 *mask) 24127 { 24128 return bcm_esw_field_qualify_PacketLength_get(unit, entry, data, mask); 24129 } 24130 #endif 24131 24132 #ifdef BCM_TOMAHAWK3_SUPPORT 24133 int 24134 bcm_tomahawk3_field_qualify_PacketRes( 24135 int unit, 24136 bcm_field_entry_t entry, 24137 uint32 data, 24138 uint32 mask) 24139 { 24140 return bcm_esw_field_qualify_PacketRes(unit, entry, data, mask); 24141 } 24142 #endif 24143 24144 #ifdef BCM_TOMAHAWK3_SUPPORT 24145 int 24146 bcm_tomahawk3_field_qualify_PacketRes_get( 24147 int unit, 24148 bcm_field_entry_t entry, 24149 uint32 *data, 24150 uint32 *mask) 24151 { 24152 return bcm_esw_field_qualify_PacketRes_get(unit, entry, data, mask); 24153 } 24154 #endif 24155 24156 #ifdef BCM_TOMAHAWK3_SUPPORT 24157 int 24158 bcm_tomahawk3_field_qualify_PacketSize( 24159 int unit, 24160 bcm_field_entry_t entry, 24161 uint32 data, 24162 uint32 mask) 24163 { 24164 return bcm_esw_field_qualify_PacketSize(unit, entry, data, mask); 24165 } 24166 #endif 24167 24168 #ifdef BCM_TOMAHAWK3_SUPPORT 24169 int 24170 bcm_tomahawk3_field_qualify_PacketSize_get( 24171 int unit, 24172 bcm_field_entry_t entry, 24173 uint32 *data, 24174 uint32 *mask) 24175 { 24176 return bcm_esw_field_qualify_PacketSize_get(unit, entry, data, mask); 24177 } 24178 #endif 24179 24180 #ifdef BCM_TOMAHAWK3_SUPPORT 24181 int 24182 bcm_tomahawk3_field_qualify_PacketTerminatedBytes( 24183 int unit, 24184 bcm_field_entry_t entry, 24185 uint32 data, 24186 uint32 mask) 24187 { 24188 return bcm_esw_field_qualify_PacketTerminatedBytes(unit, entry, data, mask); 24189 } 24190 #endif 24191 24192 #ifdef BCM_TOMAHAWK3_SUPPORT 24193 int 24194 bcm_tomahawk3_field_qualify_PacketTerminatedBytes_get( 24195 int unit, 24196 bcm_field_entry_t entry, 24197 uint32 *data, 24198 uint32 *mask) 24199 { 24200 return bcm_esw_field_qualify_PacketTerminatedBytes_get(unit, entry, data, mask); 24201 } 24202 #endif 24203 24204 #ifdef BCM_TOMAHAWK3_SUPPORT 24205 int 24206 bcm_tomahawk3_field_qualify_PimBidirDfStatus( 24207 int unit, 24208 bcm_field_entry_t entry, 24209 uint8 data, 24210 uint8 mask) 24211 { 24212 return bcm_esw_field_qualify_PimBidirDfStatus(unit, entry, data, mask); 24213 } 24214 #endif 24215 24216 #ifdef BCM_TOMAHAWK3_SUPPORT 24217 int 24218 bcm_tomahawk3_field_qualify_PimBidirDfStatus_get( 24219 int unit, 24220 bcm_field_entry_t entry, 24221 uint8 *data, 24222 uint8 *mask) 24223 { 24224 return bcm_esw_field_qualify_PimBidirDfStatus_get(unit, entry, data, mask); 24225 } 24226 #endif 24227 24228 #ifdef BCM_TOMAHAWK3_SUPPORT 24229 int 24230 bcm_tomahawk3_field_qualify_PktDstAddrType( 24231 int unit, 24232 bcm_field_entry_t entry, 24233 uint32 dst_addr_type) 24234 { 24235 return bcm_esw_field_qualify_PktDstAddrType(unit, entry, dst_addr_type); 24236 } 24237 #endif 24238 24239 #ifdef BCM_TOMAHAWK3_SUPPORT 24240 int 24241 bcm_tomahawk3_field_qualify_PktDstAddrType_get( 24242 int unit, 24243 bcm_field_entry_t entry, 24244 uint32 *dst_addr_type) 24245 { 24246 return bcm_esw_field_qualify_PktDstAddrType_get(unit, entry, dst_addr_type); 24247 } 24248 #endif 24249 24250 #ifdef BCM_TOMAHAWK3_SUPPORT 24251 int 24252 bcm_tomahawk3_field_qualify_PktFlowType( 24253 int unit, 24254 bcm_field_entry_t entry, 24255 bcm_field_pkt_flow_type_t type) 24256 { 24257 return bcm_esw_field_qualify_PktFlowType(unit, entry, type); 24258 } 24259 #endif 24260 24261 #ifdef BCM_TOMAHAWK3_SUPPORT 24262 int 24263 bcm_tomahawk3_field_qualify_PktFlowType_get( 24264 int unit, 24265 bcm_field_entry_t entry, 24266 bcm_field_pkt_flow_type_t *type) 24267 { 24268 return bcm_esw_field_qualify_PktFlowType_get(unit, entry, type); 24269 } 24270 #endif 24271 24272 #ifdef BCM_TOMAHAWK3_SUPPORT 24273 int 24274 bcm_tomahawk3_field_qualify_PktInnerDstAddrType( 24275 int unit, 24276 bcm_field_entry_t entry, 24277 uint32 dst_addr_type) 24278 { 24279 return bcm_esw_field_qualify_PktInnerDstAddrType(unit, entry, dst_addr_type); 24280 } 24281 #endif 24282 24283 #ifdef BCM_TOMAHAWK3_SUPPORT 24284 int 24285 bcm_tomahawk3_field_qualify_PktInnerDstAddrType_get( 24286 int unit, 24287 bcm_field_entry_t entry, 24288 uint32 *dst_addr_type) 24289 { 24290 return bcm_esw_field_qualify_PktInnerDstAddrType_get(unit, entry, dst_addr_type); 24291 } 24292 #endif 24293 24294 #ifdef BCM_TOMAHAWK3_SUPPORT 24295 int 24296 bcm_tomahawk3_field_qualify_PktIsVisible( 24297 int unit, 24298 bcm_field_entry_t entry, 24299 uint8 data, 24300 uint8 mask) 24301 { 24302 return bcm_esw_field_qualify_PktIsVisible(unit, entry, data, mask); 24303 } 24304 #endif 24305 24306 #ifdef BCM_TOMAHAWK3_SUPPORT 24307 int 24308 bcm_tomahawk3_field_qualify_PktIsVisible_get( 24309 int unit, 24310 bcm_field_entry_t entry, 24311 uint8 *data, 24312 uint8 *mask) 24313 { 24314 return bcm_esw_field_qualify_PktIsVisible_get(unit, entry, data, mask); 24315 } 24316 #endif 24317 24318 #ifdef BCM_TOMAHAWK3_SUPPORT 24319 int 24320 bcm_tomahawk3_field_qualify_PktType( 24321 int unit, 24322 bcm_field_entry_t entry, 24323 bcm_field_pkt_type_t type) 24324 { 24325 return bcm_esw_field_qualify_PktType(unit, entry, type); 24326 } 24327 #endif 24328 24329 #ifdef BCM_TOMAHAWK3_SUPPORT 24330 int 24331 bcm_tomahawk3_field_qualify_PktType_get( 24332 int unit, 24333 bcm_field_entry_t entry, 24334 bcm_field_pkt_type_t *type) 24335 { 24336 return bcm_esw_field_qualify_PktType_get(unit, entry, type); 24337 } 24338 #endif 24339 24340 #ifdef BCM_TOMAHAWK3_SUPPORT 24341 int 24342 bcm_tomahawk3_field_qualify_PolicerIntPrio( 24343 int unit, 24344 bcm_field_entry_t entry, 24345 uint8 data, 24346 uint8 mask) 24347 { 24348 return bcm_esw_field_qualify_PolicerIntPrio(unit, entry, data, mask); 24349 } 24350 #endif 24351 24352 #ifdef BCM_TOMAHAWK3_SUPPORT 24353 int 24354 bcm_tomahawk3_field_qualify_PolicerIntPrio_get( 24355 int unit, 24356 bcm_field_entry_t entry, 24357 uint8 *data, 24358 uint8 *mask) 24359 { 24360 return bcm_esw_field_qualify_PolicerIntPrio_get(unit, entry, data, mask); 24361 } 24362 #endif 24363 24364 #ifdef BCM_TOMAHAWK3_SUPPORT 24365 int 24366 bcm_tomahawk3_field_qualify_PortOrientation( 24367 int unit, 24368 bcm_field_entry_t entry, 24369 uint8 data, 24370 uint8 mask) 24371 { 24372 return bcm_esw_field_qualify_PortOrientation(unit, entry, data, mask); 24373 } 24374 #endif 24375 24376 #ifdef BCM_TOMAHAWK3_SUPPORT 24377 int 24378 bcm_tomahawk3_field_qualify_PortOrientation_get( 24379 int unit, 24380 bcm_field_entry_t entry, 24381 uint8 *data, 24382 uint8 *mask) 24383 { 24384 return bcm_esw_field_qualify_PortOrientation_get(unit, entry, data, mask); 24385 } 24386 #endif 24387 24388 #ifdef BCM_TOMAHAWK3_SUPPORT 24389 int 24390 bcm_tomahawk3_field_qualify_PreemptablePacket( 24391 int unit, 24392 bcm_field_entry_t entry, 24393 uint8 data, 24394 uint8 mask) 24395 { 24396 return bcm_esw_field_qualify_PreemptablePacket(unit, entry, data, mask); 24397 } 24398 #endif 24399 24400 #ifdef BCM_TOMAHAWK3_SUPPORT 24401 int 24402 bcm_tomahawk3_field_qualify_PreemptablePacket_get( 24403 int unit, 24404 bcm_field_entry_t entry, 24405 uint8 *data, 24406 uint8 *mask) 24407 { 24408 return bcm_esw_field_qualify_PreemptablePacket_get(unit, entry, data, mask); 24409 } 24410 #endif 24411 24412 int 24413 bcm_tomahawk3_field_qualify_PreselId( 24414 int unit, 24415 bcm_field_entry_t entry, 24416 uint32 data, 24417 uint32 mask) 24418 { 24419 return BCM_E_UNAVAIL; 24420 } 24421 24422 int 24423 bcm_tomahawk3_field_qualify_PreselId_get( 24424 int unit, 24425 bcm_field_entry_t entry, 24426 uint32 *data, 24427 uint32 *mask) 24428 { 24429 return BCM_E_UNAVAIL; 24430 } 24431 24432 #ifdef BCM_TOMAHAWK3_SUPPORT 24433 int 24434 bcm_tomahawk3_field_qualify_Ptch( 24435 int unit, 24436 bcm_field_entry_t entry, 24437 uint8 data, 24438 uint8 mask) 24439 { 24440 return bcm_esw_field_qualify_Ptch(unit, entry, data, mask); 24441 } 24442 #endif 24443 24444 #ifdef BCM_TOMAHAWK3_SUPPORT 24445 int 24446 bcm_tomahawk3_field_qualify_Ptch_get( 24447 int unit, 24448 bcm_field_entry_t entry, 24449 uint8 *data, 24450 uint8 *mask) 24451 { 24452 return bcm_esw_field_qualify_Ptch_get(unit, entry, data, mask); 24453 } 24454 #endif 24455 24456 #ifdef BCM_TOMAHAWK3_SUPPORT 24457 int 24458 bcm_tomahawk3_field_qualify_RangeCheck( 24459 int unit, 24460 bcm_field_entry_t entry, 24461 bcm_field_range_t range, 24462 int invert) 24463 { 24464 return bcm_esw_field_qualify_RangeCheck(unit, entry, range, invert); 24465 } 24466 #endif 24467 24468 #ifdef BCM_TOMAHAWK3_SUPPORT 24469 int 24470 bcm_tomahawk3_field_qualify_RangeCheckGroup( 24471 int unit, 24472 bcm_field_entry_t entry, 24473 uint8 data, 24474 uint8 mask) 24475 { 24476 return bcm_esw_field_qualify_RangeCheckGroup(unit, entry, data, mask); 24477 } 24478 #endif 24479 24480 #ifdef BCM_TOMAHAWK3_SUPPORT 24481 int 24482 bcm_tomahawk3_field_qualify_RangeCheckGroup_get( 24483 int unit, 24484 bcm_field_entry_t entry, 24485 uint8 *data, 24486 uint8 *mask) 24487 { 24488 return bcm_esw_field_qualify_RangeCheckGroup_get(unit, entry, data, mask); 24489 } 24490 #endif 24491 24492 #ifdef BCM_TOMAHAWK3_SUPPORT 24493 int 24494 bcm_tomahawk3_field_qualify_RangeCheck_get( 24495 int unit, 24496 bcm_field_entry_t entry, 24497 int max_count, 24498 bcm_field_range_t *range, 24499 int *invert, 24500 int *count) 24501 { 24502 return bcm_esw_field_qualify_RangeCheck_get(unit, entry, max_count, range, invert, count); 24503 } 24504 #endif 24505 24506 #ifdef BCM_TOMAHAWK3_SUPPORT 24507 int 24508 bcm_tomahawk3_field_qualify_RecoverableDrop( 24509 int unit, 24510 bcm_field_entry_t entry, 24511 uint8 data, 24512 uint8 mask) 24513 { 24514 return bcm_esw_field_qualify_RecoverableDrop(unit, entry, data, mask); 24515 } 24516 #endif 24517 24518 #ifdef BCM_TOMAHAWK3_SUPPORT 24519 int 24520 bcm_tomahawk3_field_qualify_RecoverableDrop_get( 24521 int unit, 24522 bcm_field_entry_t entry, 24523 uint8 *data, 24524 uint8 *mask) 24525 { 24526 return bcm_esw_field_qualify_RecoverableDrop_get(unit, entry, data, mask); 24527 } 24528 #endif 24529 24530 #ifdef BCM_TOMAHAWK3_SUPPORT 24531 int 24532 bcm_tomahawk3_field_qualify_RepCopy( 24533 int unit, 24534 bcm_field_entry_t entry, 24535 uint8 data, 24536 uint8 mask) 24537 { 24538 return bcm_esw_field_qualify_RepCopy(unit, entry, data, mask); 24539 } 24540 #endif 24541 24542 #ifdef BCM_TOMAHAWK3_SUPPORT 24543 int 24544 bcm_tomahawk3_field_qualify_RepCopy_get( 24545 int unit, 24546 bcm_field_entry_t entry, 24547 uint8 *data, 24548 uint8 *mask) 24549 { 24550 return bcm_esw_field_qualify_RepCopy_get(unit, entry, data, mask); 24551 } 24552 #endif 24553 24554 #ifdef BCM_TOMAHAWK3_SUPPORT 24555 int 24556 bcm_tomahawk3_field_qualify_ReplicantAny( 24557 int unit, 24558 bcm_field_entry_t entry, 24559 uint8 data, 24560 uint8 mask) 24561 { 24562 return bcm_esw_field_qualify_ReplicantAny(unit, entry, data, mask); 24563 } 24564 #endif 24565 24566 #ifdef BCM_TOMAHAWK3_SUPPORT 24567 int 24568 bcm_tomahawk3_field_qualify_ReplicantAny_get( 24569 int unit, 24570 bcm_field_entry_t entry, 24571 uint8 *data, 24572 uint8 *mask) 24573 { 24574 return bcm_esw_field_qualify_ReplicantAny_get(unit, entry, data, mask); 24575 } 24576 #endif 24577 24578 #ifdef BCM_TOMAHAWK3_SUPPORT 24579 int 24580 bcm_tomahawk3_field_qualify_ReplicantFirst( 24581 int unit, 24582 bcm_field_entry_t entry, 24583 uint8 data, 24584 uint8 mask) 24585 { 24586 return bcm_esw_field_qualify_ReplicantFirst(unit, entry, data, mask); 24587 } 24588 #endif 24589 24590 #ifdef BCM_TOMAHAWK3_SUPPORT 24591 int 24592 bcm_tomahawk3_field_qualify_ReplicantFirst_get( 24593 int unit, 24594 bcm_field_entry_t entry, 24595 uint8 *data, 24596 uint8 *mask) 24597 { 24598 return bcm_esw_field_qualify_ReplicantFirst_get(unit, entry, data, mask); 24599 } 24600 #endif 24601 24602 #ifdef BCM_TOMAHAWK3_SUPPORT 24603 int 24604 bcm_tomahawk3_field_qualify_RoceBthDstQueuePair( 24605 int unit, 24606 bcm_field_entry_t entry, 24607 uint32 data, 24608 uint32 mask) 24609 { 24610 return bcm_esw_field_qualify_RoceBthDstQueuePair(unit, entry, data, mask); 24611 } 24612 #endif 24613 24614 #ifdef BCM_TOMAHAWK3_SUPPORT 24615 int 24616 bcm_tomahawk3_field_qualify_RoceBthDstQueuePair_get( 24617 int unit, 24618 bcm_field_entry_t entry, 24619 uint32 *data, 24620 uint32 *mask) 24621 { 24622 return bcm_esw_field_qualify_RoceBthDstQueuePair_get(unit, entry, data, mask); 24623 } 24624 #endif 24625 24626 #ifdef BCM_TOMAHAWK3_SUPPORT 24627 int 24628 bcm_tomahawk3_field_qualify_RoceBthFlags( 24629 int unit, 24630 bcm_field_entry_t entry, 24631 uint8 data, 24632 uint8 mask) 24633 { 24634 return bcm_esw_field_qualify_RoceBthFlags(unit, entry, data, mask); 24635 } 24636 #endif 24637 24638 #ifdef BCM_TOMAHAWK3_SUPPORT 24639 int 24640 bcm_tomahawk3_field_qualify_RoceBthFlags_get( 24641 int unit, 24642 bcm_field_entry_t entry, 24643 uint8 *data, 24644 uint8 *mask) 24645 { 24646 return bcm_esw_field_qualify_RoceBthFlags_get(unit, entry, data, mask); 24647 } 24648 #endif 24649 24650 #ifdef BCM_TOMAHAWK3_SUPPORT 24651 int 24652 bcm_tomahawk3_field_qualify_RoceBthOpcode( 24653 int unit, 24654 bcm_field_entry_t entry, 24655 uint8 data, 24656 uint8 mask) 24657 { 24658 return bcm_esw_field_qualify_RoceBthOpcode(unit, entry, data, mask); 24659 } 24660 #endif 24661 24662 #ifdef BCM_TOMAHAWK3_SUPPORT 24663 int 24664 bcm_tomahawk3_field_qualify_RoceBthOpcode_get( 24665 int unit, 24666 bcm_field_entry_t entry, 24667 uint8 *data, 24668 uint8 *mask) 24669 { 24670 return bcm_esw_field_qualify_RoceBthOpcode_get(unit, entry, data, mask); 24671 } 24672 #endif 24673 24674 #ifdef BCM_TOMAHAWK3_SUPPORT 24675 int 24676 bcm_tomahawk3_field_qualify_RoceBthPartitionKey( 24677 int unit, 24678 bcm_field_entry_t entry, 24679 uint16 data, 24680 uint16 mask) 24681 { 24682 return bcm_esw_field_qualify_RoceBthPartitionKey(unit, entry, data, mask); 24683 } 24684 #endif 24685 24686 #ifdef BCM_TOMAHAWK3_SUPPORT 24687 int 24688 bcm_tomahawk3_field_qualify_RoceBthPartitionKey_get( 24689 int unit, 24690 bcm_field_entry_t entry, 24691 uint16 *data, 24692 uint16 *mask) 24693 { 24694 return bcm_esw_field_qualify_RoceBthPartitionKey_get(unit, entry, data, mask); 24695 } 24696 #endif 24697 24698 #ifdef BCM_TOMAHAWK3_SUPPORT 24699 int 24700 bcm_tomahawk3_field_qualify_RoceVer1Pkt( 24701 int unit, 24702 bcm_field_entry_t entry, 24703 uint8 data, 24704 uint8 mask) 24705 { 24706 return bcm_esw_field_qualify_RoceVer1Pkt(unit, entry, data, mask); 24707 } 24708 #endif 24709 24710 #ifdef BCM_TOMAHAWK3_SUPPORT 24711 int 24712 bcm_tomahawk3_field_qualify_RoceVer1Pkt_get( 24713 int unit, 24714 bcm_field_entry_t entry, 24715 uint8 *data, 24716 uint8 *mask) 24717 { 24718 return bcm_esw_field_qualify_RoceVer1Pkt_get(unit, entry, data, mask); 24719 } 24720 #endif 24721 24722 #ifdef BCM_TOMAHAWK3_SUPPORT 24723 int 24724 bcm_tomahawk3_field_qualify_RoceVer2Pkt( 24725 int unit, 24726 bcm_field_entry_t entry, 24727 uint8 data, 24728 uint8 mask) 24729 { 24730 return bcm_esw_field_qualify_RoceVer2Pkt(unit, entry, data, mask); 24731 } 24732 #endif 24733 24734 #ifdef BCM_TOMAHAWK3_SUPPORT 24735 int 24736 bcm_tomahawk3_field_qualify_RoceVer2Pkt_get( 24737 int unit, 24738 bcm_field_entry_t entry, 24739 uint8 *data, 24740 uint8 *mask) 24741 { 24742 return bcm_esw_field_qualify_RoceVer2Pkt_get(unit, entry, data, mask); 24743 } 24744 #endif 24745 24746 #ifdef BCM_TOMAHAWK3_SUPPORT 24747 int 24748 bcm_tomahawk3_field_qualify_RoeFrameType( 24749 int unit, 24750 bcm_field_entry_t entry, 24751 bcm_field_roe_frame_type_t data) 24752 { 24753 return bcm_esw_field_qualify_RoeFrameType(unit, entry, data); 24754 } 24755 #endif 24756 24757 #ifdef BCM_TOMAHAWK3_SUPPORT 24758 int 24759 bcm_tomahawk3_field_qualify_RoeFrameType_get( 24760 int unit, 24761 bcm_field_entry_t entry, 24762 bcm_field_roe_frame_type_t *data) 24763 { 24764 return bcm_esw_field_qualify_RoeFrameType_get(unit, entry, data); 24765 } 24766 #endif 24767 24768 #ifdef BCM_TOMAHAWK3_SUPPORT 24769 int 24770 bcm_tomahawk3_field_qualify_RouterAlertLabelValid( 24771 int unit, 24772 bcm_field_entry_t entry, 24773 uint8 data, 24774 uint8 mask) 24775 { 24776 return bcm_esw_field_qualify_RouterAlertLabelValid(unit, entry, data, mask); 24777 } 24778 #endif 24779 24780 #ifdef BCM_TOMAHAWK3_SUPPORT 24781 int 24782 bcm_tomahawk3_field_qualify_RouterAlertLabelValid_get( 24783 int unit, 24784 bcm_field_entry_t entry, 24785 uint8 *data, 24786 uint8 *mask) 24787 { 24788 return bcm_esw_field_qualify_RouterAlertLabelValid_get(unit, entry, data, mask); 24789 } 24790 #endif 24791 24792 #ifdef BCM_TOMAHAWK3_SUPPORT 24793 int 24794 bcm_tomahawk3_field_qualify_Rtag7AHashLower( 24795 int unit, 24796 bcm_field_entry_t entry, 24797 uint16 data, 24798 uint16 mask) 24799 { 24800 return bcm_esw_field_qualify_Rtag7AHashLower(unit, entry, data, mask); 24801 } 24802 #endif 24803 24804 #ifdef BCM_TOMAHAWK3_SUPPORT 24805 int 24806 bcm_tomahawk3_field_qualify_Rtag7AHashLower_get( 24807 int unit, 24808 bcm_field_entry_t entry, 24809 uint16 *data, 24810 uint16 *mask) 24811 { 24812 return bcm_esw_field_qualify_Rtag7AHashLower_get(unit, entry, data, mask); 24813 } 24814 #endif 24815 24816 #ifdef BCM_TOMAHAWK3_SUPPORT 24817 int 24818 bcm_tomahawk3_field_qualify_Rtag7AHashUpper( 24819 int unit, 24820 bcm_field_entry_t entry, 24821 uint16 data, 24822 uint16 mask) 24823 { 24824 return bcm_esw_field_qualify_Rtag7AHashUpper(unit, entry, data, mask); 24825 } 24826 #endif 24827 24828 #ifdef BCM_TOMAHAWK3_SUPPORT 24829 int 24830 bcm_tomahawk3_field_qualify_Rtag7AHashUpper_get( 24831 int unit, 24832 bcm_field_entry_t entry, 24833 uint16 *data, 24834 uint16 *mask) 24835 { 24836 return bcm_esw_field_qualify_Rtag7AHashUpper_get(unit, entry, data, mask); 24837 } 24838 #endif 24839 24840 #ifdef BCM_TOMAHAWK3_SUPPORT 24841 int 24842 bcm_tomahawk3_field_qualify_Rtag7BHashLower( 24843 int unit, 24844 bcm_field_entry_t entry, 24845 uint16 data, 24846 uint16 mask) 24847 { 24848 return bcm_esw_field_qualify_Rtag7BHashLower(unit, entry, data, mask); 24849 } 24850 #endif 24851 24852 #ifdef BCM_TOMAHAWK3_SUPPORT 24853 int 24854 bcm_tomahawk3_field_qualify_Rtag7BHashLower_get( 24855 int unit, 24856 bcm_field_entry_t entry, 24857 uint16 *data, 24858 uint16 *mask) 24859 { 24860 return bcm_esw_field_qualify_Rtag7BHashLower_get(unit, entry, data, mask); 24861 } 24862 #endif 24863 24864 #ifdef BCM_TOMAHAWK3_SUPPORT 24865 int 24866 bcm_tomahawk3_field_qualify_Rtag7BHashUpper( 24867 int unit, 24868 bcm_field_entry_t entry, 24869 uint16 data, 24870 uint16 mask) 24871 { 24872 return bcm_esw_field_qualify_Rtag7BHashUpper(unit, entry, data, mask); 24873 } 24874 #endif 24875 24876 #ifdef BCM_TOMAHAWK3_SUPPORT 24877 int 24878 bcm_tomahawk3_field_qualify_Rtag7BHashUpper_get( 24879 int unit, 24880 bcm_field_entry_t entry, 24881 uint16 *data, 24882 uint16 *mask) 24883 { 24884 return bcm_esw_field_qualify_Rtag7BHashUpper_get(unit, entry, data, mask); 24885 } 24886 #endif 24887 24888 #ifdef BCM_TOMAHAWK3_SUPPORT 24889 int 24890 bcm_tomahawk3_field_qualify_RxTrapCode( 24891 int unit, 24892 bcm_field_entry_t entry, 24893 bcm_rx_trap_t data) 24894 { 24895 return bcm_esw_field_qualify_RxTrapCode(unit, entry, data); 24896 } 24897 #endif 24898 24899 int 24900 bcm_tomahawk3_field_qualify_RxTrapCode32( 24901 int unit, 24902 bcm_field_entry_t entry, 24903 uint32 data, 24904 uint32 mask) 24905 { 24906 return BCM_E_UNAVAIL; 24907 } 24908 24909 int 24910 bcm_tomahawk3_field_qualify_RxTrapCode32_get( 24911 int unit, 24912 bcm_field_entry_t entry, 24913 uint32 *data, 24914 uint32 *mask) 24915 { 24916 return BCM_E_UNAVAIL; 24917 } 24918 24919 int 24920 bcm_tomahawk3_field_qualify_RxTrapCodeForSnoop( 24921 int unit, 24922 bcm_field_entry_t entry, 24923 uint32 data, 24924 uint32 mask) 24925 { 24926 return BCM_E_UNAVAIL; 24927 } 24928 24929 int 24930 bcm_tomahawk3_field_qualify_RxTrapCodeForSnoop_get( 24931 int unit, 24932 bcm_field_entry_t entry, 24933 uint32 *data, 24934 uint32 *mask) 24935 { 24936 return BCM_E_UNAVAIL; 24937 } 24938 24939 #ifdef BCM_TOMAHAWK3_SUPPORT 24940 int 24941 bcm_tomahawk3_field_qualify_RxTrapCode_get( 24942 int unit, 24943 bcm_field_entry_t entry, 24944 bcm_rx_trap_t *data) 24945 { 24946 return bcm_esw_field_qualify_RxTrapCode_get(unit, entry, data); 24947 } 24948 #endif 24949 24950 #ifdef BCM_TOMAHAWK3_SUPPORT 24951 int 24952 bcm_tomahawk3_field_qualify_RxTrapData( 24953 int unit, 24954 bcm_field_entry_t entry, 24955 uint32 data, 24956 uint32 mask) 24957 { 24958 return bcm_esw_field_qualify_RxTrapData(unit, entry, data, mask); 24959 } 24960 #endif 24961 24962 #ifdef BCM_TOMAHAWK3_SUPPORT 24963 int 24964 bcm_tomahawk3_field_qualify_RxTrapData_get( 24965 int unit, 24966 bcm_field_entry_t entry, 24967 uint32 *data, 24968 uint32 *mask) 24969 { 24970 return bcm_esw_field_qualify_RxTrapData_get(unit, entry, data, mask); 24971 } 24972 #endif 24973 24974 int 24975 bcm_tomahawk3_field_qualify_RxTrapStrength( 24976 int unit, 24977 bcm_field_entry_t entry, 24978 uint32 data, 24979 uint32 mask) 24980 { 24981 return BCM_E_UNAVAIL; 24982 } 24983 24984 int 24985 bcm_tomahawk3_field_qualify_RxTrapStrength_get( 24986 int unit, 24987 bcm_field_entry_t entry, 24988 uint32 *data, 24989 uint32 *mask) 24990 { 24991 return BCM_E_UNAVAIL; 24992 } 24993 24994 #ifdef BCM_TOMAHAWK3_SUPPORT 24995 int 24996 bcm_tomahawk3_field_qualify_SRDuplicate( 24997 int unit, 24998 bcm_field_entry_t entry, 24999 uint8 data) 25000 { 25001 return bcm_esw_field_qualify_SRDuplicate(unit, entry, data); 25002 } 25003 #endif 25004 25005 #ifdef BCM_TOMAHAWK3_SUPPORT 25006 int 25007 bcm_tomahawk3_field_qualify_SRDuplicate_get( 25008 int unit, 25009 bcm_field_entry_t entry, 25010 uint8 *data) 25011 { 25012 return bcm_esw_field_qualify_SRDuplicate_get(unit, entry, data); 25013 } 25014 #endif 25015 25016 #ifdef BCM_TOMAHAWK3_SUPPORT 25017 int 25018 bcm_tomahawk3_field_qualify_SRError( 25019 int unit, 25020 bcm_field_entry_t entry, 25021 uint32 data, 25022 uint32 mask) 25023 { 25024 return bcm_esw_field_qualify_SRError(unit, entry, data, mask); 25025 } 25026 #endif 25027 25028 #ifdef BCM_TOMAHAWK3_SUPPORT 25029 int 25030 bcm_tomahawk3_field_qualify_SRError_get( 25031 int unit, 25032 bcm_field_entry_t entry, 25033 uint32 *data, 25034 uint32 *mask) 25035 { 25036 return bcm_esw_field_qualify_SRError_get(unit, entry, data, mask); 25037 } 25038 #endif 25039 25040 #ifdef BCM_TOMAHAWK3_SUPPORT 25041 int 25042 bcm_tomahawk3_field_qualify_SRFlowId( 25043 int unit, 25044 bcm_field_entry_t entry, 25045 uint32 data, 25046 uint32 mask) 25047 { 25048 return bcm_esw_field_qualify_SRFlowId(unit, entry, data, mask); 25049 } 25050 #endif 25051 25052 #ifdef BCM_TOMAHAWK3_SUPPORT 25053 int 25054 bcm_tomahawk3_field_qualify_SRFlowId_get( 25055 int unit, 25056 bcm_field_entry_t entry, 25057 uint32 *data, 25058 uint32 *mask) 25059 { 25060 return bcm_esw_field_qualify_SRFlowId_get(unit, entry, data, mask); 25061 } 25062 #endif 25063 25064 #ifdef BCM_TOMAHAWK3_SUPPORT 25065 int 25066 bcm_tomahawk3_field_qualify_SRLanId( 25067 int unit, 25068 bcm_field_entry_t entry, 25069 int lan_id) 25070 { 25071 return bcm_esw_field_qualify_SRLanId(unit, entry, lan_id); 25072 } 25073 #endif 25074 25075 #ifdef BCM_TOMAHAWK3_SUPPORT 25076 int 25077 bcm_tomahawk3_field_qualify_SRLanId_get( 25078 int unit, 25079 bcm_field_entry_t entry, 25080 int *lan_id) 25081 { 25082 return bcm_esw_field_qualify_SRLanId_get(unit, entry, lan_id); 25083 } 25084 #endif 25085 25086 #ifdef BCM_TOMAHAWK3_SUPPORT 25087 int 25088 bcm_tomahawk3_field_qualify_SRNetId( 25089 int unit, 25090 bcm_field_entry_t entry, 25091 int net_id) 25092 { 25093 return bcm_esw_field_qualify_SRNetId(unit, entry, net_id); 25094 } 25095 #endif 25096 25097 #ifdef BCM_TOMAHAWK3_SUPPORT 25098 int 25099 bcm_tomahawk3_field_qualify_SRNetIdMatched( 25100 int unit, 25101 bcm_field_entry_t entry, 25102 uint8 data) 25103 { 25104 return bcm_esw_field_qualify_SRNetIdMatched(unit, entry, data); 25105 } 25106 #endif 25107 25108 #ifdef BCM_TOMAHAWK3_SUPPORT 25109 int 25110 bcm_tomahawk3_field_qualify_SRNetIdMatched_get( 25111 int unit, 25112 bcm_field_entry_t entry, 25113 uint8 *data) 25114 { 25115 return bcm_esw_field_qualify_SRNetIdMatched_get(unit, entry, data); 25116 } 25117 #endif 25118 25119 #ifdef BCM_TOMAHAWK3_SUPPORT 25120 int 25121 bcm_tomahawk3_field_qualify_SRNetId_get( 25122 int unit, 25123 bcm_field_entry_t entry, 25124 int *net_id) 25125 { 25126 return bcm_esw_field_qualify_SRNetId_get(unit, entry, net_id); 25127 } 25128 #endif 25129 25130 #ifdef BCM_TOMAHAWK3_SUPPORT 25131 int 25132 bcm_tomahawk3_field_qualify_SRSrcNodeIsSan( 25133 int unit, 25134 bcm_field_entry_t entry, 25135 uint8 data) 25136 { 25137 return bcm_esw_field_qualify_SRSrcNodeIsSan(unit, entry, data); 25138 } 25139 #endif 25140 25141 #ifdef BCM_TOMAHAWK3_SUPPORT 25142 int 25143 bcm_tomahawk3_field_qualify_SRSrcNodeIsSan_get( 25144 int unit, 25145 bcm_field_entry_t entry, 25146 uint8 *data) 25147 { 25148 return bcm_esw_field_qualify_SRSrcNodeIsSan_get(unit, entry, data); 25149 } 25150 #endif 25151 25152 #ifdef BCM_TOMAHAWK3_SUPPORT 25153 int 25154 bcm_tomahawk3_field_qualify_SRSupervisionType( 25155 int unit, 25156 bcm_field_entry_t entry, 25157 bcm_field_sr_supervision_type_t type) 25158 { 25159 return bcm_esw_field_qualify_SRSupervisionType(unit, entry, type); 25160 } 25161 #endif 25162 25163 #ifdef BCM_TOMAHAWK3_SUPPORT 25164 int 25165 bcm_tomahawk3_field_qualify_SRSupervisionType_get( 25166 int unit, 25167 bcm_field_entry_t entry, 25168 bcm_field_sr_supervision_type_t *type) 25169 { 25170 return bcm_esw_field_qualify_SRSupervisionType_get(unit, entry, type); 25171 } 25172 #endif 25173 25174 #ifdef BCM_TOMAHAWK3_SUPPORT 25175 int 25176 bcm_tomahawk3_field_qualify_SRTagType( 25177 int unit, 25178 bcm_field_entry_t entry, 25179 bcm_field_sr_tag_type_t type) 25180 { 25181 return bcm_esw_field_qualify_SRTagType(unit, entry, type); 25182 } 25183 #endif 25184 25185 #ifdef BCM_TOMAHAWK3_SUPPORT 25186 int 25187 bcm_tomahawk3_field_qualify_SRTagType_get( 25188 int unit, 25189 bcm_field_entry_t entry, 25190 bcm_field_sr_tag_type_t *type) 25191 { 25192 return bcm_esw_field_qualify_SRTagType_get(unit, entry, type); 25193 } 25194 #endif 25195 25196 #ifdef BCM_TOMAHAWK3_SUPPORT 25197 int 25198 bcm_tomahawk3_field_qualify_Snap( 25199 int unit, 25200 bcm_field_entry_t entry, 25201 bcm_field_snap_header_t data, 25202 bcm_field_snap_header_t mask) 25203 { 25204 return bcm_esw_field_qualify_Snap(unit, entry, data, mask); 25205 } 25206 #endif 25207 25208 #ifdef BCM_TOMAHAWK3_SUPPORT 25209 int 25210 bcm_tomahawk3_field_qualify_Snap_get( 25211 int unit, 25212 bcm_field_entry_t entry, 25213 bcm_field_snap_header_t *data, 25214 bcm_field_snap_header_t *mask) 25215 { 25216 return bcm_esw_field_qualify_Snap_get(unit, entry, data, mask); 25217 } 25218 #endif 25219 25220 #ifdef BCM_TOMAHAWK3_SUPPORT 25221 int 25222 bcm_tomahawk3_field_qualify_SnoopCopy( 25223 int unit, 25224 bcm_field_entry_t entry, 25225 uint8 data, 25226 uint8 mask) 25227 { 25228 return bcm_esw_field_qualify_SnoopCopy(unit, entry, data, mask); 25229 } 25230 #endif 25231 25232 #ifdef BCM_TOMAHAWK3_SUPPORT 25233 int 25234 bcm_tomahawk3_field_qualify_SnoopCopy_get( 25235 int unit, 25236 bcm_field_entry_t entry, 25237 uint8 *data, 25238 uint8 *mask) 25239 { 25240 return bcm_esw_field_qualify_SnoopCopy_get(unit, entry, data, mask); 25241 } 25242 #endif 25243 25244 #ifdef BCM_TOMAHAWK3_SUPPORT 25245 int 25246 bcm_tomahawk3_field_qualify_SourceGportBitmap( 25247 int unit, 25248 bcm_field_entry_t entry, 25249 bcm_pbmp_t data, 25250 bcm_pbmp_t mask) 25251 { 25252 return bcm_esw_field_qualify_SourceGportBitmap(unit, entry, data, mask); 25253 } 25254 #endif 25255 25256 #ifdef BCM_TOMAHAWK3_SUPPORT 25257 int 25258 bcm_tomahawk3_field_qualify_SourceGportBitmap_get( 25259 int unit, 25260 bcm_field_entry_t entry, 25261 bcm_pbmp_t *data, 25262 bcm_pbmp_t *mask) 25263 { 25264 return bcm_esw_field_qualify_SourceGportBitmap_get(unit, entry, data, mask); 25265 } 25266 #endif 25267 25268 #ifdef BCM_TOMAHAWK3_SUPPORT 25269 int 25270 bcm_tomahawk3_field_qualify_SrcClassField( 25271 int unit, 25272 bcm_field_entry_t entry, 25273 uint32 data, 25274 uint32 mask) 25275 { 25276 return bcm_esw_field_qualify_SrcClassField(unit, entry, data, mask); 25277 } 25278 #endif 25279 25280 #ifdef BCM_TOMAHAWK3_SUPPORT 25281 int 25282 bcm_tomahawk3_field_qualify_SrcClassField_get( 25283 int unit, 25284 bcm_field_entry_t entry, 25285 uint32 *data, 25286 uint32 *mask) 25287 { 25288 return bcm_esw_field_qualify_SrcClassField_get(unit, entry, data, mask); 25289 } 25290 #endif 25291 25292 #ifdef BCM_TOMAHAWK3_SUPPORT 25293 int 25294 bcm_tomahawk3_field_qualify_SrcClassL2( 25295 int unit, 25296 bcm_field_entry_t entry, 25297 uint32 data, 25298 uint32 mask) 25299 { 25300 return bcm_esw_field_qualify_SrcClassL2(unit, entry, data, mask); 25301 } 25302 #endif 25303 25304 #ifdef BCM_TOMAHAWK3_SUPPORT 25305 int 25306 bcm_tomahawk3_field_qualify_SrcClassL2_get( 25307 int unit, 25308 bcm_field_entry_t entry, 25309 uint32 *data, 25310 uint32 *mask) 25311 { 25312 return bcm_esw_field_qualify_SrcClassL2_get(unit, entry, data, mask); 25313 } 25314 #endif 25315 25316 #ifdef BCM_TOMAHAWK3_SUPPORT 25317 int 25318 bcm_tomahawk3_field_qualify_SrcClassL3( 25319 int unit, 25320 bcm_field_entry_t entry, 25321 uint32 data, 25322 uint32 mask) 25323 { 25324 return bcm_esw_field_qualify_SrcClassL3(unit, entry, data, mask); 25325 } 25326 #endif 25327 25328 #ifdef BCM_TOMAHAWK3_SUPPORT 25329 int 25330 bcm_tomahawk3_field_qualify_SrcClassL3_get( 25331 int unit, 25332 bcm_field_entry_t entry, 25333 uint32 *data, 25334 uint32 *mask) 25335 { 25336 return bcm_esw_field_qualify_SrcClassL3_get(unit, entry, data, mask); 25337 } 25338 #endif 25339 25340 #ifdef BCM_TOMAHAWK3_SUPPORT 25341 int 25342 bcm_tomahawk3_field_qualify_SrcGport( 25343 int unit, 25344 bcm_field_entry_t entry, 25345 bcm_gport_t port_id) 25346 { 25347 return bcm_esw_field_qualify_SrcGport(unit, entry, port_id); 25348 } 25349 #endif 25350 25351 #ifdef BCM_TOMAHAWK3_SUPPORT 25352 int 25353 bcm_tomahawk3_field_qualify_SrcGport_get( 25354 int unit, 25355 bcm_field_entry_t entry, 25356 bcm_gport_t *port_id) 25357 { 25358 return bcm_esw_field_qualify_SrcGport_get(unit, entry, port_id); 25359 } 25360 #endif 25361 25362 #ifdef BCM_TOMAHAWK3_SUPPORT 25363 int 25364 bcm_tomahawk3_field_qualify_SrcGports( 25365 int unit, 25366 bcm_field_entry_t entry, 25367 bcm_gport_t port_id, 25368 bcm_gport_t port_mask) 25369 { 25370 return bcm_esw_field_qualify_SrcGports(unit, entry, port_id, port_mask); 25371 } 25372 #endif 25373 25374 #ifdef BCM_TOMAHAWK3_SUPPORT 25375 int 25376 bcm_tomahawk3_field_qualify_SrcGports_get( 25377 int unit, 25378 bcm_field_entry_t entry, 25379 bcm_gport_t *port_id, 25380 bcm_gport_t *port_mask) 25381 { 25382 return bcm_esw_field_qualify_SrcGports_get(unit, entry, port_id, port_mask); 25383 } 25384 #endif 25385 25386 #ifdef BCM_TOMAHAWK3_SUPPORT 25387 int 25388 bcm_tomahawk3_field_qualify_SrcIp( 25389 int unit, 25390 bcm_field_entry_t entry, 25391 bcm_ip_t data, 25392 bcm_ip_t mask) 25393 { 25394 return bcm_esw_field_qualify_SrcIp(unit, entry, data, mask); 25395 } 25396 #endif 25397 25398 #ifdef BCM_TOMAHAWK3_SUPPORT 25399 int 25400 bcm_tomahawk3_field_qualify_SrcIp6( 25401 int unit, 25402 bcm_field_entry_t entry, 25403 bcm_ip6_t data, 25404 bcm_ip6_t mask) 25405 { 25406 return bcm_esw_field_qualify_SrcIp6(unit, entry, data, mask); 25407 } 25408 #endif 25409 25410 #ifdef BCM_TOMAHAWK3_SUPPORT 25411 int 25412 bcm_tomahawk3_field_qualify_SrcIp6Class( 25413 int unit, 25414 bcm_field_entry_t entry, 25415 bcm_class_t data, 25416 bcm_class_t mask) 25417 { 25418 return bcm_esw_field_qualify_SrcIp6Class(unit, entry, data, mask); 25419 } 25420 #endif 25421 25422 #ifdef BCM_TOMAHAWK3_SUPPORT 25423 int 25424 bcm_tomahawk3_field_qualify_SrcIp6ClassLower( 25425 int unit, 25426 bcm_field_entry_t entry, 25427 bcm_class_t data, 25428 bcm_class_t mask) 25429 { 25430 return bcm_esw_field_qualify_SrcIp6ClassLower(unit, entry, data, mask); 25431 } 25432 #endif 25433 25434 #ifdef BCM_TOMAHAWK3_SUPPORT 25435 int 25436 bcm_tomahawk3_field_qualify_SrcIp6ClassLower_get( 25437 int unit, 25438 bcm_field_entry_t entry, 25439 bcm_class_t *data, 25440 bcm_class_t *mask) 25441 { 25442 return bcm_esw_field_qualify_SrcIp6ClassLower_get(unit, entry, data, mask); 25443 } 25444 #endif 25445 25446 #ifdef BCM_TOMAHAWK3_SUPPORT 25447 int 25448 bcm_tomahawk3_field_qualify_SrcIp6ClassMsbNibble( 25449 int unit, 25450 bcm_field_entry_t entry, 25451 bcm_class_t data, 25452 bcm_class_t mask) 25453 { 25454 return bcm_esw_field_qualify_SrcIp6ClassMsbNibble(unit, entry, data, mask); 25455 } 25456 #endif 25457 25458 #ifdef BCM_TOMAHAWK3_SUPPORT 25459 int 25460 bcm_tomahawk3_field_qualify_SrcIp6ClassMsbNibble_get( 25461 int unit, 25462 bcm_field_entry_t entry, 25463 bcm_class_t *data, 25464 bcm_class_t *mask) 25465 { 25466 return bcm_esw_field_qualify_SrcIp6ClassMsbNibble_get(unit, entry, data, mask); 25467 } 25468 #endif 25469 25470 #ifdef BCM_TOMAHAWK3_SUPPORT 25471 int 25472 bcm_tomahawk3_field_qualify_SrcIp6ClassUpper( 25473 int unit, 25474 bcm_field_entry_t entry, 25475 bcm_class_t data, 25476 bcm_class_t mask) 25477 { 25478 return bcm_esw_field_qualify_SrcIp6ClassUpper(unit, entry, data, mask); 25479 } 25480 #endif 25481 25482 #ifdef BCM_TOMAHAWK3_SUPPORT 25483 int 25484 bcm_tomahawk3_field_qualify_SrcIp6ClassUpper_get( 25485 int unit, 25486 bcm_field_entry_t entry, 25487 bcm_class_t *data, 25488 bcm_class_t *mask) 25489 { 25490 return bcm_esw_field_qualify_SrcIp6ClassUpper_get(unit, entry, data, mask); 25491 } 25492 #endif 25493 25494 #ifdef BCM_TOMAHAWK3_SUPPORT 25495 int 25496 bcm_tomahawk3_field_qualify_SrcIp6Class_get( 25497 int unit, 25498 bcm_field_entry_t entry, 25499 bcm_class_t *data, 25500 bcm_class_t *mask) 25501 { 25502 return bcm_esw_field_qualify_SrcIp6Class_get(unit, entry, data, mask); 25503 } 25504 #endif 25505 25506 #ifdef BCM_TOMAHAWK3_SUPPORT 25507 int 25508 bcm_tomahawk3_field_qualify_SrcIp6High( 25509 int unit, 25510 bcm_field_entry_t entry, 25511 bcm_ip6_t data, 25512 bcm_ip6_t mask) 25513 { 25514 return bcm_esw_field_qualify_SrcIp6High(unit, entry, data, mask); 25515 } 25516 #endif 25517 25518 #ifdef BCM_TOMAHAWK3_SUPPORT 25519 int 25520 bcm_tomahawk3_field_qualify_SrcIp6High_get( 25521 int unit, 25522 bcm_field_entry_t entry, 25523 bcm_ip6_t *data, 25524 bcm_ip6_t *mask) 25525 { 25526 return bcm_esw_field_qualify_SrcIp6High_get(unit, entry, data, mask); 25527 } 25528 #endif 25529 25530 #ifdef BCM_TOMAHAWK3_SUPPORT 25531 int 25532 bcm_tomahawk3_field_qualify_SrcIp6Low( 25533 int unit, 25534 bcm_field_entry_t entry, 25535 bcm_ip6_t data, 25536 bcm_ip6_t mask) 25537 { 25538 return bcm_esw_field_qualify_SrcIp6Low(unit, entry, data, mask); 25539 } 25540 #endif 25541 25542 #ifdef BCM_TOMAHAWK3_SUPPORT 25543 int 25544 bcm_tomahawk3_field_qualify_SrcIp6Low_get( 25545 int unit, 25546 bcm_field_entry_t entry, 25547 bcm_ip6_t *data, 25548 bcm_ip6_t *mask) 25549 { 25550 return bcm_esw_field_qualify_SrcIp6Low_get(unit, entry, data, mask); 25551 } 25552 #endif 25553 25554 #ifdef BCM_TOMAHAWK3_SUPPORT 25555 int 25556 bcm_tomahawk3_field_qualify_SrcIp6_get( 25557 int unit, 25558 bcm_field_entry_t entry, 25559 bcm_ip6_t *data, 25560 bcm_ip6_t *mask) 25561 { 25562 return bcm_esw_field_qualify_SrcIp6_get(unit, entry, data, mask); 25563 } 25564 #endif 25565 25566 #ifdef BCM_TOMAHAWK3_SUPPORT 25567 int 25568 bcm_tomahawk3_field_qualify_SrcIpClass( 25569 int unit, 25570 bcm_field_entry_t entry, 25571 bcm_class_t data, 25572 bcm_class_t mask) 25573 { 25574 return bcm_esw_field_qualify_SrcIpClass(unit, entry, data, mask); 25575 } 25576 #endif 25577 25578 #ifdef BCM_TOMAHAWK3_SUPPORT 25579 int 25580 bcm_tomahawk3_field_qualify_SrcIpClassLower( 25581 int unit, 25582 bcm_field_entry_t entry, 25583 bcm_class_t data, 25584 bcm_class_t mask) 25585 { 25586 return bcm_esw_field_qualify_SrcIpClassLower(unit, entry, data, mask); 25587 } 25588 #endif 25589 25590 #ifdef BCM_TOMAHAWK3_SUPPORT 25591 int 25592 bcm_tomahawk3_field_qualify_SrcIpClassLower_get( 25593 int unit, 25594 bcm_field_entry_t entry, 25595 bcm_class_t *data, 25596 bcm_class_t *mask) 25597 { 25598 return bcm_esw_field_qualify_SrcIpClassLower_get(unit, entry, data, mask); 25599 } 25600 #endif 25601 25602 #ifdef BCM_TOMAHAWK3_SUPPORT 25603 int 25604 bcm_tomahawk3_field_qualify_SrcIpClassMsbNibble( 25605 int unit, 25606 bcm_field_entry_t entry, 25607 bcm_class_t data, 25608 bcm_class_t mask) 25609 { 25610 return bcm_esw_field_qualify_SrcIpClassMsbNibble(unit, entry, data, mask); 25611 } 25612 #endif 25613 25614 #ifdef BCM_TOMAHAWK3_SUPPORT 25615 int 25616 bcm_tomahawk3_field_qualify_SrcIpClassMsbNibble_get( 25617 int unit, 25618 bcm_field_entry_t entry, 25619 bcm_class_t *data, 25620 bcm_class_t *mask) 25621 { 25622 return bcm_esw_field_qualify_SrcIpClassMsbNibble_get(unit, entry, data, mask); 25623 } 25624 #endif 25625 25626 #ifdef BCM_TOMAHAWK3_SUPPORT 25627 int 25628 bcm_tomahawk3_field_qualify_SrcIpClassUpper( 25629 int unit, 25630 bcm_field_entry_t entry, 25631 bcm_class_t data, 25632 bcm_class_t mask) 25633 { 25634 return bcm_esw_field_qualify_SrcIpClassUpper(unit, entry, data, mask); 25635 } 25636 #endif 25637 25638 #ifdef BCM_TOMAHAWK3_SUPPORT 25639 int 25640 bcm_tomahawk3_field_qualify_SrcIpClassUpper_get( 25641 int unit, 25642 bcm_field_entry_t entry, 25643 bcm_class_t *data, 25644 bcm_class_t *mask) 25645 { 25646 return bcm_esw_field_qualify_SrcIpClassUpper_get(unit, entry, data, mask); 25647 } 25648 #endif 25649 25650 #ifdef BCM_TOMAHAWK3_SUPPORT 25651 int 25652 bcm_tomahawk3_field_qualify_SrcIpClass_get( 25653 int unit, 25654 bcm_field_entry_t entry, 25655 bcm_class_t *data, 25656 bcm_class_t *mask) 25657 { 25658 return bcm_esw_field_qualify_SrcIpClass_get(unit, entry, data, mask); 25659 } 25660 #endif 25661 25662 #ifdef BCM_TOMAHAWK3_SUPPORT 25663 int 25664 bcm_tomahawk3_field_qualify_SrcIp_get( 25665 int unit, 25666 bcm_field_entry_t entry, 25667 bcm_ip_t *data, 25668 bcm_ip_t *mask) 25669 { 25670 return bcm_esw_field_qualify_SrcIp_get(unit, entry, data, mask); 25671 } 25672 #endif 25673 25674 #ifdef BCM_TOMAHAWK3_SUPPORT 25675 int 25676 bcm_tomahawk3_field_qualify_SrcMac( 25677 int unit, 25678 bcm_field_entry_t entry, 25679 bcm_mac_t data, 25680 bcm_mac_t mask) 25681 { 25682 return bcm_esw_field_qualify_SrcMac(unit, entry, data, mask); 25683 } 25684 #endif 25685 25686 #ifdef BCM_TOMAHAWK3_SUPPORT 25687 int 25688 bcm_tomahawk3_field_qualify_SrcMac_get( 25689 int unit, 25690 bcm_field_entry_t entry, 25691 bcm_mac_t *data, 25692 bcm_mac_t *mask) 25693 { 25694 return bcm_esw_field_qualify_SrcMac_get(unit, entry, data, mask); 25695 } 25696 #endif 25697 25698 #ifdef BCM_TOMAHAWK3_SUPPORT 25699 int 25700 bcm_tomahawk3_field_qualify_SrcMimGport( 25701 int unit, 25702 bcm_field_entry_t entry, 25703 bcm_gport_t mim_port_id) 25704 { 25705 return bcm_esw_field_qualify_SrcMimGport(unit, entry, mim_port_id); 25706 } 25707 #endif 25708 25709 #ifdef BCM_TOMAHAWK3_SUPPORT 25710 int 25711 bcm_tomahawk3_field_qualify_SrcMimGport_get( 25712 int unit, 25713 bcm_field_entry_t entry, 25714 bcm_gport_t *mim_port_id) 25715 { 25716 return bcm_esw_field_qualify_SrcMimGport_get(unit, entry, mim_port_id); 25717 } 25718 #endif 25719 25720 #ifdef BCM_TOMAHAWK3_SUPPORT 25721 int 25722 bcm_tomahawk3_field_qualify_SrcMimGports( 25723 int unit, 25724 bcm_field_entry_t entry, 25725 bcm_gport_t mim_port_id, 25726 bcm_gport_t mim_port_mask) 25727 { 25728 return bcm_esw_field_qualify_SrcMimGports(unit, entry, mim_port_id, mim_port_mask); 25729 } 25730 #endif 25731 25732 #ifdef BCM_TOMAHAWK3_SUPPORT 25733 int 25734 bcm_tomahawk3_field_qualify_SrcMimGports_get( 25735 int unit, 25736 bcm_field_entry_t entry, 25737 bcm_gport_t *mim_port_id, 25738 bcm_gport_t *mim_port_mask) 25739 { 25740 return bcm_esw_field_qualify_SrcMimGports_get(unit, entry, mim_port_id, mim_port_mask); 25741 } 25742 #endif 25743 25744 #ifdef BCM_TOMAHAWK3_SUPPORT 25745 int 25746 bcm_tomahawk3_field_qualify_SrcModPortGport( 25747 int unit, 25748 bcm_field_entry_t entry, 25749 bcm_gport_t data) 25750 { 25751 return bcm_esw_field_qualify_SrcModPortGport(unit, entry, data); 25752 } 25753 #endif 25754 25755 #ifdef BCM_TOMAHAWK3_SUPPORT 25756 int 25757 bcm_tomahawk3_field_qualify_SrcModPortGport_get( 25758 int unit, 25759 bcm_field_entry_t entry, 25760 bcm_gport_t *data) 25761 { 25762 return bcm_esw_field_qualify_SrcModPortGport_get(unit, entry, data); 25763 } 25764 #endif 25765 25766 #ifdef BCM_TOMAHAWK3_SUPPORT 25767 int 25768 bcm_tomahawk3_field_qualify_SrcModPortGports( 25769 int unit, 25770 bcm_field_entry_t entry, 25771 bcm_gport_t port_id, 25772 bcm_gport_t port_mask) 25773 { 25774 return bcm_esw_field_qualify_SrcModPortGports(unit, entry, port_id, port_mask); 25775 } 25776 #endif 25777 25778 #ifdef BCM_TOMAHAWK3_SUPPORT 25779 int 25780 bcm_tomahawk3_field_qualify_SrcModPortGports_get( 25781 int unit, 25782 bcm_field_entry_t entry, 25783 bcm_gport_t *port_id, 25784 bcm_gport_t *port_mask) 25785 { 25786 return bcm_esw_field_qualify_SrcModPortGports_get(unit, entry, port_id, port_mask); 25787 } 25788 #endif 25789 25790 #ifdef BCM_TOMAHAWK3_SUPPORT 25791 int 25792 bcm_tomahawk3_field_qualify_SrcModuleGport( 25793 int unit, 25794 bcm_field_entry_t entry, 25795 bcm_gport_t data) 25796 { 25797 return bcm_esw_field_qualify_SrcModuleGport(unit, entry, data); 25798 } 25799 #endif 25800 25801 #ifdef BCM_TOMAHAWK3_SUPPORT 25802 int 25803 bcm_tomahawk3_field_qualify_SrcModuleGport_get( 25804 int unit, 25805 bcm_field_entry_t entry, 25806 bcm_gport_t *data) 25807 { 25808 return bcm_esw_field_qualify_SrcModuleGport_get(unit, entry, data); 25809 } 25810 #endif 25811 25812 #ifdef BCM_TOMAHAWK3_SUPPORT 25813 int 25814 bcm_tomahawk3_field_qualify_SrcMplsGport( 25815 int unit, 25816 bcm_field_entry_t entry, 25817 bcm_gport_t mpls_port_id) 25818 { 25819 return bcm_esw_field_qualify_SrcMplsGport(unit, entry, mpls_port_id); 25820 } 25821 #endif 25822 25823 #ifdef BCM_TOMAHAWK3_SUPPORT 25824 int 25825 bcm_tomahawk3_field_qualify_SrcMplsGport_get( 25826 int unit, 25827 bcm_field_entry_t entry, 25828 bcm_gport_t *mpls_port_id) 25829 { 25830 return bcm_esw_field_qualify_SrcMplsGport_get(unit, entry, mpls_port_id); 25831 } 25832 #endif 25833 25834 #ifdef BCM_TOMAHAWK3_SUPPORT 25835 int 25836 bcm_tomahawk3_field_qualify_SrcMplsGports( 25837 int unit, 25838 bcm_field_entry_t entry, 25839 bcm_gport_t mpls_port_id, 25840 bcm_gport_t mpls_port_mask) 25841 { 25842 return bcm_esw_field_qualify_SrcMplsGports(unit, entry, mpls_port_id, mpls_port_mask); 25843 } 25844 #endif 25845 25846 #ifdef BCM_TOMAHAWK3_SUPPORT 25847 int 25848 bcm_tomahawk3_field_qualify_SrcMplsGports_get( 25849 int unit, 25850 bcm_field_entry_t entry, 25851 bcm_gport_t *mpls_port_id, 25852 bcm_gport_t *mpls_port_mask) 25853 { 25854 return bcm_esw_field_qualify_SrcMplsGports_get(unit, entry, mpls_port_id, mpls_port_mask); 25855 } 25856 #endif 25857 25858 #ifdef BCM_TOMAHAWK3_SUPPORT 25859 int 25860 bcm_tomahawk3_field_qualify_SrcNivGport( 25861 int unit, 25862 bcm_field_entry_t entry, 25863 bcm_gport_t niv_port_id) 25864 { 25865 return bcm_esw_field_qualify_SrcNivGport(unit, entry, niv_port_id); 25866 } 25867 #endif 25868 25869 #ifdef BCM_TOMAHAWK3_SUPPORT 25870 int 25871 bcm_tomahawk3_field_qualify_SrcNivGport_get( 25872 int unit, 25873 bcm_field_entry_t entry, 25874 bcm_gport_t *niv_port_id) 25875 { 25876 return bcm_esw_field_qualify_SrcNivGport_get(unit, entry, niv_port_id); 25877 } 25878 #endif 25879 25880 #ifdef BCM_TOMAHAWK3_SUPPORT 25881 int 25882 bcm_tomahawk3_field_qualify_SrcNivGports( 25883 int unit, 25884 bcm_field_entry_t entry, 25885 bcm_gport_t niv_port_id, 25886 bcm_gport_t niv_port_mask) 25887 { 25888 return bcm_esw_field_qualify_SrcNivGports(unit, entry, niv_port_id, niv_port_mask); 25889 } 25890 #endif 25891 25892 #ifdef BCM_TOMAHAWK3_SUPPORT 25893 int 25894 bcm_tomahawk3_field_qualify_SrcNivGports_get( 25895 int unit, 25896 bcm_field_entry_t entry, 25897 bcm_gport_t *niv_port_id, 25898 bcm_gport_t *niv_port_mask) 25899 { 25900 return bcm_esw_field_qualify_SrcNivGports_get(unit, entry, niv_port_id, niv_port_mask); 25901 } 25902 #endif 25903 25904 #ifdef BCM_TOMAHAWK3_SUPPORT 25905 int 25906 bcm_tomahawk3_field_qualify_SrcPort( 25907 int unit, 25908 bcm_field_entry_t entry, 25909 bcm_module_t data_modid, 25910 bcm_module_t mask_modid, 25911 bcm_port_t data_port, 25912 bcm_port_t mask_port) 25913 { 25914 return bcm_esw_field_qualify_SrcPort(unit, entry, data_modid, mask_modid, data_port, mask_port); 25915 } 25916 #endif 25917 25918 #ifdef BCM_TOMAHAWK3_SUPPORT 25919 int 25920 bcm_tomahawk3_field_qualify_SrcPortSRLanId( 25921 int unit, 25922 bcm_field_entry_t entry, 25923 uint8 lan_id) 25924 { 25925 return bcm_esw_field_qualify_SrcPortSRLanId(unit, entry, lan_id); 25926 } 25927 #endif 25928 25929 #ifdef BCM_TOMAHAWK3_SUPPORT 25930 int 25931 bcm_tomahawk3_field_qualify_SrcPortSRLanId_get( 25932 int unit, 25933 bcm_field_entry_t entry, 25934 uint8 *lan_id) 25935 { 25936 return bcm_esw_field_qualify_SrcPortSRLanId_get(unit, entry, lan_id); 25937 } 25938 #endif 25939 25940 #ifdef BCM_TOMAHAWK3_SUPPORT 25941 int 25942 bcm_tomahawk3_field_qualify_SrcPortSRMode( 25943 int unit, 25944 bcm_field_entry_t entry, 25945 bcm_field_sr_port_mode_t type, 25946 uint8 mask) 25947 { 25948 return bcm_esw_field_qualify_SrcPortSRMode(unit, entry, type, mask); 25949 } 25950 #endif 25951 25952 #ifdef BCM_TOMAHAWK3_SUPPORT 25953 int 25954 bcm_tomahawk3_field_qualify_SrcPortSRMode_get( 25955 int unit, 25956 bcm_field_entry_t entry, 25957 bcm_field_sr_port_mode_t *type, 25958 uint8 *mask) 25959 { 25960 return bcm_esw_field_qualify_SrcPortSRMode_get(unit, entry, type, mask); 25961 } 25962 #endif 25963 25964 #ifdef BCM_TOMAHAWK3_SUPPORT 25965 int 25966 bcm_tomahawk3_field_qualify_SrcPortSRNetId( 25967 int unit, 25968 bcm_field_entry_t entry, 25969 uint8 net_id, 25970 uint8 mask) 25971 { 25972 return bcm_esw_field_qualify_SrcPortSRNetId(unit, entry, net_id, mask); 25973 } 25974 #endif 25975 25976 #ifdef BCM_TOMAHAWK3_SUPPORT 25977 int 25978 bcm_tomahawk3_field_qualify_SrcPortSRNetId_get( 25979 int unit, 25980 bcm_field_entry_t entry, 25981 uint8 *net_id, 25982 uint8 *mask) 25983 { 25984 return bcm_esw_field_qualify_SrcPortSRNetId_get(unit, entry, net_id, mask); 25985 } 25986 #endif 25987 25988 #ifdef BCM_TOMAHAWK3_SUPPORT 25989 int 25990 bcm_tomahawk3_field_qualify_SrcPortSRRoleInterlink( 25991 int unit, 25992 bcm_field_entry_t entry, 25993 uint8 data) 25994 { 25995 return bcm_esw_field_qualify_SrcPortSRRoleInterlink(unit, entry, data); 25996 } 25997 #endif 25998 25999 #ifdef BCM_TOMAHAWK3_SUPPORT 26000 int 26001 bcm_tomahawk3_field_qualify_SrcPortSRRoleInterlink_get( 26002 int unit, 26003 bcm_field_entry_t entry, 26004 uint8 *data) 26005 { 26006 return bcm_esw_field_qualify_SrcPortSRRoleInterlink_get(unit, entry, data); 26007 } 26008 #endif 26009 26010 #ifdef BCM_TOMAHAWK3_SUPPORT 26011 int 26012 bcm_tomahawk3_field_qualify_SrcPortSRType( 26013 int unit, 26014 bcm_field_entry_t entry, 26015 bcm_field_port_sr_type_t type) 26016 { 26017 return bcm_esw_field_qualify_SrcPortSRType(unit, entry, type); 26018 } 26019 #endif 26020 26021 #ifdef BCM_TOMAHAWK3_SUPPORT 26022 int 26023 bcm_tomahawk3_field_qualify_SrcPortSRType_get( 26024 int unit, 26025 bcm_field_entry_t entry, 26026 bcm_field_port_sr_type_t *type) 26027 { 26028 return bcm_esw_field_qualify_SrcPortSRType_get(unit, entry, type); 26029 } 26030 #endif 26031 26032 #ifdef BCM_TOMAHAWK3_SUPPORT 26033 int 26034 bcm_tomahawk3_field_qualify_SrcPort_get( 26035 int unit, 26036 bcm_field_entry_t entry, 26037 bcm_module_t *data_modid, 26038 bcm_module_t *mask_modid, 26039 bcm_port_t *data_port, 26040 bcm_port_t *mask_port) 26041 { 26042 return bcm_esw_field_qualify_SrcPort_get(unit, entry, data_modid, mask_modid, data_port, mask_port); 26043 } 26044 #endif 26045 26046 #ifdef BCM_TOMAHAWK3_SUPPORT 26047 int 26048 bcm_tomahawk3_field_qualify_SrcTMPort( 26049 int unit, 26050 bcm_field_entry_t entry, 26051 bcm_port_t data_port, 26052 bcm_port_t mask_port) 26053 { 26054 return bcm_esw_field_qualify_SrcTMPort(unit, entry, data_port, mask_port); 26055 } 26056 #endif 26057 26058 #ifdef BCM_TOMAHAWK3_SUPPORT 26059 int 26060 bcm_tomahawk3_field_qualify_SrcTMPort_get( 26061 int unit, 26062 bcm_field_entry_t entry, 26063 bcm_port_t *data_port, 26064 bcm_port_t *mask_port) 26065 { 26066 return bcm_esw_field_qualify_SrcTMPort_get(unit, entry, data_port, mask_port); 26067 } 26068 #endif 26069 26070 #ifdef BCM_TOMAHAWK3_SUPPORT 26071 int 26072 bcm_tomahawk3_field_qualify_SrcTrunk( 26073 int unit, 26074 bcm_field_entry_t entry, 26075 bcm_trunk_t data, 26076 bcm_trunk_t mask) 26077 { 26078 return bcm_esw_field_qualify_SrcTrunk(unit, entry, data, mask); 26079 } 26080 #endif 26081 26082 #ifdef BCM_TOMAHAWK3_SUPPORT 26083 int 26084 bcm_tomahawk3_field_qualify_SrcTrunkMemberGport( 26085 int unit, 26086 bcm_field_entry_t entry, 26087 bcm_gport_t data) 26088 { 26089 return bcm_esw_field_qualify_SrcTrunkMemberGport(unit, entry, data); 26090 } 26091 #endif 26092 26093 #ifdef BCM_TOMAHAWK3_SUPPORT 26094 int 26095 bcm_tomahawk3_field_qualify_SrcTrunkMemberGport_get( 26096 int unit, 26097 bcm_field_entry_t entry, 26098 bcm_gport_t *data) 26099 { 26100 return bcm_esw_field_qualify_SrcTrunkMemberGport_get(unit, entry, data); 26101 } 26102 #endif 26103 26104 #ifdef BCM_TOMAHAWK3_SUPPORT 26105 int 26106 bcm_tomahawk3_field_qualify_SrcTrunk_get( 26107 int unit, 26108 bcm_field_entry_t entry, 26109 bcm_trunk_t *data, 26110 bcm_trunk_t *mask) 26111 { 26112 return bcm_esw_field_qualify_SrcTrunk_get(unit, entry, data, mask); 26113 } 26114 #endif 26115 26116 #ifdef BCM_TOMAHAWK3_SUPPORT 26117 int 26118 bcm_tomahawk3_field_qualify_SrcVirtualPortValid( 26119 int unit, 26120 bcm_field_entry_t entry, 26121 uint8 data, 26122 uint8 mask) 26123 { 26124 return bcm_esw_field_qualify_SrcVirtualPortValid(unit, entry, data, mask); 26125 } 26126 #endif 26127 26128 #ifdef BCM_TOMAHAWK3_SUPPORT 26129 int 26130 bcm_tomahawk3_field_qualify_SrcVirtualPortValid_get( 26131 int unit, 26132 bcm_field_entry_t entry, 26133 uint8 *data, 26134 uint8 *mask) 26135 { 26136 return bcm_esw_field_qualify_SrcVirtualPortValid_get(unit, entry, data, mask); 26137 } 26138 #endif 26139 26140 #ifdef BCM_TOMAHAWK3_SUPPORT 26141 int 26142 bcm_tomahawk3_field_qualify_SrcVlanGport( 26143 int unit, 26144 bcm_field_entry_t entry, 26145 bcm_gport_t vlan_port_id) 26146 { 26147 return bcm_esw_field_qualify_SrcVlanGport(unit, entry, vlan_port_id); 26148 } 26149 #endif 26150 26151 #ifdef BCM_TOMAHAWK3_SUPPORT 26152 int 26153 bcm_tomahawk3_field_qualify_SrcVlanGport_get( 26154 int unit, 26155 bcm_field_entry_t entry, 26156 bcm_gport_t *vlan_port_id) 26157 { 26158 return bcm_esw_field_qualify_SrcVlanGport_get(unit, entry, vlan_port_id); 26159 } 26160 #endif 26161 26162 #ifdef BCM_TOMAHAWK3_SUPPORT 26163 int 26164 bcm_tomahawk3_field_qualify_SrcVlanGports( 26165 int unit, 26166 bcm_field_entry_t entry, 26167 bcm_gport_t vlan_port_id, 26168 bcm_gport_t vlan_port_mask) 26169 { 26170 return bcm_esw_field_qualify_SrcVlanGports(unit, entry, vlan_port_id, vlan_port_mask); 26171 } 26172 #endif 26173 26174 #ifdef BCM_TOMAHAWK3_SUPPORT 26175 int 26176 bcm_tomahawk3_field_qualify_SrcVlanGports_get( 26177 int unit, 26178 bcm_field_entry_t entry, 26179 bcm_gport_t *vlan_port_id, 26180 bcm_gport_t *vlan_port_mask) 26181 { 26182 return bcm_esw_field_qualify_SrcVlanGports_get(unit, entry, vlan_port_id, vlan_port_mask); 26183 } 26184 #endif 26185 26186 #ifdef BCM_TOMAHAWK3_SUPPORT 26187 int 26188 bcm_tomahawk3_field_qualify_SrcVxlanGport( 26189 int unit, 26190 bcm_field_entry_t entry, 26191 bcm_gport_t vxlan_port_id) 26192 { 26193 return bcm_esw_field_qualify_SrcVxlanGport(unit, entry, vxlan_port_id); 26194 } 26195 #endif 26196 26197 #ifdef BCM_TOMAHAWK3_SUPPORT 26198 int 26199 bcm_tomahawk3_field_qualify_SrcVxlanGport_get( 26200 int unit, 26201 bcm_field_entry_t entry, 26202 bcm_gport_t *vxlan_port_id) 26203 { 26204 return bcm_esw_field_qualify_SrcVxlanGport_get(unit, entry, vxlan_port_id); 26205 } 26206 #endif 26207 26208 #ifdef BCM_TOMAHAWK3_SUPPORT 26209 int 26210 bcm_tomahawk3_field_qualify_SrcVxlanGports( 26211 int unit, 26212 bcm_field_entry_t entry, 26213 bcm_gport_t vxlan_port_id, 26214 bcm_gport_t vxlan_port_mask) 26215 { 26216 return bcm_esw_field_qualify_SrcVxlanGports(unit, entry, vxlan_port_id, vxlan_port_mask); 26217 } 26218 #endif 26219 26220 #ifdef BCM_TOMAHAWK3_SUPPORT 26221 int 26222 bcm_tomahawk3_field_qualify_SrcVxlanGports_get( 26223 int unit, 26224 bcm_field_entry_t entry, 26225 bcm_gport_t *vxlan_port_id, 26226 bcm_gport_t *vxlan_port_mask) 26227 { 26228 return bcm_esw_field_qualify_SrcVxlanGports_get(unit, entry, vxlan_port_id, vxlan_port_mask); 26229 } 26230 #endif 26231 26232 #ifdef BCM_TOMAHAWK3_SUPPORT 26233 int 26234 bcm_tomahawk3_field_qualify_SrcWlanGport( 26235 int unit, 26236 bcm_field_entry_t entry, 26237 bcm_gport_t wlan_port_id) 26238 { 26239 return bcm_esw_field_qualify_SrcWlanGport(unit, entry, wlan_port_id); 26240 } 26241 #endif 26242 26243 #ifdef BCM_TOMAHAWK3_SUPPORT 26244 int 26245 bcm_tomahawk3_field_qualify_SrcWlanGport_get( 26246 int unit, 26247 bcm_field_entry_t entry, 26248 bcm_gport_t *wlan_port_id) 26249 { 26250 return bcm_esw_field_qualify_SrcWlanGport_get(unit, entry, wlan_port_id); 26251 } 26252 #endif 26253 26254 #ifdef BCM_TOMAHAWK3_SUPPORT 26255 int 26256 bcm_tomahawk3_field_qualify_SrcWlanGports( 26257 int unit, 26258 bcm_field_entry_t entry, 26259 bcm_gport_t wlan_port_id, 26260 bcm_gport_t wlan_port_mask) 26261 { 26262 return bcm_esw_field_qualify_SrcWlanGports(unit, entry, wlan_port_id, wlan_port_mask); 26263 } 26264 #endif 26265 26266 #ifdef BCM_TOMAHAWK3_SUPPORT 26267 int 26268 bcm_tomahawk3_field_qualify_SrcWlanGports_get( 26269 int unit, 26270 bcm_field_entry_t entry, 26271 bcm_gport_t *wlan_port_id, 26272 bcm_gport_t *wlan_port_mask) 26273 { 26274 return bcm_esw_field_qualify_SrcWlanGports_get(unit, entry, wlan_port_id, wlan_port_mask); 26275 } 26276 #endif 26277 26278 int 26279 bcm_tomahawk3_field_qualify_StackingRoute( 26280 int unit, 26281 bcm_field_entry_t entry, 26282 uint32 data, 26283 uint32 mask) 26284 { 26285 return BCM_E_UNAVAIL; 26286 } 26287 26288 int 26289 bcm_tomahawk3_field_qualify_StackingRoute_get( 26290 int unit, 26291 bcm_field_entry_t entry, 26292 uint32 *data, 26293 uint32 *mask) 26294 { 26295 return BCM_E_UNAVAIL; 26296 } 26297 26298 #ifdef BCM_TOMAHAWK3_SUPPORT 26299 int 26300 bcm_tomahawk3_field_qualify_Stage( 26301 int unit, 26302 bcm_field_entry_t entry, 26303 bcm_field_stage_t data) 26304 { 26305 return bcm_esw_field_qualify_Stage(unit, entry, data); 26306 } 26307 #endif 26308 26309 #ifdef BCM_TOMAHAWK3_SUPPORT 26310 int 26311 bcm_tomahawk3_field_qualify_Stage_get( 26312 int unit, 26313 bcm_field_entry_t entry, 26314 bcm_field_stage_t *data) 26315 { 26316 return bcm_esw_field_qualify_Stage_get(unit, entry, data); 26317 } 26318 #endif 26319 26320 int 26321 bcm_tomahawk3_field_qualify_StaggeredDirectValue( 26322 int unit, 26323 bcm_field_entry_t entry, 26324 uint32 data, 26325 uint32 mask) 26326 { 26327 return BCM_E_UNAVAIL; 26328 } 26329 26330 int 26331 bcm_tomahawk3_field_qualify_StaggeredDirectValue_get( 26332 int unit, 26333 bcm_field_entry_t entry, 26334 uint32 *data, 26335 uint32 *mask) 26336 { 26337 return BCM_E_UNAVAIL; 26338 } 26339 26340 int 26341 bcm_tomahawk3_field_qualify_StaggeredPreselProfile0( 26342 int unit, 26343 bcm_field_entry_t entry, 26344 uint32 data, 26345 uint32 mask) 26346 { 26347 return BCM_E_UNAVAIL; 26348 } 26349 26350 int 26351 bcm_tomahawk3_field_qualify_StaggeredPreselProfile0_get( 26352 int unit, 26353 bcm_field_entry_t entry, 26354 uint32 *data, 26355 uint32 *mask) 26356 { 26357 return BCM_E_UNAVAIL; 26358 } 26359 26360 int 26361 bcm_tomahawk3_field_qualify_StaggeredPreselProfile1( 26362 int unit, 26363 bcm_field_entry_t entry, 26364 uint32 data, 26365 uint32 mask) 26366 { 26367 return BCM_E_UNAVAIL; 26368 } 26369 26370 int 26371 bcm_tomahawk3_field_qualify_StaggeredPreselProfile1_get( 26372 int unit, 26373 bcm_field_entry_t entry, 26374 uint32 *data, 26375 uint32 *mask) 26376 { 26377 return BCM_E_UNAVAIL; 26378 } 26379 26380 int 26381 bcm_tomahawk3_field_qualify_StaggeredPreselProfile2( 26382 int unit, 26383 bcm_field_entry_t entry, 26384 uint32 data, 26385 uint32 mask) 26386 { 26387 return BCM_E_UNAVAIL; 26388 } 26389 26390 int 26391 bcm_tomahawk3_field_qualify_StaggeredPreselProfile2_get( 26392 int unit, 26393 bcm_field_entry_t entry, 26394 uint32 *data, 26395 uint32 *mask) 26396 { 26397 return BCM_E_UNAVAIL; 26398 } 26399 26400 int 26401 bcm_tomahawk3_field_qualify_StaggeredPreselProfile3( 26402 int unit, 26403 bcm_field_entry_t entry, 26404 uint32 data, 26405 uint32 mask) 26406 { 26407 return BCM_E_UNAVAIL; 26408 } 26409 26410 int 26411 bcm_tomahawk3_field_qualify_StaggeredPreselProfile3_get( 26412 int unit, 26413 bcm_field_entry_t entry, 26414 uint32 *data, 26415 uint32 *mask) 26416 { 26417 return BCM_E_UNAVAIL; 26418 } 26419 26420 int 26421 bcm_tomahawk3_field_qualify_StaggeredPreselProfileDirect( 26422 int unit, 26423 bcm_field_entry_t entry, 26424 uint32 data, 26425 uint32 mask) 26426 { 26427 return BCM_E_UNAVAIL; 26428 } 26429 26430 int 26431 bcm_tomahawk3_field_qualify_StaggeredPreselProfileDirect_get( 26432 int unit, 26433 bcm_field_entry_t entry, 26434 uint32 *data, 26435 uint32 *mask) 26436 { 26437 return BCM_E_UNAVAIL; 26438 } 26439 26440 int 26441 bcm_tomahawk3_field_qualify_StaggeredValue0( 26442 int unit, 26443 bcm_field_entry_t entry, 26444 uint32 data, 26445 uint32 mask) 26446 { 26447 return BCM_E_UNAVAIL; 26448 } 26449 26450 int 26451 bcm_tomahawk3_field_qualify_StaggeredValue0_get( 26452 int unit, 26453 bcm_field_entry_t entry, 26454 uint32 *data, 26455 uint32 *mask) 26456 { 26457 return BCM_E_UNAVAIL; 26458 } 26459 26460 int 26461 bcm_tomahawk3_field_qualify_StaggeredValue1( 26462 int unit, 26463 bcm_field_entry_t entry, 26464 uint32 data, 26465 uint32 mask) 26466 { 26467 return BCM_E_UNAVAIL; 26468 } 26469 26470 int 26471 bcm_tomahawk3_field_qualify_StaggeredValue1_get( 26472 int unit, 26473 bcm_field_entry_t entry, 26474 uint32 *data, 26475 uint32 *mask) 26476 { 26477 return BCM_E_UNAVAIL; 26478 } 26479 26480 int 26481 bcm_tomahawk3_field_qualify_StaggeredValue2( 26482 int unit, 26483 bcm_field_entry_t entry, 26484 uint32 data, 26485 uint32 mask) 26486 { 26487 return BCM_E_UNAVAIL; 26488 } 26489 26490 int 26491 bcm_tomahawk3_field_qualify_StaggeredValue2_get( 26492 int unit, 26493 bcm_field_entry_t entry, 26494 uint32 *data, 26495 uint32 *mask) 26496 { 26497 return BCM_E_UNAVAIL; 26498 } 26499 26500 int 26501 bcm_tomahawk3_field_qualify_StaggeredValue3( 26502 int unit, 26503 bcm_field_entry_t entry, 26504 uint32 data, 26505 uint32 mask) 26506 { 26507 return BCM_E_UNAVAIL; 26508 } 26509 26510 int 26511 bcm_tomahawk3_field_qualify_StaggeredValue3_get( 26512 int unit, 26513 bcm_field_entry_t entry, 26514 uint32 *data, 26515 uint32 *mask) 26516 { 26517 return BCM_E_UNAVAIL; 26518 } 26519 26520 #ifdef BCM_TOMAHAWK3_SUPPORT 26521 int 26522 bcm_tomahawk3_field_qualify_StpState( 26523 int unit, 26524 bcm_field_entry_t entry, 26525 uint8 data) 26526 { 26527 return bcm_esw_field_qualify_StpState(unit, entry, data); 26528 } 26529 #endif 26530 26531 #ifdef BCM_TOMAHAWK3_SUPPORT 26532 int 26533 bcm_tomahawk3_field_qualify_StpState_get( 26534 int unit, 26535 bcm_field_entry_t entry, 26536 uint8 *data) 26537 { 26538 return bcm_esw_field_qualify_StpState_get(unit, entry, data); 26539 } 26540 #endif 26541 26542 #ifdef BCM_TOMAHAWK3_SUPPORT 26543 int 26544 bcm_tomahawk3_field_qualify_SubportPktTag( 26545 int unit, 26546 bcm_field_entry_t entry, 26547 uint16 data, 26548 uint16 mask) 26549 { 26550 return bcm_esw_field_qualify_SubportPktTag(unit, entry, data, mask); 26551 } 26552 #endif 26553 26554 #ifdef BCM_TOMAHAWK3_SUPPORT 26555 int 26556 bcm_tomahawk3_field_qualify_SubportPktTag_get( 26557 int unit, 26558 bcm_field_entry_t entry, 26559 uint16 *data, 26560 uint16 *mask) 26561 { 26562 return bcm_esw_field_qualify_SubportPktTag_get(unit, entry, data, mask); 26563 } 26564 #endif 26565 26566 #ifdef BCM_TOMAHAWK3_SUPPORT 26567 int 26568 bcm_tomahawk3_field_qualify_SubportTagPresent( 26569 int unit, 26570 bcm_field_entry_t entry, 26571 uint8 data, 26572 uint8 mask) 26573 { 26574 return bcm_esw_field_qualify_SubportTagPresent(unit, entry, data, mask); 26575 } 26576 #endif 26577 26578 #ifdef BCM_TOMAHAWK3_SUPPORT 26579 int 26580 bcm_tomahawk3_field_qualify_SubportTagPresent_get( 26581 int unit, 26582 bcm_field_entry_t entry, 26583 uint8 *data, 26584 uint8 *mask) 26585 { 26586 return bcm_esw_field_qualify_SubportTagPresent_get(unit, entry, data, mask); 26587 } 26588 #endif 26589 26590 #ifdef BCM_TOMAHAWK3_SUPPORT 26591 int 26592 bcm_tomahawk3_field_qualify_SysHdrLocalDstport( 26593 int unit, 26594 bcm_field_entry_t entry, 26595 bcm_port_t data, 26596 bcm_port_t mask) 26597 { 26598 return bcm_esw_field_qualify_SysHdrLocalDstport(unit, entry, data, mask); 26599 } 26600 #endif 26601 26602 #ifdef BCM_TOMAHAWK3_SUPPORT 26603 int 26604 bcm_tomahawk3_field_qualify_SysHdrLocalDstport_get( 26605 int unit, 26606 bcm_field_entry_t entry, 26607 bcm_port_t *data, 26608 bcm_port_t *mask) 26609 { 26610 return bcm_esw_field_qualify_SysHdrLocalDstport_get(unit, entry, data, mask); 26611 } 26612 #endif 26613 26614 #ifdef BCM_TOMAHAWK3_SUPPORT 26615 int 26616 bcm_tomahawk3_field_qualify_SysHdrType( 26617 int unit, 26618 bcm_field_entry_t entry, 26619 bcm_field_sys_hdr_type_t type) 26620 { 26621 return bcm_esw_field_qualify_SysHdrType(unit, entry, type); 26622 } 26623 #endif 26624 26625 #ifdef BCM_TOMAHAWK3_SUPPORT 26626 int 26627 bcm_tomahawk3_field_qualify_SysHdrType_get( 26628 int unit, 26629 bcm_field_entry_t entry, 26630 bcm_field_sys_hdr_type_t *type) 26631 { 26632 return bcm_esw_field_qualify_SysHdrType_get(unit, entry, type); 26633 } 26634 #endif 26635 26636 #ifdef BCM_TOMAHAWK3_SUPPORT 26637 int 26638 bcm_tomahawk3_field_qualify_SystemPortBitmap( 26639 int unit, 26640 bcm_field_entry_t entry, 26641 bcm_pbmp_t data, 26642 bcm_pbmp_t mask) 26643 { 26644 return bcm_esw_field_qualify_SystemPortBitmap(unit, entry, data, mask); 26645 } 26646 #endif 26647 26648 #ifdef BCM_TOMAHAWK3_SUPPORT 26649 int 26650 bcm_tomahawk3_field_qualify_SystemPortBitmap_get( 26651 int unit, 26652 bcm_field_entry_t entry, 26653 bcm_pbmp_t *data, 26654 bcm_pbmp_t *mask) 26655 { 26656 return bcm_esw_field_qualify_SystemPortBitmap_get(unit, entry, data, mask); 26657 } 26658 #endif 26659 26660 #ifdef BCM_TOMAHAWK3_SUPPORT 26661 int 26662 bcm_tomahawk3_field_qualify_TafCosProfile( 26663 int unit, 26664 bcm_field_entry_t entry, 26665 uint32 data, 26666 uint32 mask) 26667 { 26668 return bcm_esw_field_qualify_TafCosProfile(unit, entry, data, mask); 26669 } 26670 #endif 26671 26672 #ifdef BCM_TOMAHAWK3_SUPPORT 26673 int 26674 bcm_tomahawk3_field_qualify_TafCosProfile_get( 26675 int unit, 26676 bcm_field_entry_t entry, 26677 uint32 *data, 26678 uint32 *mask) 26679 { 26680 return bcm_esw_field_qualify_TafCosProfile_get(unit, entry, data, mask); 26681 } 26682 #endif 26683 26684 #ifdef BCM_TOMAHAWK3_SUPPORT 26685 int 26686 bcm_tomahawk3_field_qualify_TafEnable( 26687 int unit, 26688 bcm_field_entry_t entry, 26689 uint8 enable) 26690 { 26691 return bcm_esw_field_qualify_TafEnable(unit, entry, enable); 26692 } 26693 #endif 26694 26695 #ifdef BCM_TOMAHAWK3_SUPPORT 26696 int 26697 bcm_tomahawk3_field_qualify_TafEnable_get( 26698 int unit, 26699 bcm_field_entry_t entry, 26700 uint8 *enable) 26701 { 26702 return bcm_esw_field_qualify_TafEnable_get(unit, entry, enable); 26703 } 26704 #endif 26705 26706 #ifdef BCM_TOMAHAWK3_SUPPORT 26707 int 26708 bcm_tomahawk3_field_qualify_TafGateId( 26709 int unit, 26710 bcm_field_entry_t entry, 26711 uint32 data, 26712 uint32 mask) 26713 { 26714 return bcm_esw_field_qualify_TafGateId(unit, entry, data, mask); 26715 } 26716 #endif 26717 26718 #ifdef BCM_TOMAHAWK3_SUPPORT 26719 int 26720 bcm_tomahawk3_field_qualify_TafGateId_get( 26721 int unit, 26722 bcm_field_entry_t entry, 26723 uint32 *data, 26724 uint32 *mask) 26725 { 26726 return bcm_esw_field_qualify_TafGateId_get(unit, entry, data, mask); 26727 } 26728 #endif 26729 26730 #ifdef BCM_TOMAHAWK3_SUPPORT 26731 int 26732 bcm_tomahawk3_field_qualify_TafGateState( 26733 int unit, 26734 bcm_field_entry_t entry, 26735 uint8 state) 26736 { 26737 return bcm_esw_field_qualify_TafGateState(unit, entry, state); 26738 } 26739 #endif 26740 26741 #ifdef BCM_TOMAHAWK3_SUPPORT 26742 int 26743 bcm_tomahawk3_field_qualify_TafGateState_get( 26744 int unit, 26745 bcm_field_entry_t entry, 26746 uint8 *state) 26747 { 26748 return bcm_esw_field_qualify_TafGateState_get(unit, entry, state); 26749 } 26750 #endif 26751 26752 #ifdef BCM_TOMAHAWK3_SUPPORT 26753 int 26754 bcm_tomahawk3_field_qualify_TcpClassOne( 26755 int unit, 26756 bcm_field_entry_t entry, 26757 bcm_class_t data, 26758 bcm_class_t mask) 26759 { 26760 return bcm_esw_field_qualify_TcpClassOne(unit, entry, data, mask); 26761 } 26762 #endif 26763 26764 #ifdef BCM_TOMAHAWK3_SUPPORT 26765 int 26766 bcm_tomahawk3_field_qualify_TcpClassOne_get( 26767 int unit, 26768 bcm_field_entry_t entry, 26769 bcm_class_t *data, 26770 bcm_class_t *mask) 26771 { 26772 return bcm_esw_field_qualify_TcpClassOne_get(unit, entry, data, mask); 26773 } 26774 #endif 26775 26776 #ifdef BCM_TOMAHAWK3_SUPPORT 26777 int 26778 bcm_tomahawk3_field_qualify_TcpClassZero( 26779 int unit, 26780 bcm_field_entry_t entry, 26781 bcm_class_t data, 26782 bcm_class_t mask) 26783 { 26784 return bcm_esw_field_qualify_TcpClassZero(unit, entry, data, mask); 26785 } 26786 #endif 26787 26788 #ifdef BCM_TOMAHAWK3_SUPPORT 26789 int 26790 bcm_tomahawk3_field_qualify_TcpClassZero_get( 26791 int unit, 26792 bcm_field_entry_t entry, 26793 bcm_class_t *data, 26794 bcm_class_t *mask) 26795 { 26796 return bcm_esw_field_qualify_TcpClassZero_get(unit, entry, data, mask); 26797 } 26798 #endif 26799 26800 #ifdef BCM_TOMAHAWK3_SUPPORT 26801 int 26802 bcm_tomahawk3_field_qualify_TcpControl( 26803 int unit, 26804 bcm_field_entry_t entry, 26805 uint8 data, 26806 uint8 mask) 26807 { 26808 return bcm_esw_field_qualify_TcpControl(unit, entry, data, mask); 26809 } 26810 #endif 26811 26812 #ifdef BCM_TOMAHAWK3_SUPPORT 26813 int 26814 bcm_tomahawk3_field_qualify_TcpControl_get( 26815 int unit, 26816 bcm_field_entry_t entry, 26817 uint8 *data, 26818 uint8 *mask) 26819 { 26820 return bcm_esw_field_qualify_TcpControl_get(unit, entry, data, mask); 26821 } 26822 #endif 26823 26824 #ifdef BCM_TOMAHAWK3_SUPPORT 26825 int 26826 bcm_tomahawk3_field_qualify_TcpHeaderSize( 26827 int unit, 26828 bcm_field_entry_t entry, 26829 uint8 data, 26830 uint8 mask) 26831 { 26832 return bcm_esw_field_qualify_TcpHeaderSize(unit, entry, data, mask); 26833 } 26834 #endif 26835 26836 #ifdef BCM_TOMAHAWK3_SUPPORT 26837 int 26838 bcm_tomahawk3_field_qualify_TcpHeaderSize_get( 26839 int unit, 26840 bcm_field_entry_t entry, 26841 uint8 *data, 26842 uint8 *mask) 26843 { 26844 return bcm_esw_field_qualify_TcpHeaderSize_get(unit, entry, data, mask); 26845 } 26846 #endif 26847 26848 #ifdef BCM_TOMAHAWK3_SUPPORT 26849 int 26850 bcm_tomahawk3_field_qualify_TcpSequenceZero( 26851 int unit, 26852 bcm_field_entry_t entry, 26853 uint32 flag) 26854 { 26855 return bcm_esw_field_qualify_TcpSequenceZero(unit, entry, flag); 26856 } 26857 #endif 26858 26859 #ifdef BCM_TOMAHAWK3_SUPPORT 26860 int 26861 bcm_tomahawk3_field_qualify_TcpSequenceZero_get( 26862 int unit, 26863 bcm_field_entry_t entry, 26864 uint32 *flag) 26865 { 26866 return bcm_esw_field_qualify_TcpSequenceZero_get(unit, entry, flag); 26867 } 26868 #endif 26869 26870 #ifdef BCM_TOMAHAWK3_SUPPORT 26871 int 26872 bcm_tomahawk3_field_qualify_TimeStampTxPktType( 26873 int unit, 26874 bcm_field_entry_t entry, 26875 bcm_field_timestamp_transmit_pkt_type_t ts_pkt_type) 26876 { 26877 return bcm_esw_field_qualify_TimeStampTxPktType(unit, entry, ts_pkt_type); 26878 } 26879 #endif 26880 26881 #ifdef BCM_TOMAHAWK3_SUPPORT 26882 int 26883 bcm_tomahawk3_field_qualify_TimeStampTxPktType_get( 26884 int unit, 26885 bcm_field_entry_t entry, 26886 bcm_field_timestamp_transmit_pkt_type_t *ts_pkt_type) 26887 { 26888 return bcm_esw_field_qualify_TimeStampTxPktType_get(unit, entry, ts_pkt_type); 26889 } 26890 #endif 26891 26892 #ifdef BCM_TOMAHAWK3_SUPPORT 26893 int 26894 bcm_tomahawk3_field_qualify_Tos( 26895 int unit, 26896 bcm_field_entry_t entry, 26897 uint8 data, 26898 uint8 mask) 26899 { 26900 return bcm_esw_field_qualify_Tos(unit, entry, data, mask); 26901 } 26902 #endif 26903 26904 #ifdef BCM_TOMAHAWK3_SUPPORT 26905 int 26906 bcm_tomahawk3_field_qualify_TosClassOne( 26907 int unit, 26908 bcm_field_entry_t entry, 26909 bcm_class_t data, 26910 bcm_class_t mask) 26911 { 26912 return bcm_esw_field_qualify_TosClassOne(unit, entry, data, mask); 26913 } 26914 #endif 26915 26916 #ifdef BCM_TOMAHAWK3_SUPPORT 26917 int 26918 bcm_tomahawk3_field_qualify_TosClassOne_get( 26919 int unit, 26920 bcm_field_entry_t entry, 26921 bcm_class_t *data, 26922 bcm_class_t *mask) 26923 { 26924 return bcm_esw_field_qualify_TosClassOne_get(unit, entry, data, mask); 26925 } 26926 #endif 26927 26928 #ifdef BCM_TOMAHAWK3_SUPPORT 26929 int 26930 bcm_tomahawk3_field_qualify_TosClassZero( 26931 int unit, 26932 bcm_field_entry_t entry, 26933 bcm_class_t data, 26934 bcm_class_t mask) 26935 { 26936 return bcm_esw_field_qualify_TosClassZero(unit, entry, data, mask); 26937 } 26938 #endif 26939 26940 #ifdef BCM_TOMAHAWK3_SUPPORT 26941 int 26942 bcm_tomahawk3_field_qualify_TosClassZero_get( 26943 int unit, 26944 bcm_field_entry_t entry, 26945 bcm_class_t *data, 26946 bcm_class_t *mask) 26947 { 26948 return bcm_esw_field_qualify_TosClassZero_get(unit, entry, data, mask); 26949 } 26950 #endif 26951 26952 #ifdef BCM_TOMAHAWK3_SUPPORT 26953 int 26954 bcm_tomahawk3_field_qualify_TosLower4Bits( 26955 int unit, 26956 bcm_field_entry_t entry, 26957 uint8 data, 26958 uint8 mask) 26959 { 26960 return bcm_esw_field_qualify_TosLower4Bits(unit, entry, data, mask); 26961 } 26962 #endif 26963 26964 #ifdef BCM_TOMAHAWK3_SUPPORT 26965 int 26966 bcm_tomahawk3_field_qualify_TosLower4Bits_get( 26967 int unit, 26968 bcm_field_entry_t entry, 26969 uint8 *data, 26970 uint8 *mask) 26971 { 26972 return bcm_esw_field_qualify_TosLower4Bits_get(unit, entry, data, mask); 26973 } 26974 #endif 26975 26976 #ifdef BCM_TOMAHAWK3_SUPPORT 26977 int 26978 bcm_tomahawk3_field_qualify_Tos_get( 26979 int unit, 26980 bcm_field_entry_t entry, 26981 uint8 *data, 26982 uint8 *mask) 26983 { 26984 return bcm_esw_field_qualify_Tos_get(unit, entry, data, mask); 26985 } 26986 #endif 26987 26988 #ifdef BCM_TOMAHAWK3_SUPPORT 26989 int 26990 bcm_tomahawk3_field_qualify_TranslatedInnerVlan( 26991 int unit, 26992 bcm_field_entry_t entry, 26993 bcm_vlan_t data, 26994 bcm_vlan_t mask) 26995 { 26996 return bcm_esw_field_qualify_TranslatedInnerVlan(unit, entry, data, mask); 26997 } 26998 #endif 26999 27000 #ifdef BCM_TOMAHAWK3_SUPPORT 27001 int 27002 bcm_tomahawk3_field_qualify_TranslatedInnerVlanCfi( 27003 int unit, 27004 bcm_field_entry_t entry, 27005 uint8 data, 27006 uint8 mask) 27007 { 27008 return bcm_esw_field_qualify_TranslatedInnerVlanCfi(unit, entry, data, mask); 27009 } 27010 #endif 27011 27012 #ifdef BCM_TOMAHAWK3_SUPPORT 27013 int 27014 bcm_tomahawk3_field_qualify_TranslatedInnerVlanCfi_get( 27015 int unit, 27016 bcm_field_entry_t entry, 27017 uint8 *data, 27018 uint8 *mask) 27019 { 27020 return bcm_esw_field_qualify_TranslatedInnerVlanCfi_get(unit, entry, data, mask); 27021 } 27022 #endif 27023 27024 #ifdef BCM_TOMAHAWK3_SUPPORT 27025 int 27026 bcm_tomahawk3_field_qualify_TranslatedInnerVlanId( 27027 int unit, 27028 bcm_field_entry_t entry, 27029 bcm_vlan_t data, 27030 bcm_vlan_t mask) 27031 { 27032 return bcm_esw_field_qualify_TranslatedInnerVlanId(unit, entry, data, mask); 27033 } 27034 #endif 27035 27036 #ifdef BCM_TOMAHAWK3_SUPPORT 27037 int 27038 bcm_tomahawk3_field_qualify_TranslatedInnerVlanId_get( 27039 int unit, 27040 bcm_field_entry_t entry, 27041 bcm_vlan_t *data, 27042 bcm_vlan_t *mask) 27043 { 27044 return bcm_esw_field_qualify_TranslatedInnerVlanId_get(unit, entry, data, mask); 27045 } 27046 #endif 27047 27048 #ifdef BCM_TOMAHAWK3_SUPPORT 27049 int 27050 bcm_tomahawk3_field_qualify_TranslatedInnerVlanPri( 27051 int unit, 27052 bcm_field_entry_t entry, 27053 uint8 data, 27054 uint8 mask) 27055 { 27056 return bcm_esw_field_qualify_TranslatedInnerVlanPri(unit, entry, data, mask); 27057 } 27058 #endif 27059 27060 #ifdef BCM_TOMAHAWK3_SUPPORT 27061 int 27062 bcm_tomahawk3_field_qualify_TranslatedInnerVlanPri_get( 27063 int unit, 27064 bcm_field_entry_t entry, 27065 uint8 *data, 27066 uint8 *mask) 27067 { 27068 return bcm_esw_field_qualify_TranslatedInnerVlanPri_get(unit, entry, data, mask); 27069 } 27070 #endif 27071 27072 #ifdef BCM_TOMAHAWK3_SUPPORT 27073 int 27074 bcm_tomahawk3_field_qualify_TranslatedInnerVlan_get( 27075 int unit, 27076 bcm_field_entry_t entry, 27077 bcm_vlan_t *data, 27078 bcm_vlan_t *mask) 27079 { 27080 return bcm_esw_field_qualify_TranslatedInnerVlan_get(unit, entry, data, mask); 27081 } 27082 #endif 27083 27084 #ifdef BCM_TOMAHAWK3_SUPPORT 27085 int 27086 bcm_tomahawk3_field_qualify_TranslatedOuterVlan( 27087 int unit, 27088 bcm_field_entry_t entry, 27089 bcm_vlan_t data, 27090 bcm_vlan_t mask) 27091 { 27092 return bcm_esw_field_qualify_TranslatedOuterVlan(unit, entry, data, mask); 27093 } 27094 #endif 27095 27096 #ifdef BCM_TOMAHAWK3_SUPPORT 27097 int 27098 bcm_tomahawk3_field_qualify_TranslatedOuterVlanCfi( 27099 int unit, 27100 bcm_field_entry_t entry, 27101 uint8 data, 27102 uint8 mask) 27103 { 27104 return bcm_esw_field_qualify_TranslatedOuterVlanCfi(unit, entry, data, mask); 27105 } 27106 #endif 27107 27108 #ifdef BCM_TOMAHAWK3_SUPPORT 27109 int 27110 bcm_tomahawk3_field_qualify_TranslatedOuterVlanCfi_get( 27111 int unit, 27112 bcm_field_entry_t entry, 27113 uint8 *data, 27114 uint8 *mask) 27115 { 27116 return bcm_esw_field_qualify_TranslatedOuterVlanCfi_get(unit, entry, data, mask); 27117 } 27118 #endif 27119 27120 #ifdef BCM_TOMAHAWK3_SUPPORT 27121 int 27122 bcm_tomahawk3_field_qualify_TranslatedOuterVlanId( 27123 int unit, 27124 bcm_field_entry_t entry, 27125 bcm_vlan_t data, 27126 bcm_vlan_t mask) 27127 { 27128 return bcm_esw_field_qualify_TranslatedOuterVlanId(unit, entry, data, mask); 27129 } 27130 #endif 27131 27132 #ifdef BCM_TOMAHAWK3_SUPPORT 27133 int 27134 bcm_tomahawk3_field_qualify_TranslatedOuterVlanId_get( 27135 int unit, 27136 bcm_field_entry_t entry, 27137 bcm_vlan_t *data, 27138 bcm_vlan_t *mask) 27139 { 27140 return bcm_esw_field_qualify_TranslatedOuterVlanId_get(unit, entry, data, mask); 27141 } 27142 #endif 27143 27144 #ifdef BCM_TOMAHAWK3_SUPPORT 27145 int 27146 bcm_tomahawk3_field_qualify_TranslatedOuterVlanPri( 27147 int unit, 27148 bcm_field_entry_t entry, 27149 uint8 data, 27150 uint8 mask) 27151 { 27152 return bcm_esw_field_qualify_TranslatedOuterVlanPri(unit, entry, data, mask); 27153 } 27154 #endif 27155 27156 #ifdef BCM_TOMAHAWK3_SUPPORT 27157 int 27158 bcm_tomahawk3_field_qualify_TranslatedOuterVlanPri_get( 27159 int unit, 27160 bcm_field_entry_t entry, 27161 uint8 *data, 27162 uint8 *mask) 27163 { 27164 return bcm_esw_field_qualify_TranslatedOuterVlanPri_get(unit, entry, data, mask); 27165 } 27166 #endif 27167 27168 #ifdef BCM_TOMAHAWK3_SUPPORT 27169 int 27170 bcm_tomahawk3_field_qualify_TranslatedOuterVlan_get( 27171 int unit, 27172 bcm_field_entry_t entry, 27173 bcm_vlan_t *data, 27174 bcm_vlan_t *mask) 27175 { 27176 return bcm_esw_field_qualify_TranslatedOuterVlan_get(unit, entry, data, mask); 27177 } 27178 #endif 27179 27180 #ifdef BCM_TOMAHAWK3_SUPPORT 27181 int 27182 bcm_tomahawk3_field_qualify_TranslatedVlanFormat( 27183 int unit, 27184 bcm_field_entry_t entry, 27185 uint8 data, 27186 uint8 mask) 27187 { 27188 return bcm_esw_field_qualify_TranslatedVlanFormat(unit, entry, data, mask); 27189 } 27190 #endif 27191 27192 #ifdef BCM_TOMAHAWK3_SUPPORT 27193 int 27194 bcm_tomahawk3_field_qualify_TranslatedVlanFormat_get( 27195 int unit, 27196 bcm_field_entry_t entry, 27197 uint8 *data, 27198 uint8 *mask) 27199 { 27200 return bcm_esw_field_qualify_TranslatedVlanFormat_get(unit, entry, data, mask); 27201 } 27202 #endif 27203 27204 #ifdef BCM_TOMAHAWK3_SUPPORT 27205 int 27206 bcm_tomahawk3_field_qualify_TrillEgressRbridge( 27207 int unit, 27208 bcm_field_entry_t entry, 27209 uint32 data, 27210 uint32 mask) 27211 { 27212 return bcm_esw_field_qualify_TrillEgressRbridge(unit, entry, data, mask); 27213 } 27214 #endif 27215 27216 #ifdef BCM_TOMAHAWK3_SUPPORT 27217 int 27218 bcm_tomahawk3_field_qualify_TrillEgressRbridgeHit( 27219 int unit, 27220 bcm_field_entry_t entry, 27221 uint8 data, 27222 uint8 mask) 27223 { 27224 return bcm_esw_field_qualify_TrillEgressRbridgeHit(unit, entry, data, mask); 27225 } 27226 #endif 27227 27228 #ifdef BCM_TOMAHAWK3_SUPPORT 27229 int 27230 bcm_tomahawk3_field_qualify_TrillEgressRbridgeHit_get( 27231 int unit, 27232 bcm_field_entry_t entry, 27233 uint8 *data, 27234 uint8 *mask) 27235 { 27236 return bcm_esw_field_qualify_TrillEgressRbridgeHit_get(unit, entry, data, mask); 27237 } 27238 #endif 27239 27240 #ifdef BCM_TOMAHAWK3_SUPPORT 27241 int 27242 bcm_tomahawk3_field_qualify_TrillEgressRbridge_get( 27243 int unit, 27244 bcm_field_entry_t entry, 27245 uint32 *data, 27246 uint32 *mask) 27247 { 27248 return bcm_esw_field_qualify_TrillEgressRbridge_get(unit, entry, data, mask); 27249 } 27250 #endif 27251 27252 int 27253 bcm_tomahawk3_field_qualify_TrillHopCount( 27254 int unit, 27255 bcm_field_entry_t entry, 27256 uint8 data, 27257 uint8 mask) 27258 { 27259 return BCM_E_UNAVAIL; 27260 } 27261 27262 int 27263 bcm_tomahawk3_field_qualify_TrillHopCount_get( 27264 int unit, 27265 bcm_field_entry_t entry, 27266 uint8 *data, 27267 uint8 *mask) 27268 { 27269 return BCM_E_UNAVAIL; 27270 } 27271 27272 int 27273 bcm_tomahawk3_field_qualify_TrillIVersion( 27274 int unit, 27275 bcm_field_entry_t entry, 27276 uint8 data, 27277 uint8 mask) 27278 { 27279 return BCM_E_UNAVAIL; 27280 } 27281 27282 int 27283 bcm_tomahawk3_field_qualify_TrillIVersion_get( 27284 int unit, 27285 bcm_field_entry_t entry, 27286 uint8 *data, 27287 uint8 *mask) 27288 { 27289 return BCM_E_UNAVAIL; 27290 } 27291 27292 int 27293 bcm_tomahawk3_field_qualify_TrillIngressRbridge( 27294 int unit, 27295 bcm_field_entry_t entry, 27296 uint16 data, 27297 uint16 mask) 27298 { 27299 return BCM_E_UNAVAIL; 27300 } 27301 27302 int 27303 bcm_tomahawk3_field_qualify_TrillIngressRbridgeHit( 27304 int unit, 27305 bcm_field_entry_t entry, 27306 uint8 data, 27307 uint8 mask) 27308 { 27309 return BCM_E_UNAVAIL; 27310 } 27311 27312 int 27313 bcm_tomahawk3_field_qualify_TrillIngressRbridgeHit_get( 27314 int unit, 27315 bcm_field_entry_t entry, 27316 uint8 *data, 27317 uint8 *mask) 27318 { 27319 return BCM_E_UNAVAIL; 27320 } 27321 27322 int 27323 bcm_tomahawk3_field_qualify_TrillIngressRbridge_get( 27324 int unit, 27325 bcm_field_entry_t entry, 27326 uint16 *data, 27327 uint16 *mask) 27328 { 27329 return BCM_E_UNAVAIL; 27330 } 27331 27332 int 27333 bcm_tomahawk3_field_qualify_TrillMultiDestination( 27334 int unit, 27335 bcm_field_entry_t entry, 27336 uint8 data, 27337 uint8 mask) 27338 { 27339 return BCM_E_UNAVAIL; 27340 } 27341 27342 int 27343 bcm_tomahawk3_field_qualify_TrillMultiDestination_get( 27344 int unit, 27345 bcm_field_entry_t entry, 27346 uint8 *data, 27347 uint8 *mask) 27348 { 27349 return BCM_E_UNAVAIL; 27350 } 27351 27352 int 27353 bcm_tomahawk3_field_qualify_TrillOpLength( 27354 int unit, 27355 bcm_field_entry_t entry, 27356 uint8 data, 27357 uint8 mask) 27358 { 27359 return BCM_E_UNAVAIL; 27360 } 27361 27362 int 27363 bcm_tomahawk3_field_qualify_TrillOpLength_get( 27364 int unit, 27365 bcm_field_entry_t entry, 27366 uint8 *data, 27367 uint8 *mask) 27368 { 27369 return BCM_E_UNAVAIL; 27370 } 27371 27372 int 27373 bcm_tomahawk3_field_qualify_TrillPayload( 27374 int unit, 27375 bcm_field_entry_t entry, 27376 uint64 data, 27377 uint64 mask) 27378 { 27379 return BCM_E_UNAVAIL; 27380 } 27381 27382 int 27383 bcm_tomahawk3_field_qualify_TrillPayload_get( 27384 int unit, 27385 bcm_field_entry_t entry, 27386 uint64 *data, 27387 uint64 *mask) 27388 { 27389 return BCM_E_UNAVAIL; 27390 } 27391 27392 #ifdef BCM_TOMAHAWK3_SUPPORT 27393 int 27394 bcm_tomahawk3_field_qualify_TrunkHashResult( 27395 int unit, 27396 bcm_field_entry_t entry, 27397 uint32 data, 27398 uint32 mask) 27399 { 27400 return bcm_esw_field_qualify_TrunkHashResult(unit, entry, data, mask); 27401 } 27402 #endif 27403 27404 #ifdef BCM_TOMAHAWK3_SUPPORT 27405 int 27406 bcm_tomahawk3_field_qualify_TrunkHashResult_get( 27407 int unit, 27408 bcm_field_entry_t entry, 27409 uint32 *data, 27410 uint32 *mask) 27411 { 27412 return bcm_esw_field_qualify_TrunkHashResult_get(unit, entry, data, mask); 27413 } 27414 #endif 27415 27416 #ifdef BCM_TOMAHAWK3_SUPPORT 27417 int 27418 bcm_tomahawk3_field_qualify_TrunkMemberSourceModuleId( 27419 int unit, 27420 bcm_field_entry_t entry, 27421 int data, 27422 int mask) 27423 { 27424 return bcm_esw_field_qualify_TrunkMemberSourceModuleId(unit, entry, data, mask); 27425 } 27426 #endif 27427 27428 #ifdef BCM_TOMAHAWK3_SUPPORT 27429 int 27430 bcm_tomahawk3_field_qualify_TrunkMemberSourceModuleId_get( 27431 int unit, 27432 bcm_field_entry_t entry, 27433 int *data, 27434 int *mask) 27435 { 27436 return bcm_esw_field_qualify_TrunkMemberSourceModuleId_get(unit, entry, data, mask); 27437 } 27438 #endif 27439 27440 #ifdef BCM_TOMAHAWK3_SUPPORT 27441 int 27442 bcm_tomahawk3_field_qualify_TsnFlowId( 27443 int unit, 27444 bcm_field_entry_t entry, 27445 uint32 data, 27446 uint32 mask) 27447 { 27448 return bcm_esw_field_qualify_TsnFlowId(unit, entry, data, mask); 27449 } 27450 #endif 27451 27452 #ifdef BCM_TOMAHAWK3_SUPPORT 27453 int 27454 bcm_tomahawk3_field_qualify_TsnFlowId_get( 27455 int unit, 27456 bcm_field_entry_t entry, 27457 uint32 *data, 27458 uint32 *mask) 27459 { 27460 return bcm_esw_field_qualify_TsnFlowId_get(unit, entry, data, mask); 27461 } 27462 #endif 27463 27464 #ifdef BCM_TOMAHAWK3_SUPPORT 27465 int 27466 bcm_tomahawk3_field_qualify_Ttl( 27467 int unit, 27468 bcm_field_entry_t entry, 27469 uint8 data, 27470 uint8 mask) 27471 { 27472 return bcm_esw_field_qualify_Ttl(unit, entry, data, mask); 27473 } 27474 #endif 27475 27476 #ifdef BCM_TOMAHAWK3_SUPPORT 27477 int 27478 bcm_tomahawk3_field_qualify_TtlClassOne( 27479 int unit, 27480 bcm_field_entry_t entry, 27481 bcm_class_t data, 27482 bcm_class_t mask) 27483 { 27484 return bcm_esw_field_qualify_TtlClassOne(unit, entry, data, mask); 27485 } 27486 #endif 27487 27488 #ifdef BCM_TOMAHAWK3_SUPPORT 27489 int 27490 bcm_tomahawk3_field_qualify_TtlClassOne_get( 27491 int unit, 27492 bcm_field_entry_t entry, 27493 bcm_class_t *data, 27494 bcm_class_t *mask) 27495 { 27496 return bcm_esw_field_qualify_TtlClassOne_get(unit, entry, data, mask); 27497 } 27498 #endif 27499 27500 #ifdef BCM_TOMAHAWK3_SUPPORT 27501 int 27502 bcm_tomahawk3_field_qualify_TtlClassZero( 27503 int unit, 27504 bcm_field_entry_t entry, 27505 bcm_class_t data, 27506 bcm_class_t mask) 27507 { 27508 return bcm_esw_field_qualify_TtlClassZero(unit, entry, data, mask); 27509 } 27510 #endif 27511 27512 #ifdef BCM_TOMAHAWK3_SUPPORT 27513 int 27514 bcm_tomahawk3_field_qualify_TtlClassZero_get( 27515 int unit, 27516 bcm_field_entry_t entry, 27517 bcm_class_t *data, 27518 bcm_class_t *mask) 27519 { 27520 return bcm_esw_field_qualify_TtlClassZero_get(unit, entry, data, mask); 27521 } 27522 #endif 27523 27524 #ifdef BCM_TOMAHAWK3_SUPPORT 27525 int 27526 bcm_tomahawk3_field_qualify_Ttl_get( 27527 int unit, 27528 bcm_field_entry_t entry, 27529 uint8 *data, 27530 uint8 *mask) 27531 { 27532 return bcm_esw_field_qualify_Ttl_get(unit, entry, data, mask); 27533 } 27534 #endif 27535 27536 #ifdef BCM_TOMAHAWK3_SUPPORT 27537 int 27538 bcm_tomahawk3_field_qualify_TunnelId( 27539 int unit, 27540 bcm_field_entry_t entry, 27541 uint32 data, 27542 uint32 mask) 27543 { 27544 return bcm_esw_field_qualify_TunnelId(unit, entry, data, mask); 27545 } 27546 #endif 27547 27548 #ifdef BCM_TOMAHAWK3_SUPPORT 27549 int 27550 bcm_tomahawk3_field_qualify_TunnelId_get( 27551 int unit, 27552 bcm_field_entry_t entry, 27553 uint32 *data, 27554 uint32 *mask) 27555 { 27556 return bcm_esw_field_qualify_TunnelId_get(unit, entry, data, mask); 27557 } 27558 #endif 27559 27560 #ifdef BCM_TOMAHAWK3_SUPPORT 27561 int 27562 bcm_tomahawk3_field_qualify_TunnelPayloadDip( 27563 int unit, 27564 bcm_field_entry_t entry, 27565 bcm_ip_t data, 27566 bcm_ip_t mask) 27567 { 27568 return bcm_esw_field_qualify_TunnelPayloadDip(unit, entry, data, mask); 27569 } 27570 #endif 27571 27572 #ifdef BCM_TOMAHAWK3_SUPPORT 27573 int 27574 bcm_tomahawk3_field_qualify_TunnelPayloadDip6( 27575 int unit, 27576 bcm_field_entry_t entry, 27577 bcm_ip6_t data, 27578 bcm_ip6_t mask) 27579 { 27580 return bcm_esw_field_qualify_TunnelPayloadDip6(unit, entry, data, mask); 27581 } 27582 #endif 27583 27584 #ifdef BCM_TOMAHAWK3_SUPPORT 27585 int 27586 bcm_tomahawk3_field_qualify_TunnelPayloadDip6_get( 27587 int unit, 27588 bcm_field_entry_t entry, 27589 bcm_ip6_t *data, 27590 bcm_ip6_t *mask) 27591 { 27592 return bcm_esw_field_qualify_TunnelPayloadDip6_get(unit, entry, data, mask); 27593 } 27594 #endif 27595 27596 #ifdef BCM_TOMAHAWK3_SUPPORT 27597 int 27598 bcm_tomahawk3_field_qualify_TunnelPayloadDip_get( 27599 int unit, 27600 bcm_field_entry_t entry, 27601 bcm_ip_t *data, 27602 bcm_ip_t *mask) 27603 { 27604 return bcm_esw_field_qualify_TunnelPayloadDip_get(unit, entry, data, mask); 27605 } 27606 #endif 27607 27608 #ifdef BCM_TOMAHAWK3_SUPPORT 27609 int 27610 bcm_tomahawk3_field_qualify_TunnelPayloadDstMac( 27611 int unit, 27612 bcm_field_entry_t entry, 27613 bcm_mac_t data, 27614 bcm_mac_t mask) 27615 { 27616 return bcm_esw_field_qualify_TunnelPayloadDstMac(unit, entry, data, mask); 27617 } 27618 #endif 27619 27620 #ifdef BCM_TOMAHAWK3_SUPPORT 27621 int 27622 bcm_tomahawk3_field_qualify_TunnelPayloadDstMac_get( 27623 int unit, 27624 bcm_field_entry_t entry, 27625 bcm_mac_t *data, 27626 bcm_mac_t *mask) 27627 { 27628 return bcm_esw_field_qualify_TunnelPayloadDstMac_get(unit, entry, data, mask); 27629 } 27630 #endif 27631 27632 #ifdef BCM_TOMAHAWK3_SUPPORT 27633 int 27634 bcm_tomahawk3_field_qualify_TunnelPayloadEtherType( 27635 int unit, 27636 bcm_field_entry_t entry, 27637 uint16 data, 27638 uint16 mask) 27639 { 27640 return bcm_esw_field_qualify_TunnelPayloadEtherType(unit, entry, data, mask); 27641 } 27642 #endif 27643 27644 #ifdef BCM_TOMAHAWK3_SUPPORT 27645 int 27646 bcm_tomahawk3_field_qualify_TunnelPayloadEtherType_get( 27647 int unit, 27648 bcm_field_entry_t entry, 27649 uint16 *data, 27650 uint16 *mask) 27651 { 27652 return bcm_esw_field_qualify_TunnelPayloadEtherType_get(unit, entry, data, mask); 27653 } 27654 #endif 27655 27656 #ifdef BCM_TOMAHAWK3_SUPPORT 27657 int 27658 bcm_tomahawk3_field_qualify_TunnelPayloadIp4Length( 27659 int unit, 27660 bcm_field_entry_t entry, 27661 uint16 data, 27662 uint16 mask) 27663 { 27664 return bcm_esw_field_qualify_TunnelPayloadIp4Length(unit, entry, data, mask); 27665 } 27666 #endif 27667 27668 #ifdef BCM_TOMAHAWK3_SUPPORT 27669 int 27670 bcm_tomahawk3_field_qualify_TunnelPayloadIp4Length_get( 27671 int unit, 27672 bcm_field_entry_t entry, 27673 uint16 *data, 27674 uint16 *mask) 27675 { 27676 return bcm_esw_field_qualify_TunnelPayloadIp4Length_get(unit, entry, data, mask); 27677 } 27678 #endif 27679 27680 #ifdef BCM_TOMAHAWK3_SUPPORT 27681 int 27682 bcm_tomahawk3_field_qualify_TunnelPayloadIp6Length( 27683 int unit, 27684 bcm_field_entry_t entry, 27685 uint16 data, 27686 uint16 mask) 27687 { 27688 return bcm_esw_field_qualify_TunnelPayloadIp6Length(unit, entry, data, mask); 27689 } 27690 #endif 27691 27692 #ifdef BCM_TOMAHAWK3_SUPPORT 27693 int 27694 bcm_tomahawk3_field_qualify_TunnelPayloadIp6Length_get( 27695 int unit, 27696 bcm_field_entry_t entry, 27697 uint16 *data, 27698 uint16 *mask) 27699 { 27700 return bcm_esw_field_qualify_TunnelPayloadIp6Length_get(unit, entry, data, mask); 27701 } 27702 #endif 27703 27704 #ifdef BCM_TOMAHAWK3_SUPPORT 27705 int 27706 bcm_tomahawk3_field_qualify_TunnelPayloadIpProtocol( 27707 int unit, 27708 bcm_field_entry_t entry, 27709 uint8 data, 27710 uint8 mask) 27711 { 27712 return bcm_esw_field_qualify_TunnelPayloadIpProtocol(unit, entry, data, mask); 27713 } 27714 #endif 27715 27716 #ifdef BCM_TOMAHAWK3_SUPPORT 27717 int 27718 bcm_tomahawk3_field_qualify_TunnelPayloadIpProtocol_get( 27719 int unit, 27720 bcm_field_entry_t entry, 27721 uint8 *data, 27722 uint8 *mask) 27723 { 27724 return bcm_esw_field_qualify_TunnelPayloadIpProtocol_get(unit, entry, data, mask); 27725 } 27726 #endif 27727 27728 #ifdef BCM_TOMAHAWK3_SUPPORT 27729 int 27730 bcm_tomahawk3_field_qualify_TunnelPayloadL4DstPort( 27731 int unit, 27732 bcm_field_entry_t entry, 27733 bcm_l4_port_t data, 27734 bcm_l4_port_t mask) 27735 { 27736 return bcm_esw_field_qualify_TunnelPayloadL4DstPort(unit, entry, data, mask); 27737 } 27738 #endif 27739 27740 #ifdef BCM_TOMAHAWK3_SUPPORT 27741 int 27742 bcm_tomahawk3_field_qualify_TunnelPayloadL4DstPort_get( 27743 int unit, 27744 bcm_field_entry_t entry, 27745 bcm_l4_port_t *data, 27746 bcm_l4_port_t *mask) 27747 { 27748 return bcm_esw_field_qualify_TunnelPayloadL4DstPort_get(unit, entry, data, mask); 27749 } 27750 #endif 27751 27752 #ifdef BCM_TOMAHAWK3_SUPPORT 27753 int 27754 bcm_tomahawk3_field_qualify_TunnelPayloadL4SrcPort( 27755 int unit, 27756 bcm_field_entry_t entry, 27757 bcm_l4_port_t data, 27758 bcm_l4_port_t mask) 27759 { 27760 return bcm_esw_field_qualify_TunnelPayloadL4SrcPort(unit, entry, data, mask); 27761 } 27762 #endif 27763 27764 #ifdef BCM_TOMAHAWK3_SUPPORT 27765 int 27766 bcm_tomahawk3_field_qualify_TunnelPayloadL4SrcPort_get( 27767 int unit, 27768 bcm_field_entry_t entry, 27769 bcm_l4_port_t *data, 27770 bcm_l4_port_t *mask) 27771 { 27772 return bcm_esw_field_qualify_TunnelPayloadL4SrcPort_get(unit, entry, data, mask); 27773 } 27774 #endif 27775 27776 #ifdef BCM_TOMAHAWK3_SUPPORT 27777 int 27778 bcm_tomahawk3_field_qualify_TunnelPayloadOuterVlan( 27779 int unit, 27780 bcm_field_entry_t entry, 27781 bcm_vlan_t data, 27782 bcm_vlan_t mask) 27783 { 27784 return bcm_esw_field_qualify_TunnelPayloadOuterVlan(unit, entry, data, mask); 27785 } 27786 #endif 27787 27788 #ifdef BCM_TOMAHAWK3_SUPPORT 27789 int 27790 bcm_tomahawk3_field_qualify_TunnelPayloadOuterVlanCfi( 27791 int unit, 27792 bcm_field_entry_t entry, 27793 uint8 data, 27794 uint8 mask) 27795 { 27796 return bcm_esw_field_qualify_TunnelPayloadOuterVlanCfi(unit, entry, data, mask); 27797 } 27798 #endif 27799 27800 #ifdef BCM_TOMAHAWK3_SUPPORT 27801 int 27802 bcm_tomahawk3_field_qualify_TunnelPayloadOuterVlanCfi_get( 27803 int unit, 27804 bcm_field_entry_t entry, 27805 uint8 *data, 27806 uint8 *mask) 27807 { 27808 return bcm_esw_field_qualify_TunnelPayloadOuterVlanCfi_get(unit, entry, data, mask); 27809 } 27810 #endif 27811 27812 #ifdef BCM_TOMAHAWK3_SUPPORT 27813 int 27814 bcm_tomahawk3_field_qualify_TunnelPayloadOuterVlanId( 27815 int unit, 27816 bcm_field_entry_t entry, 27817 bcm_vlan_t data, 27818 bcm_vlan_t mask) 27819 { 27820 return bcm_esw_field_qualify_TunnelPayloadOuterVlanId(unit, entry, data, mask); 27821 } 27822 #endif 27823 27824 #ifdef BCM_TOMAHAWK3_SUPPORT 27825 int 27826 bcm_tomahawk3_field_qualify_TunnelPayloadOuterVlanId_get( 27827 int unit, 27828 bcm_field_entry_t entry, 27829 bcm_vlan_t *data, 27830 bcm_vlan_t *mask) 27831 { 27832 return bcm_esw_field_qualify_TunnelPayloadOuterVlanId_get(unit, entry, data, mask); 27833 } 27834 #endif 27835 27836 #ifdef BCM_TOMAHAWK3_SUPPORT 27837 int 27838 bcm_tomahawk3_field_qualify_TunnelPayloadOuterVlanPri( 27839 int unit, 27840 bcm_field_entry_t entry, 27841 uint8 data, 27842 uint8 mask) 27843 { 27844 return bcm_esw_field_qualify_TunnelPayloadOuterVlanPri(unit, entry, data, mask); 27845 } 27846 #endif 27847 27848 #ifdef BCM_TOMAHAWK3_SUPPORT 27849 int 27850 bcm_tomahawk3_field_qualify_TunnelPayloadOuterVlanPri_get( 27851 int unit, 27852 bcm_field_entry_t entry, 27853 uint8 *data, 27854 uint8 *mask) 27855 { 27856 return bcm_esw_field_qualify_TunnelPayloadOuterVlanPri_get(unit, entry, data, mask); 27857 } 27858 #endif 27859 27860 #ifdef BCM_TOMAHAWK3_SUPPORT 27861 int 27862 bcm_tomahawk3_field_qualify_TunnelPayloadOuterVlan_get( 27863 int unit, 27864 bcm_field_entry_t entry, 27865 bcm_vlan_t *data, 27866 bcm_vlan_t *mask) 27867 { 27868 return bcm_esw_field_qualify_TunnelPayloadOuterVlan_get(unit, entry, data, mask); 27869 } 27870 #endif 27871 27872 #ifdef BCM_TOMAHAWK3_SUPPORT 27873 int 27874 bcm_tomahawk3_field_qualify_TunnelPayloadSip( 27875 int unit, 27876 bcm_field_entry_t entry, 27877 bcm_ip_t data, 27878 bcm_ip_t mask) 27879 { 27880 return bcm_esw_field_qualify_TunnelPayloadSip(unit, entry, data, mask); 27881 } 27882 #endif 27883 27884 #ifdef BCM_TOMAHAWK3_SUPPORT 27885 int 27886 bcm_tomahawk3_field_qualify_TunnelPayloadSip6( 27887 int unit, 27888 bcm_field_entry_t entry, 27889 bcm_ip6_t data, 27890 bcm_ip6_t mask) 27891 { 27892 return bcm_esw_field_qualify_TunnelPayloadSip6(unit, entry, data, mask); 27893 } 27894 #endif 27895 27896 #ifdef BCM_TOMAHAWK3_SUPPORT 27897 int 27898 bcm_tomahawk3_field_qualify_TunnelPayloadSip6_get( 27899 int unit, 27900 bcm_field_entry_t entry, 27901 bcm_ip6_t *data, 27902 bcm_ip6_t *mask) 27903 { 27904 return bcm_esw_field_qualify_TunnelPayloadSip6_get(unit, entry, data, mask); 27905 } 27906 #endif 27907 27908 #ifdef BCM_TOMAHAWK3_SUPPORT 27909 int 27910 bcm_tomahawk3_field_qualify_TunnelPayloadSip_get( 27911 int unit, 27912 bcm_field_entry_t entry, 27913 bcm_ip_t *data, 27914 bcm_ip_t *mask) 27915 { 27916 return bcm_esw_field_qualify_TunnelPayloadSip_get(unit, entry, data, mask); 27917 } 27918 #endif 27919 27920 #ifdef BCM_TOMAHAWK3_SUPPORT 27921 int 27922 bcm_tomahawk3_field_qualify_TunnelPayloadSrcMac( 27923 int unit, 27924 bcm_field_entry_t entry, 27925 bcm_mac_t data, 27926 bcm_mac_t mask) 27927 { 27928 return bcm_esw_field_qualify_TunnelPayloadSrcMac(unit, entry, data, mask); 27929 } 27930 #endif 27931 27932 #ifdef BCM_TOMAHAWK3_SUPPORT 27933 int 27934 bcm_tomahawk3_field_qualify_TunnelPayloadSrcMac_get( 27935 int unit, 27936 bcm_field_entry_t entry, 27937 bcm_mac_t *data, 27938 bcm_mac_t *mask) 27939 { 27940 return bcm_esw_field_qualify_TunnelPayloadSrcMac_get(unit, entry, data, mask); 27941 } 27942 #endif 27943 27944 #ifdef BCM_TOMAHAWK3_SUPPORT 27945 int 27946 bcm_tomahawk3_field_qualify_TunnelSubType( 27947 int unit, 27948 bcm_field_entry_t entry, 27949 bcm_field_TunnelSubType_t type) 27950 { 27951 return bcm_esw_field_qualify_TunnelSubType(unit, entry, type); 27952 } 27953 #endif 27954 27955 #ifdef BCM_TOMAHAWK3_SUPPORT 27956 int 27957 bcm_tomahawk3_field_qualify_TunnelSubType_get( 27958 int unit, 27959 bcm_field_entry_t entry, 27960 bcm_field_TunnelSubType_t *type) 27961 { 27962 return bcm_esw_field_qualify_TunnelSubType_get(unit, entry, type); 27963 } 27964 #endif 27965 27966 #ifdef BCM_TOMAHAWK3_SUPPORT 27967 int 27968 bcm_tomahawk3_field_qualify_TunnelTerminated( 27969 int unit, 27970 bcm_field_entry_t entry, 27971 uint8 data, 27972 uint8 mask) 27973 { 27974 return bcm_esw_field_qualify_TunnelTerminated(unit, entry, data, mask); 27975 } 27976 #endif 27977 27978 #ifdef BCM_TOMAHAWK3_SUPPORT 27979 int 27980 bcm_tomahawk3_field_qualify_TunnelTerminatedHit( 27981 int unit, 27982 bcm_field_entry_t entry, 27983 uint8 data, 27984 uint8 mask) 27985 { 27986 return bcm_esw_field_qualify_TunnelTerminatedHit(unit, entry, data, mask); 27987 } 27988 #endif 27989 27990 #ifdef BCM_TOMAHAWK3_SUPPORT 27991 int 27992 bcm_tomahawk3_field_qualify_TunnelTerminatedHit_get( 27993 int unit, 27994 bcm_field_entry_t entry, 27995 uint8 *data, 27996 uint8 *mask) 27997 { 27998 return bcm_esw_field_qualify_TunnelTerminatedHit_get(unit, entry, data, mask); 27999 } 28000 #endif 28001 28002 #ifdef BCM_TOMAHAWK3_SUPPORT 28003 int 28004 bcm_tomahawk3_field_qualify_TunnelTerminatedValue( 28005 int unit, 28006 bcm_field_entry_t entry, 28007 uint64 data, 28008 uint64 mask) 28009 { 28010 return bcm_esw_field_qualify_TunnelTerminatedValue(unit, entry, data, mask); 28011 } 28012 #endif 28013 28014 #ifdef BCM_TOMAHAWK3_SUPPORT 28015 int 28016 bcm_tomahawk3_field_qualify_TunnelTerminatedValue_get( 28017 int unit, 28018 bcm_field_entry_t entry, 28019 uint64 *data, 28020 uint64 *mask) 28021 { 28022 return bcm_esw_field_qualify_TunnelTerminatedValue_get(unit, entry, data, mask); 28023 } 28024 #endif 28025 28026 #ifdef BCM_TOMAHAWK3_SUPPORT 28027 int 28028 bcm_tomahawk3_field_qualify_TunnelTerminated_get( 28029 int unit, 28030 bcm_field_entry_t entry, 28031 uint8 *data, 28032 uint8 *mask) 28033 { 28034 return bcm_esw_field_qualify_TunnelTerminated_get(unit, entry, data, mask); 28035 } 28036 #endif 28037 28038 #ifdef BCM_TOMAHAWK3_SUPPORT 28039 int 28040 bcm_tomahawk3_field_qualify_TunnelType( 28041 int unit, 28042 bcm_field_entry_t entry, 28043 bcm_field_TunnelType_t tunnel_type) 28044 { 28045 return bcm_esw_field_qualify_TunnelType(unit, entry, tunnel_type); 28046 } 28047 #endif 28048 28049 #ifdef BCM_TOMAHAWK3_SUPPORT 28050 int 28051 bcm_tomahawk3_field_qualify_TunnelType_get( 28052 int unit, 28053 bcm_field_entry_t entry, 28054 bcm_field_TunnelType_t *tunnel_type) 28055 { 28056 return bcm_esw_field_qualify_TunnelType_get(unit, entry, tunnel_type); 28057 } 28058 #endif 28059 28060 #ifdef BCM_TOMAHAWK3_SUPPORT 28061 int 28062 bcm_tomahawk3_field_qualify_UdfClass( 28063 int unit, 28064 bcm_field_entry_t entry, 28065 uint32 data, 28066 uint32 mask) 28067 { 28068 return bcm_esw_field_qualify_UdfClass(unit, entry, data, mask); 28069 } 28070 #endif 28071 28072 #ifdef BCM_TOMAHAWK3_SUPPORT 28073 int 28074 bcm_tomahawk3_field_qualify_UdfClass_get( 28075 int unit, 28076 bcm_field_entry_t entry, 28077 uint32 *data, 28078 uint32 *mask) 28079 { 28080 return bcm_esw_field_qualify_UdfClass_get(unit, entry, data, mask); 28081 } 28082 #endif 28083 28084 #ifdef BCM_TOMAHAWK3_SUPPORT 28085 int 28086 bcm_tomahawk3_field_qualify_VPortRangeCheck( 28087 int unit, 28088 bcm_field_entry_t entry, 28089 bcm_field_range_t range, 28090 int invert) 28091 { 28092 return bcm_esw_field_qualify_VPortRangeCheck(unit, entry, range, invert); 28093 } 28094 #endif 28095 28096 #ifdef BCM_TOMAHAWK3_SUPPORT 28097 int 28098 bcm_tomahawk3_field_qualify_VPortRangeCheck_get( 28099 int unit, 28100 bcm_field_entry_t entry, 28101 int max_count, 28102 bcm_field_range_t *range, 28103 int *invert, 28104 int *count) 28105 { 28106 return bcm_esw_field_qualify_VPortRangeCheck_get(unit, entry, max_count, range, invert, count); 28107 } 28108 #endif 28109 28110 int 28111 bcm_tomahawk3_field_qualify_VlanAction( 28112 int unit, 28113 bcm_field_entry_t entry, 28114 uint32 data, 28115 uint32 mask) 28116 { 28117 return BCM_E_UNAVAIL; 28118 } 28119 28120 int 28121 bcm_tomahawk3_field_qualify_VlanAction_get( 28122 int unit, 28123 bcm_field_entry_t entry, 28124 uint32 *data, 28125 uint32 *mask) 28126 { 28127 return BCM_E_UNAVAIL; 28128 } 28129 28130 #ifdef BCM_TOMAHAWK3_SUPPORT 28131 int 28132 bcm_tomahawk3_field_qualify_VlanFormat( 28133 int unit, 28134 bcm_field_entry_t entry, 28135 uint8 data, 28136 uint8 mask) 28137 { 28138 return bcm_esw_field_qualify_VlanFormat(unit, entry, data, mask); 28139 } 28140 #endif 28141 28142 #ifdef BCM_TOMAHAWK3_SUPPORT 28143 int 28144 bcm_tomahawk3_field_qualify_VlanFormat_get( 28145 int unit, 28146 bcm_field_entry_t entry, 28147 uint8 *data, 28148 uint8 *mask) 28149 { 28150 return bcm_esw_field_qualify_VlanFormat_get(unit, entry, data, mask); 28151 } 28152 #endif 28153 28154 #ifdef BCM_TOMAHAWK3_SUPPORT 28155 int 28156 bcm_tomahawk3_field_qualify_VlanSREnable( 28157 int unit, 28158 bcm_field_entry_t entry, 28159 uint8 data) 28160 { 28161 return bcm_esw_field_qualify_VlanSREnable(unit, entry, data); 28162 } 28163 #endif 28164 28165 #ifdef BCM_TOMAHAWK3_SUPPORT 28166 int 28167 bcm_tomahawk3_field_qualify_VlanSREnable_get( 28168 int unit, 28169 bcm_field_entry_t entry, 28170 uint8 *data) 28171 { 28172 return bcm_esw_field_qualify_VlanSREnable_get(unit, entry, data); 28173 } 28174 #endif 28175 28176 #ifdef BCM_TOMAHAWK3_SUPPORT 28177 int 28178 bcm_tomahawk3_field_qualify_VlanSRLanId( 28179 int unit, 28180 bcm_field_entry_t entry, 28181 uint8 lan_id) 28182 { 28183 return bcm_esw_field_qualify_VlanSRLanId(unit, entry, lan_id); 28184 } 28185 #endif 28186 28187 #ifdef BCM_TOMAHAWK3_SUPPORT 28188 int 28189 bcm_tomahawk3_field_qualify_VlanSRLanId_get( 28190 int unit, 28191 bcm_field_entry_t entry, 28192 uint8 *lan_id) 28193 { 28194 return bcm_esw_field_qualify_VlanSRLanId_get(unit, entry, lan_id); 28195 } 28196 #endif 28197 28198 #ifdef BCM_TOMAHAWK3_SUPPORT 28199 int 28200 bcm_tomahawk3_field_qualify_VlanTranslateClassId( 28201 int unit, 28202 bcm_field_entry_t entry, 28203 uint16 data, 28204 uint16 mask) 28205 { 28206 return bcm_esw_field_qualify_VlanTranslateClassId(unit, entry, data, mask); 28207 } 28208 #endif 28209 28210 #ifdef BCM_TOMAHAWK3_SUPPORT 28211 int 28212 bcm_tomahawk3_field_qualify_VlanTranslateClassId_get( 28213 int unit, 28214 bcm_field_entry_t entry, 28215 uint16 *data, 28216 uint16 *mask) 28217 { 28218 return bcm_esw_field_qualify_VlanTranslateClassId_get(unit, entry, data, mask); 28219 } 28220 #endif 28221 28222 #ifdef BCM_TOMAHAWK3_SUPPORT 28223 int 28224 bcm_tomahawk3_field_qualify_VlanTranslationHit( 28225 int unit, 28226 bcm_field_entry_t entry, 28227 uint8 data, 28228 uint8 mask) 28229 { 28230 return bcm_esw_field_qualify_VlanTranslationHit(unit, entry, data, mask); 28231 } 28232 #endif 28233 28234 #ifdef BCM_TOMAHAWK3_SUPPORT 28235 int 28236 bcm_tomahawk3_field_qualify_VlanTranslationHit_get( 28237 int unit, 28238 bcm_field_entry_t entry, 28239 uint8 *data, 28240 uint8 *mask) 28241 { 28242 return bcm_esw_field_qualify_VlanTranslationHit_get(unit, entry, data, mask); 28243 } 28244 #endif 28245 28246 #ifdef BCM_TOMAHAWK3_SUPPORT 28247 int 28248 bcm_tomahawk3_field_qualify_VlanTranslationValue( 28249 int unit, 28250 bcm_field_entry_t entry, 28251 uint64 data, 28252 uint64 mask) 28253 { 28254 return bcm_esw_field_qualify_VlanTranslationValue(unit, entry, data, mask); 28255 } 28256 #endif 28257 28258 #ifdef BCM_TOMAHAWK3_SUPPORT 28259 int 28260 bcm_tomahawk3_field_qualify_VlanTranslationValue_get( 28261 int unit, 28262 bcm_field_entry_t entry, 28263 uint64 *data, 28264 uint64 *mask) 28265 { 28266 return bcm_esw_field_qualify_VlanTranslationValue_get(unit, entry, data, mask); 28267 } 28268 #endif 28269 28270 #ifdef BCM_TOMAHAWK3_SUPPORT 28271 int 28272 bcm_tomahawk3_field_qualify_VnTag( 28273 int unit, 28274 bcm_field_entry_t entry, 28275 uint32 data, 28276 uint32 mask) 28277 { 28278 return bcm_esw_field_qualify_VnTag(unit, entry, data, mask); 28279 } 28280 #endif 28281 28282 #ifdef BCM_TOMAHAWK3_SUPPORT 28283 int 28284 bcm_tomahawk3_field_qualify_VnTag_get( 28285 int unit, 28286 bcm_field_entry_t entry, 28287 uint32 *data, 28288 uint32 *mask) 28289 { 28290 return bcm_esw_field_qualify_VnTag_get(unit, entry, data, mask); 28291 } 28292 #endif 28293 28294 #ifdef BCM_TOMAHAWK3_SUPPORT 28295 int 28296 bcm_tomahawk3_field_qualify_Vpn( 28297 int unit, 28298 bcm_field_entry_t entry, 28299 bcm_vpn_t data, 28300 bcm_vpn_t mask) 28301 { 28302 return bcm_esw_field_qualify_Vpn(unit, entry, data, mask); 28303 } 28304 #endif 28305 28306 #ifdef BCM_TOMAHAWK3_SUPPORT 28307 int 28308 bcm_tomahawk3_field_qualify_VpnUnknownDstMacDstPort( 28309 int unit, 28310 bcm_field_entry_t entry, 28311 bcm_gport_t port_id) 28312 { 28313 return bcm_esw_field_qualify_VpnUnknownDstMacDstPort(unit, entry, port_id); 28314 } 28315 #endif 28316 28317 #ifdef BCM_TOMAHAWK3_SUPPORT 28318 int 28319 bcm_tomahawk3_field_qualify_VpnUnknownDstMacDstPort_get( 28320 int unit, 28321 bcm_field_entry_t entry, 28322 bcm_gport_t *port_id) 28323 { 28324 return bcm_esw_field_qualify_VpnUnknownDstMacDstPort_get(unit, entry, port_id); 28325 } 28326 #endif 28327 28328 #ifdef BCM_TOMAHAWK3_SUPPORT 28329 int 28330 bcm_tomahawk3_field_qualify_Vpn_get( 28331 int unit, 28332 bcm_field_entry_t entry, 28333 bcm_vpn_t *data, 28334 bcm_vpn_t *mask) 28335 { 28336 return bcm_esw_field_qualify_Vpn_get(unit, entry, data, mask); 28337 } 28338 #endif 28339 28340 #ifdef BCM_TOMAHAWK3_SUPPORT 28341 int 28342 bcm_tomahawk3_field_qualify_Vrf( 28343 int unit, 28344 bcm_field_entry_t entry, 28345 uint32 data, 28346 uint32 mask) 28347 { 28348 return bcm_esw_field_qualify_Vrf(unit, entry, data, mask); 28349 } 28350 #endif 28351 28352 #ifdef BCM_TOMAHAWK3_SUPPORT 28353 int 28354 bcm_tomahawk3_field_qualify_Vrf_get( 28355 int unit, 28356 bcm_field_entry_t entry, 28357 uint32 *data, 28358 uint32 *mask) 28359 { 28360 return bcm_esw_field_qualify_Vrf_get(unit, entry, data, mask); 28361 } 28362 #endif 28363 28364 #ifdef BCM_TOMAHAWK3_SUPPORT 28365 int 28366 bcm_tomahawk3_field_qualify_VxlanClassValid( 28367 int unit, 28368 bcm_field_entry_t entry, 28369 uint8 data, 28370 uint8 mask) 28371 { 28372 return bcm_esw_field_qualify_VxlanClassValid(unit, entry, data, mask); 28373 } 28374 #endif 28375 28376 #ifdef BCM_TOMAHAWK3_SUPPORT 28377 int 28378 bcm_tomahawk3_field_qualify_VxlanClassValid_get( 28379 int unit, 28380 bcm_field_entry_t entry, 28381 uint8 *data, 28382 uint8 *mask) 28383 { 28384 return bcm_esw_field_qualify_VxlanClassValid_get(unit, entry, data, mask); 28385 } 28386 #endif 28387 28388 #ifdef BCM_TOMAHAWK3_SUPPORT 28389 int 28390 bcm_tomahawk3_field_qualify_VxlanFlags( 28391 int unit, 28392 bcm_field_entry_t entry, 28393 uint8 data, 28394 uint8 mask) 28395 { 28396 return bcm_esw_field_qualify_VxlanFlags(unit, entry, data, mask); 28397 } 28398 #endif 28399 28400 #ifdef BCM_TOMAHAWK3_SUPPORT 28401 int 28402 bcm_tomahawk3_field_qualify_VxlanFlags_get( 28403 int unit, 28404 bcm_field_entry_t entry, 28405 uint8 *data, 28406 uint8 *mask) 28407 { 28408 return bcm_esw_field_qualify_VxlanFlags_get(unit, entry, data, mask); 28409 } 28410 #endif 28411 28412 #ifdef BCM_TOMAHAWK3_SUPPORT 28413 int 28414 bcm_tomahawk3_field_qualify_VxlanGbpPresent( 28415 int unit, 28416 bcm_field_entry_t entry, 28417 uint8 data, 28418 uint8 mask) 28419 { 28420 return bcm_esw_field_qualify_VxlanGbpPresent(unit, entry, data, mask); 28421 } 28422 #endif 28423 28424 #ifdef BCM_TOMAHAWK3_SUPPORT 28425 int 28426 bcm_tomahawk3_field_qualify_VxlanGbpPresent_get( 28427 int unit, 28428 bcm_field_entry_t entry, 28429 uint8 *data, 28430 uint8 *mask) 28431 { 28432 return bcm_esw_field_qualify_VxlanGbpPresent_get(unit, entry, data, mask); 28433 } 28434 #endif 28435 28436 #ifdef BCM_TOMAHAWK3_SUPPORT 28437 int 28438 bcm_tomahawk3_field_qualify_VxlanHeaderBits56_63( 28439 int unit, 28440 bcm_field_entry_t entry, 28441 uint8 data, 28442 uint8 mask) 28443 { 28444 return bcm_esw_field_qualify_VxlanHeaderBits56_63(unit, entry, data, mask); 28445 } 28446 #endif 28447 28448 #ifdef BCM_TOMAHAWK3_SUPPORT 28449 int 28450 bcm_tomahawk3_field_qualify_VxlanHeaderBits56_63_get( 28451 int unit, 28452 bcm_field_entry_t entry, 28453 uint8 *data, 28454 uint8 *mask) 28455 { 28456 return bcm_esw_field_qualify_VxlanHeaderBits56_63_get(unit, entry, data, mask); 28457 } 28458 #endif 28459 28460 #ifdef BCM_TOMAHAWK3_SUPPORT 28461 int 28462 bcm_tomahawk3_field_qualify_VxlanHeaderBits8_31( 28463 int unit, 28464 bcm_field_entry_t entry, 28465 uint32 data, 28466 uint32 mask) 28467 { 28468 return bcm_esw_field_qualify_VxlanHeaderBits8_31(unit, entry, data, mask); 28469 } 28470 #endif 28471 28472 #ifdef BCM_TOMAHAWK3_SUPPORT 28473 int 28474 bcm_tomahawk3_field_qualify_VxlanHeaderBits8_31_get( 28475 int unit, 28476 bcm_field_entry_t entry, 28477 uint32 *data, 28478 uint32 *mask) 28479 { 28480 return bcm_esw_field_qualify_VxlanHeaderBits8_31_get(unit, entry, data, mask); 28481 } 28482 #endif 28483 28484 #ifdef BCM_TOMAHAWK3_SUPPORT 28485 int 28486 bcm_tomahawk3_field_qualify_VxlanNetworkId( 28487 int unit, 28488 bcm_field_entry_t entry, 28489 uint32 data, 28490 uint32 mask) 28491 { 28492 return bcm_esw_field_qualify_VxlanNetworkId(unit, entry, data, mask); 28493 } 28494 #endif 28495 28496 #ifdef BCM_TOMAHAWK3_SUPPORT 28497 int 28498 bcm_tomahawk3_field_qualify_VxlanNetworkId_get( 28499 int unit, 28500 bcm_field_entry_t entry, 28501 uint32 *data, 28502 uint32 *mask) 28503 { 28504 return bcm_esw_field_qualify_VxlanNetworkId_get(unit, entry, data, mask); 28505 } 28506 #endif 28507 28508 #ifdef BCM_TOMAHAWK3_SUPPORT 28509 int 28510 bcm_tomahawk3_field_qualify_VxlanPacket( 28511 int unit, 28512 bcm_field_entry_t entry, 28513 uint8 data, 28514 uint8 mask) 28515 { 28516 return bcm_esw_field_qualify_VxlanPacket(unit, entry, data, mask); 28517 } 28518 #endif 28519 28520 #ifdef BCM_TOMAHAWK3_SUPPORT 28521 int 28522 bcm_tomahawk3_field_qualify_VxlanPacket_get( 28523 int unit, 28524 bcm_field_entry_t entry, 28525 uint8 *data, 28526 uint8 *mask) 28527 { 28528 return bcm_esw_field_qualify_VxlanPacket_get(unit, entry, data, mask); 28529 } 28530 #endif 28531 28532 #ifdef BCM_TOMAHAWK3_SUPPORT 28533 int 28534 bcm_tomahawk3_field_qualify_VxlanPayloadVlanFormat( 28535 int unit, 28536 bcm_field_entry_t entry, 28537 uint8 data, 28538 uint8 mask) 28539 { 28540 return bcm_esw_field_qualify_VxlanPayloadVlanFormat(unit, entry, data, mask); 28541 } 28542 #endif 28543 28544 #ifdef BCM_TOMAHAWK3_SUPPORT 28545 int 28546 bcm_tomahawk3_field_qualify_VxlanPayloadVlanFormat_get( 28547 int unit, 28548 bcm_field_entry_t entry, 28549 uint8 *data, 28550 uint8 *mask) 28551 { 28552 return bcm_esw_field_qualify_VxlanPayloadVlanFormat_get(unit, entry, data, mask); 28553 } 28554 #endif 28555 28556 #ifdef BCM_TOMAHAWK3_SUPPORT 28557 int 28558 bcm_tomahawk3_field_qualify_VxlanVnidVlanTranslateHit( 28559 int unit, 28560 bcm_field_entry_t entry, 28561 uint8 data, 28562 uint8 mask) 28563 { 28564 return bcm_esw_field_qualify_VxlanVnidVlanTranslateHit(unit, entry, data, mask); 28565 } 28566 #endif 28567 28568 #ifdef BCM_TOMAHAWK3_SUPPORT 28569 int 28570 bcm_tomahawk3_field_qualify_VxlanVnidVlanTranslateHit_get( 28571 int unit, 28572 bcm_field_entry_t entry, 28573 uint8 *data, 28574 uint8 *mask) 28575 { 28576 return bcm_esw_field_qualify_VxlanVnidVlanTranslateHit_get(unit, entry, data, mask); 28577 } 28578 #endif 28579 28580 #ifdef BCM_TOMAHAWK3_SUPPORT 28581 int 28582 bcm_tomahawk3_field_qualify_clear( 28583 int unit, 28584 bcm_field_entry_t entry) 28585 { 28586 return bcm_esw_field_qualify_clear(unit, entry); 28587 } 28588 #endif 28589 28590 #ifdef BCM_TOMAHAWK3_SUPPORT 28591 int 28592 bcm_tomahawk3_field_qualify_data( 28593 int unit, 28594 bcm_field_entry_t eid, 28595 int qual_id, 28596 uint8 *data, 28597 uint8 *mask, 28598 uint16 length) 28599 { 28600 return bcm_esw_field_qualify_data(unit, eid, qual_id, data, mask, length); 28601 } 28602 #endif 28603 28604 #ifdef BCM_TOMAHAWK3_SUPPORT 28605 int 28606 bcm_tomahawk3_field_qualify_data_get( 28607 int unit, 28608 bcm_field_entry_t eid, 28609 int qual_id, 28610 uint16 length_max, 28611 uint8 *data, 28612 uint8 *mask, 28613 uint16 *length) 28614 { 28615 return bcm_esw_field_qualify_data_get(unit, eid, qual_id, length_max, data, mask, length); 28616 } 28617 #endif 28618 28619 #ifdef BCM_TOMAHAWK3_SUPPORT 28620 int 28621 bcm_tomahawk3_field_qualify_udf( 28622 int unit, 28623 bcm_field_entry_t eid, 28624 bcm_udf_id_t udf_id, 28625 int length, 28626 uint8 *data, 28627 uint8 *mask) 28628 { 28629 return bcm_esw_field_qualify_udf(unit, eid, udf_id, length, data, mask); 28630 } 28631 #endif 28632 28633 #ifdef BCM_TOMAHAWK3_SUPPORT 28634 int 28635 bcm_tomahawk3_field_qualify_udf_get( 28636 int unit, 28637 bcm_field_entry_t eid, 28638 bcm_udf_id_t udf_id, 28639 int max_length, 28640 uint8 *data, 28641 uint8 *mask, 28642 int *actual_length) 28643 { 28644 return bcm_esw_field_qualify_udf_get(unit, eid, udf_id, max_length, data, mask, actual_length); 28645 } 28646 #endif 28647 28648 #ifdef BCM_TOMAHAWK3_SUPPORT 28649 int 28650 bcm_tomahawk3_field_range_create( 28651 int unit, 28652 bcm_field_range_t *range, 28653 uint32 flags, 28654 bcm_l4_port_t min, 28655 bcm_l4_port_t max) 28656 { 28657 return bcm_esw_field_range_create(unit, range, flags, min, max); 28658 } 28659 #endif 28660 28661 #ifdef BCM_TOMAHAWK3_SUPPORT 28662 int 28663 bcm_tomahawk3_field_range_create_id( 28664 int unit, 28665 bcm_field_range_t range, 28666 uint32 flags, 28667 bcm_l4_port_t min, 28668 bcm_l4_port_t max) 28669 { 28670 return bcm_esw_field_range_create_id(unit, range, flags, min, max); 28671 } 28672 #endif 28673 28674 #ifdef BCM_TOMAHAWK3_SUPPORT 28675 int 28676 bcm_tomahawk3_field_range_destroy( 28677 int unit, 28678 bcm_field_range_t range) 28679 { 28680 return bcm_esw_field_range_destroy(unit, range); 28681 } 28682 #endif 28683 28684 #ifdef BCM_TOMAHAWK3_SUPPORT 28685 int 28686 bcm_tomahawk3_field_range_get( 28687 int unit, 28688 bcm_field_range_t range, 28689 uint32 *flags, 28690 bcm_l4_port_t *min, 28691 bcm_l4_port_t *max) 28692 { 28693 return bcm_esw_field_range_get(unit, range, flags, min, max); 28694 } 28695 #endif 28696 28697 #ifdef BCM_TOMAHAWK3_SUPPORT 28698 int 28699 bcm_tomahawk3_field_range_group_create( 28700 int unit, 28701 bcm_field_range_t *range, 28702 uint32 flags, 28703 bcm_l4_port_t min, 28704 bcm_l4_port_t max, 28705 bcm_if_group_t group) 28706 { 28707 return bcm_esw_field_range_group_create(unit, range, flags, min, max, group); 28708 } 28709 #endif 28710 28711 #ifdef BCM_TOMAHAWK3_SUPPORT 28712 int 28713 bcm_tomahawk3_field_range_group_create_id( 28714 int unit, 28715 bcm_field_range_t range, 28716 uint32 flags, 28717 bcm_l4_port_t min, 28718 bcm_l4_port_t max, 28719 bcm_if_group_t group) 28720 { 28721 return bcm_esw_field_range_group_create_id(unit, range, flags, min, max, group); 28722 } 28723 #endif 28724 28725 #ifdef BCM_TOMAHAWK3_SUPPORT 28726 int 28727 bcm_tomahawk3_field_range_info_get( 28728 int unit, 28729 bcm_field_stage_t stage, 28730 bcm_field_range_t *range_id, 28731 bcm_field_range_info_t *range_info) 28732 { 28733 return bcm_esw_field_range_info_get(unit, stage, range_id, range_info); 28734 } 28735 #endif 28736 28737 #ifdef BCM_TOMAHAWK3_SUPPORT 28738 int 28739 bcm_tomahawk3_field_range_multi_create( 28740 int unit, 28741 bcm_field_range_t *range_id, 28742 uint32 create_flags, 28743 int count, 28744 uint32 *range_flags, 28745 uint32 *min_value, 28746 uint32 *max_value) 28747 { 28748 return bcm_esw_field_range_multi_create(unit, range_id, create_flags, count, range_flags, min_value, max_value); 28749 } 28750 #endif 28751 28752 #ifdef BCM_TOMAHAWK3_SUPPORT 28753 int 28754 bcm_tomahawk3_field_range_multi_get( 28755 int unit, 28756 bcm_field_range_t range_id, 28757 int max_count, 28758 uint32 *range_flags, 28759 uint32 *minimum_value, 28760 uint32 *maxamum_value, 28761 int *actual_count) 28762 { 28763 return bcm_esw_field_range_multi_get(unit, range_id, max_count, range_flags, minimum_value, maxamum_value, actual_count); 28764 } 28765 #endif 28766 28767 #ifdef BCM_TOMAHAWK3_SUPPORT 28768 int 28769 bcm_tomahawk3_field_range_set( 28770 int unit, 28771 uint32 flags, 28772 bcm_field_stage_t stage, 28773 bcm_field_range_t range_id, 28774 bcm_field_range_info_t *range_info) 28775 { 28776 return bcm_esw_field_range_set(unit, flags, stage, range_id, range_info); 28777 } 28778 #endif 28779 28780 #ifdef BCM_TOMAHAWK3_SUPPORT 28781 int 28782 bcm_tomahawk3_field_resync( 28783 int unit) 28784 { 28785 return bcm_esw_field_resync(unit); 28786 } 28787 #endif 28788 28789 #ifdef BCM_TOMAHAWK3_SUPPORT 28790 int 28791 bcm_tomahawk3_field_sat_macsa_add( 28792 int unit, 28793 bcm_mac_t mac, 28794 uint32 class_id) 28795 { 28796 return bcm_esw_field_sat_macsa_add(unit, mac, class_id); 28797 } 28798 #endif 28799 28800 #ifdef BCM_TOMAHAWK3_SUPPORT 28801 int 28802 bcm_tomahawk3_field_sat_macsa_delete( 28803 int unit, 28804 bcm_mac_t mac) 28805 { 28806 return bcm_esw_field_sat_macsa_delete(unit, mac); 28807 } 28808 #endif 28809 28810 #ifdef BCM_TOMAHAWK3_SUPPORT 28811 int 28812 bcm_tomahawk3_field_sat_macsa_delete_all( 28813 int unit) 28814 { 28815 return bcm_esw_field_sat_macsa_delete_all(unit); 28816 } 28817 #endif 28818 28819 #ifdef BCM_TOMAHAWK3_SUPPORT 28820 int 28821 bcm_tomahawk3_field_sat_macsa_get( 28822 int unit, 28823 bcm_mac_t mac, 28824 uint32 *class_id) 28825 { 28826 return bcm_esw_field_sat_macsa_get(unit, mac, class_id); 28827 } 28828 #endif 28829 28830 #if defined(BROADCOM_DEBUG) 28831 #ifdef BCM_TOMAHAWK3_SUPPORT 28832 int 28833 bcm_tomahawk3_field_show( 28834 int unit, 28835 const char *pfx) 28836 { 28837 return bcm_esw_field_show(unit, pfx); 28838 } 28839 #endif 28840 #endif 28841 28842 #ifdef BCM_TOMAHAWK3_SUPPORT 28843 int 28844 bcm_tomahawk3_field_source_class_mode_get( 28845 int unit, 28846 bcm_field_stage_t stage, 28847 bcm_pbmp_t pbmp, 28848 bcm_field_src_class_mode_t *mode) 28849 { 28850 return bcm_esw_field_source_class_mode_get(unit, stage, pbmp, mode); 28851 } 28852 #endif 28853 28854 #ifdef BCM_TOMAHAWK3_SUPPORT 28855 int 28856 bcm_tomahawk3_field_source_class_mode_set( 28857 int unit, 28858 bcm_field_stage_t stage, 28859 bcm_pbmp_t pbmp, 28860 bcm_field_src_class_mode_t mode) 28861 { 28862 return bcm_esw_field_source_class_mode_set(unit, stage, pbmp, mode); 28863 } 28864 #endif 28865 28866 int 28867 bcm_tomahawk3_field_stage_info_get( 28868 int unit, 28869 bcm_field_stage_t stage, 28870 bcm_field_stage_info_t *info) 28871 { 28872 return BCM_E_UNAVAIL; 28873 } 28874 28875 #ifdef BCM_TOMAHAWK3_SUPPORT 28876 int 28877 bcm_tomahawk3_field_stage_qset_get( 28878 int unit, 28879 bcm_field_stage_t stage, 28880 uint8 presel, 28881 bcm_field_qset_t *qset) 28882 { 28883 return bcm_esw_field_stage_qset_get(unit, stage, presel, qset); 28884 } 28885 #endif 28886 28887 #ifdef BCM_TOMAHAWK3_SUPPORT 28888 int 28889 bcm_tomahawk3_field_stage_slice_count_get( 28890 int unit, 28891 bcm_field_stage_t stage_id, 28892 int *slice_count) 28893 { 28894 return bcm_esw_field_stage_slice_count_get(unit, stage_id, slice_count); 28895 } 28896 #endif 28897 28898 #ifdef BCM_TOMAHAWK3_SUPPORT 28899 int 28900 bcm_tomahawk3_field_stage_slice_info_get( 28901 int unit, 28902 bcm_field_stage_t stage_id, 28903 bcm_pbmp_t pbmp, 28904 int slice_no, 28905 bcm_field_stage_slice_info_t *slice_info) 28906 { 28907 return bcm_esw_field_stage_slice_info_get(unit, stage_id, pbmp, slice_no, slice_info); 28908 } 28909 #endif 28910 28911 #ifdef BCM_TOMAHAWK3_SUPPORT 28912 int 28913 bcm_tomahawk3_field_stat_all_set( 28914 int unit, 28915 int stat_id, 28916 uint64 value) 28917 { 28918 return bcm_esw_field_stat_all_set(unit, stat_id, value); 28919 } 28920 #endif 28921 28922 #ifdef BCM_TOMAHAWK3_SUPPORT 28923 int 28924 bcm_tomahawk3_field_stat_all_set32( 28925 int unit, 28926 int stat_id, 28927 uint32 value) 28928 { 28929 return bcm_esw_field_stat_all_set32(unit, stat_id, value); 28930 } 28931 #endif 28932 28933 #ifdef BCM_TOMAHAWK3_SUPPORT 28934 int 28935 bcm_tomahawk3_field_stat_attach( 28936 int unit, 28937 bcm_field_group_t group, 28938 uint32 stat_counter_id, 28939 uint32 *stat_id) 28940 { 28941 return bcm_esw_field_stat_attach(unit, group, stat_counter_id, stat_id); 28942 } 28943 #endif 28944 28945 #ifdef BCM_TOMAHAWK3_SUPPORT 28946 int 28947 bcm_tomahawk3_field_stat_config_get( 28948 int unit, 28949 int stat_id, 28950 int nstat, 28951 bcm_field_stat_t *stat_arr) 28952 { 28953 return bcm_esw_field_stat_config_get(unit, stat_id, nstat, stat_arr); 28954 } 28955 #endif 28956 28957 #ifdef BCM_TOMAHAWK3_SUPPORT 28958 int 28959 bcm_tomahawk3_field_stat_counter_get( 28960 int unit, 28961 uint32 stat_id, 28962 bcm_field_stat_t stat, 28963 uint32 num_entries, 28964 uint32 *counter_indexes, 28965 bcm_stat_value_t *counter_values) 28966 { 28967 return bcm_esw_field_stat_counter_get(unit, stat_id, stat, num_entries, counter_indexes, counter_values); 28968 } 28969 #endif 28970 28971 #ifdef BCM_TOMAHAWK3_SUPPORT 28972 int 28973 bcm_tomahawk3_field_stat_counter_set( 28974 int unit, 28975 uint32 stat_id, 28976 bcm_field_stat_t stat, 28977 uint32 num_entries, 28978 uint32 *counter_indexes, 28979 bcm_stat_value_t *counter_values) 28980 { 28981 return bcm_esw_field_stat_counter_set(unit, stat_id, stat, num_entries, counter_indexes, counter_values); 28982 } 28983 #endif 28984 28985 #ifdef BCM_TOMAHAWK3_SUPPORT 28986 int 28987 bcm_tomahawk3_field_stat_counter_sync_get( 28988 int unit, 28989 uint32 stat_id, 28990 bcm_field_stat_t stat, 28991 uint32 num_entries, 28992 uint32 *counter_indexes, 28993 bcm_stat_value_t *counter_values) 28994 { 28995 return bcm_esw_field_stat_counter_sync_get(unit, stat_id, stat, num_entries, counter_indexes, counter_values); 28996 } 28997 #endif 28998 28999 #ifdef BCM_TOMAHAWK3_SUPPORT 29000 int 29001 bcm_tomahawk3_field_stat_create( 29002 int unit, 29003 bcm_field_group_t group, 29004 int nstat, 29005 bcm_field_stat_t *stat_arr, 29006 int *stat_id) 29007 { 29008 return bcm_esw_field_stat_create(unit, group, nstat, stat_arr, stat_id); 29009 } 29010 #endif 29011 29012 #ifdef BCM_TOMAHAWK3_SUPPORT 29013 int 29014 bcm_tomahawk3_field_stat_create_id( 29015 int unit, 29016 bcm_field_group_t group, 29017 int nstat, 29018 bcm_field_stat_t *stat_arr, 29019 int stat_id) 29020 { 29021 return bcm_esw_field_stat_create_id(unit, group, nstat, stat_arr, stat_id); 29022 } 29023 #endif 29024 29025 #ifdef BCM_TOMAHAWK3_SUPPORT 29026 int 29027 bcm_tomahawk3_field_stat_destroy( 29028 int unit, 29029 int stat_id) 29030 { 29031 return bcm_esw_field_stat_destroy(unit, stat_id); 29032 } 29033 #endif 29034 29035 #ifdef BCM_TOMAHAWK3_SUPPORT 29036 int 29037 bcm_tomahawk3_field_stat_detach( 29038 int unit, 29039 uint32 stat_id) 29040 { 29041 return bcm_esw_field_stat_detach(unit, stat_id); 29042 } 29043 #endif 29044 29045 #ifdef BCM_TOMAHAWK3_SUPPORT 29046 int 29047 bcm_tomahawk3_field_stat_get( 29048 int unit, 29049 int stat_id, 29050 bcm_field_stat_t stat, 29051 uint64 *value) 29052 { 29053 return bcm_esw_field_stat_get(unit, stat_id, stat, value); 29054 } 29055 #endif 29056 29057 #ifdef BCM_TOMAHAWK3_SUPPORT 29058 int 29059 bcm_tomahawk3_field_stat_get32( 29060 int unit, 29061 int stat_id, 29062 bcm_field_stat_t stat, 29063 uint32 *value) 29064 { 29065 return bcm_esw_field_stat_get32(unit, stat_id, stat, value); 29066 } 29067 #endif 29068 29069 #ifdef BCM_TOMAHAWK3_SUPPORT 29070 int 29071 bcm_tomahawk3_field_stat_id_get( 29072 int unit, 29073 bcm_field_group_t group, 29074 uint32 stat_id, 29075 uint32 *stat_counter_id) 29076 { 29077 return bcm_esw_field_stat_id_get(unit, group, stat_id, stat_counter_id); 29078 } 29079 #endif 29080 29081 #ifdef BCM_TOMAHAWK3_SUPPORT 29082 int 29083 bcm_tomahawk3_field_stat_multi_get( 29084 int unit, 29085 int stat_id, 29086 int nstat, 29087 bcm_field_stat_t *stat_arr, 29088 uint64 *value_arr) 29089 { 29090 return bcm_esw_field_stat_multi_get(unit, stat_id, nstat, stat_arr, value_arr); 29091 } 29092 #endif 29093 29094 #ifdef BCM_TOMAHAWK3_SUPPORT 29095 int 29096 bcm_tomahawk3_field_stat_multi_get32( 29097 int unit, 29098 int stat_id, 29099 int nstat, 29100 bcm_field_stat_t *stat_arr, 29101 uint32 *value_arr) 29102 { 29103 return bcm_esw_field_stat_multi_get32(unit, stat_id, nstat, stat_arr, value_arr); 29104 } 29105 #endif 29106 29107 #ifdef BCM_TOMAHAWK3_SUPPORT 29108 int 29109 bcm_tomahawk3_field_stat_set( 29110 int unit, 29111 int stat_id, 29112 bcm_field_stat_t stat, 29113 uint64 value) 29114 { 29115 return bcm_esw_field_stat_set(unit, stat_id, stat, value); 29116 } 29117 #endif 29118 29119 #ifdef BCM_TOMAHAWK3_SUPPORT 29120 int 29121 bcm_tomahawk3_field_stat_set32( 29122 int unit, 29123 int stat_id, 29124 bcm_field_stat_t stat, 29125 uint32 value) 29126 { 29127 return bcm_esw_field_stat_set32(unit, stat_id, stat, value); 29128 } 29129 #endif 29130 29131 #ifdef BCM_TOMAHAWK3_SUPPORT 29132 int 29133 bcm_tomahawk3_field_stat_size( 29134 int unit, 29135 int stat_id, 29136 int *stat_size) 29137 { 29138 return bcm_esw_field_stat_size(unit, stat_id, stat_size); 29139 } 29140 #endif 29141 29142 #ifdef BCM_TOMAHAWK3_SUPPORT 29143 int 29144 bcm_tomahawk3_field_stat_sync_get( 29145 int unit, 29146 int stat_id, 29147 bcm_field_stat_t stat, 29148 uint64 *value) 29149 { 29150 return bcm_esw_field_stat_sync_get(unit, stat_id, stat, value); 29151 } 29152 #endif 29153 29154 #ifdef BCM_TOMAHAWK3_SUPPORT 29155 int 29156 bcm_tomahawk3_field_stat_sync_get32( 29157 int unit, 29158 int stat_id, 29159 bcm_field_stat_t stat, 29160 uint32 *value) 29161 { 29162 return bcm_esw_field_stat_sync_get32(unit, stat_id, stat, value); 29163 } 29164 #endif 29165 29166 #ifdef BCM_TOMAHAWK3_SUPPORT 29167 int 29168 bcm_tomahawk3_field_tcam_bank_evacuate( 29169 int unit, 29170 uint32 flags, 29171 bcm_field_group_t fg_id, 29172 bcm_field_tcam_bank_evacuate_info_t *evac_info) 29173 { 29174 return bcm_esw_field_tcam_bank_evacuate(unit, flags, fg_id, evac_info); 29175 } 29176 #endif 29177 29178 #if defined(INCLUDE_L3) 29179 #ifdef BCM_TOMAHAWK3_SUPPORT 29180 int 29181 bcm_tomahawk3_flow_cleanup( 29182 int unit) 29183 { 29184 return bcm_esw_flow_cleanup(unit); 29185 } 29186 #endif 29187 #endif 29188 29189 #if defined(INCLUDE_L3) 29190 #ifdef BCM_TOMAHAWK3_SUPPORT 29191 int 29192 bcm_tomahawk3_flow_encap_add( 29193 int unit, 29194 bcm_flow_encap_config_t *info, 29195 uint32 num_of_fields, 29196 bcm_flow_logical_field_t *field) 29197 { 29198 return bcm_esw_flow_encap_add(unit, info, num_of_fields, field); 29199 } 29200 #endif 29201 #endif 29202 29203 #if defined(INCLUDE_L3) 29204 #ifdef BCM_TOMAHAWK3_SUPPORT 29205 int 29206 bcm_tomahawk3_flow_encap_delete( 29207 int unit, 29208 bcm_flow_encap_config_t *info, 29209 uint32 num_of_fields, 29210 bcm_flow_logical_field_t *field) 29211 { 29212 return bcm_esw_flow_encap_delete(unit, info, num_of_fields, field); 29213 } 29214 #endif 29215 #endif 29216 29217 #if defined(INCLUDE_L3) 29218 #ifdef BCM_TOMAHAWK3_SUPPORT 29219 int 29220 bcm_tomahawk3_flow_encap_get( 29221 int unit, 29222 bcm_flow_encap_config_t *info, 29223 uint32 num_of_fields, 29224 bcm_flow_logical_field_t *field) 29225 { 29226 return bcm_esw_flow_encap_get(unit, info, num_of_fields, field); 29227 } 29228 #endif 29229 #endif 29230 29231 #if defined(INCLUDE_L3) 29232 #ifdef BCM_TOMAHAWK3_SUPPORT 29233 int 29234 bcm_tomahawk3_flow_encap_traverse( 29235 int unit, 29236 bcm_flow_encap_traverse_cb cb, 29237 void *user_data) 29238 { 29239 return bcm_esw_flow_encap_traverse(unit, cb, user_data); 29240 } 29241 #endif 29242 #endif 29243 29244 #if defined(INCLUDE_L3) 29245 #ifdef BCM_TOMAHAWK3_SUPPORT 29246 int 29247 bcm_tomahawk3_flow_handle_get( 29248 int unit, 29249 const char *flow_name, 29250 bcm_flow_handle_t *handle) 29251 { 29252 return bcm_esw_flow_handle_get(unit, flow_name, handle); 29253 } 29254 #endif 29255 #endif 29256 29257 #if defined(INCLUDE_L3) 29258 #ifdef BCM_TOMAHAWK3_SUPPORT 29259 int 29260 bcm_tomahawk3_flow_init( 29261 int unit) 29262 { 29263 return bcm_esw_flow_init(unit); 29264 } 29265 #endif 29266 #endif 29267 29268 #if defined(INCLUDE_L3) 29269 #ifdef BCM_TOMAHAWK3_SUPPORT 29270 int 29271 bcm_tomahawk3_flow_logical_field_id_get( 29272 int unit, 29273 bcm_flow_handle_t flow_handle, 29274 const char *field_name, 29275 bcm_flow_field_id_t *field_id) 29276 { 29277 return bcm_esw_flow_logical_field_id_get(unit, flow_handle, field_name, field_id); 29278 } 29279 #endif 29280 #endif 29281 29282 #if defined(INCLUDE_L3) 29283 #ifdef BCM_TOMAHAWK3_SUPPORT 29284 int 29285 bcm_tomahawk3_flow_match_add( 29286 int unit, 29287 bcm_flow_match_config_t *info, 29288 uint32 num_of_fields, 29289 bcm_flow_logical_field_t *field) 29290 { 29291 return bcm_esw_flow_match_add(unit, info, num_of_fields, field); 29292 } 29293 #endif 29294 #endif 29295 29296 #if defined(INCLUDE_L3) 29297 #ifdef BCM_TOMAHAWK3_SUPPORT 29298 int 29299 bcm_tomahawk3_flow_match_delete( 29300 int unit, 29301 bcm_flow_match_config_t *info, 29302 uint32 num_of_fields, 29303 bcm_flow_logical_field_t *field) 29304 { 29305 return bcm_esw_flow_match_delete(unit, info, num_of_fields, field); 29306 } 29307 #endif 29308 #endif 29309 29310 #if defined(INCLUDE_L3) 29311 #ifdef BCM_TOMAHAWK3_SUPPORT 29312 int 29313 bcm_tomahawk3_flow_match_get( 29314 int unit, 29315 bcm_flow_match_config_t *info, 29316 uint32 num_of_fields, 29317 bcm_flow_logical_field_t *field) 29318 { 29319 return bcm_esw_flow_match_get(unit, info, num_of_fields, field); 29320 } 29321 #endif 29322 #endif 29323 29324 #if defined(INCLUDE_L3) 29325 #ifdef BCM_TOMAHAWK3_SUPPORT 29326 int 29327 bcm_tomahawk3_flow_match_traverse( 29328 int unit, 29329 bcm_flow_match_traverse_cb cb, 29330 void *user_data) 29331 { 29332 return bcm_esw_flow_match_traverse(unit, cb, user_data); 29333 } 29334 #endif 29335 #endif 29336 29337 #if defined(INCLUDE_L3) 29338 #ifdef BCM_TOMAHAWK3_SUPPORT 29339 int 29340 bcm_tomahawk3_flow_option_id_get( 29341 int unit, 29342 bcm_flow_handle_t flow_handle, 29343 const char *flow_option_name, 29344 bcm_flow_option_id_t *option_id) 29345 { 29346 return bcm_esw_flow_option_id_get(unit, flow_handle, flow_option_name, option_id); 29347 } 29348 #endif 29349 #endif 29350 29351 #if defined(INCLUDE_L3) 29352 #ifdef BCM_TOMAHAWK3_SUPPORT 29353 int 29354 bcm_tomahawk3_flow_port_create( 29355 int unit, 29356 bcm_vpn_t vpn, 29357 bcm_flow_port_t *flow_port) 29358 { 29359 return bcm_esw_flow_port_create(unit, vpn, flow_port); 29360 } 29361 #endif 29362 #endif 29363 29364 #if defined(INCLUDE_L3) 29365 #ifdef BCM_TOMAHAWK3_SUPPORT 29366 int 29367 bcm_tomahawk3_flow_port_destroy( 29368 int unit, 29369 bcm_vpn_t vpn, 29370 bcm_gport_t flow_port) 29371 { 29372 return bcm_esw_flow_port_destroy(unit, vpn, flow_port); 29373 } 29374 #endif 29375 #endif 29376 29377 #if defined(INCLUDE_L3) 29378 #ifdef BCM_TOMAHAWK3_SUPPORT 29379 int 29380 bcm_tomahawk3_flow_port_encap_get( 29381 int unit, 29382 bcm_flow_port_encap_t *info, 29383 uint32 num_of_fields, 29384 bcm_flow_logical_field_t *field) 29385 { 29386 return bcm_esw_flow_port_encap_get(unit, info, num_of_fields, field); 29387 } 29388 #endif 29389 #endif 29390 29391 #if defined(INCLUDE_L3) 29392 #ifdef BCM_TOMAHAWK3_SUPPORT 29393 int 29394 bcm_tomahawk3_flow_port_encap_set( 29395 int unit, 29396 bcm_flow_port_encap_t *info, 29397 uint32 num_of_fields, 29398 bcm_flow_logical_field_t *field) 29399 { 29400 return bcm_esw_flow_port_encap_set(unit, info, num_of_fields, field); 29401 } 29402 #endif 29403 #endif 29404 29405 #if defined(INCLUDE_L3) 29406 #ifdef BCM_TOMAHAWK3_SUPPORT 29407 int 29408 bcm_tomahawk3_flow_port_get( 29409 int unit, 29410 bcm_vpn_t vpn, 29411 bcm_flow_port_t *flow_port) 29412 { 29413 return bcm_esw_flow_port_get(unit, vpn, flow_port); 29414 } 29415 #endif 29416 #endif 29417 29418 #if defined(INCLUDE_L3) 29419 #ifdef BCM_TOMAHAWK3_SUPPORT 29420 int 29421 bcm_tomahawk3_flow_port_get_all( 29422 int unit, 29423 bcm_vpn_t vpn, 29424 int port_max, 29425 bcm_flow_port_t *flow_port, 29426 int *port_count) 29427 { 29428 return bcm_esw_flow_port_get_all(unit, vpn, port_max, flow_port, port_count); 29429 } 29430 #endif 29431 #endif 29432 29433 #if defined(INCLUDE_L3) 29434 #ifdef BCM_TOMAHAWK3_SUPPORT 29435 int 29436 bcm_tomahawk3_flow_stat_attach( 29437 int unit, 29438 bcm_flow_stat_info_t *flow_stat_info, 29439 uint32 num_of_fields, 29440 bcm_flow_logical_field_t *field, 29441 uint32 stat_counter_id) 29442 { 29443 return bcm_esw_flow_stat_attach(unit, flow_stat_info, num_of_fields, field, stat_counter_id); 29444 } 29445 #endif 29446 #endif 29447 29448 #if defined(INCLUDE_L3) 29449 #ifdef BCM_TOMAHAWK3_SUPPORT 29450 int 29451 bcm_tomahawk3_flow_stat_detach( 29452 int unit, 29453 bcm_flow_stat_info_t *flow_stat_info, 29454 uint32 num_of_fields, 29455 bcm_flow_logical_field_t *field, 29456 uint32 stat_counter_id) 29457 { 29458 return bcm_esw_flow_stat_detach(unit, flow_stat_info, num_of_fields, field, stat_counter_id); 29459 } 29460 #endif 29461 #endif 29462 29463 #if defined(INCLUDE_L3) 29464 #ifdef BCM_TOMAHAWK3_SUPPORT 29465 int 29466 bcm_tomahawk3_flow_stat_id_get( 29467 int unit, 29468 bcm_flow_stat_info_t *flow_stat_info, 29469 uint32 num_of_fields, 29470 bcm_flow_logical_field_t *field, 29471 bcm_stat_object_t stat_object, 29472 uint32 *stat_counter_id) 29473 { 29474 return bcm_esw_flow_stat_id_get(unit, flow_stat_info, num_of_fields, field, stat_object, stat_counter_id); 29475 } 29476 #endif 29477 #endif 29478 29479 #if defined(INCLUDE_L3) 29480 #ifdef BCM_TOMAHAWK3_SUPPORT 29481 int 29482 bcm_tomahawk3_flow_stat_object_get( 29483 int unit, 29484 bcm_flow_handle_t flow_handle, 29485 bcm_flow_option_id_t flow_option_id, 29486 bcm_flow_function_type_t function_type, 29487 bcm_stat_object_t *stat_object) 29488 { 29489 return bcm_esw_flow_stat_object_get(unit, flow_handle, flow_option_id, function_type, stat_object); 29490 } 29491 #endif 29492 #endif 29493 29494 #if defined(INCLUDE_L3) 29495 #ifdef BCM_TOMAHAWK3_SUPPORT 29496 int 29497 bcm_tomahawk3_flow_tunnel_initiator_create( 29498 int unit, 29499 bcm_flow_tunnel_initiator_t *info, 29500 uint32 num_of_fields, 29501 bcm_flow_logical_field_t *field) 29502 { 29503 return bcm_esw_flow_tunnel_initiator_create(unit, info, num_of_fields, field); 29504 } 29505 #endif 29506 #endif 29507 29508 #if defined(INCLUDE_L3) 29509 #ifdef BCM_TOMAHAWK3_SUPPORT 29510 int 29511 bcm_tomahawk3_flow_tunnel_initiator_destroy( 29512 int unit, 29513 bcm_gport_t flow_tunnel_id) 29514 { 29515 return bcm_esw_flow_tunnel_initiator_destroy(unit, flow_tunnel_id); 29516 } 29517 #endif 29518 #endif 29519 29520 #if defined(INCLUDE_L3) 29521 #ifdef BCM_TOMAHAWK3_SUPPORT 29522 int 29523 bcm_tomahawk3_flow_tunnel_initiator_get( 29524 int unit, 29525 bcm_flow_tunnel_initiator_t *info, 29526 uint32 num_of_fields, 29527 bcm_flow_logical_field_t *field) 29528 { 29529 return bcm_esw_flow_tunnel_initiator_get(unit, info, num_of_fields, field); 29530 } 29531 #endif 29532 #endif 29533 29534 #if defined(INCLUDE_L3) 29535 #ifdef BCM_TOMAHAWK3_SUPPORT 29536 int 29537 bcm_tomahawk3_flow_tunnel_initiator_traverse( 29538 int unit, 29539 bcm_flow_tunnel_initiator_traverse_cb cb, 29540 void *user_data) 29541 { 29542 return bcm_esw_flow_tunnel_initiator_traverse(unit, cb, user_data); 29543 } 29544 #endif 29545 #endif 29546 29547 #if defined(INCLUDE_L3) 29548 #ifdef BCM_TOMAHAWK3_SUPPORT 29549 int 29550 bcm_tomahawk3_flow_tunnel_terminator_create( 29551 int unit, 29552 bcm_flow_tunnel_terminator_t *info, 29553 uint32 num_of_fields, 29554 bcm_flow_logical_field_t *field) 29555 { 29556 return bcm_esw_flow_tunnel_terminator_create(unit, info, num_of_fields, field); 29557 } 29558 #endif 29559 #endif 29560 29561 #if defined(INCLUDE_L3) 29562 #ifdef BCM_TOMAHAWK3_SUPPORT 29563 int 29564 bcm_tomahawk3_flow_tunnel_terminator_destroy( 29565 int unit, 29566 bcm_flow_tunnel_terminator_t *info, 29567 uint32 num_of_fields, 29568 bcm_flow_logical_field_t *field) 29569 { 29570 return bcm_esw_flow_tunnel_terminator_destroy(unit, info, num_of_fields, field); 29571 } 29572 #endif 29573 #endif 29574 29575 #if defined(INCLUDE_L3) 29576 #ifdef BCM_TOMAHAWK3_SUPPORT 29577 int 29578 bcm_tomahawk3_flow_tunnel_terminator_get( 29579 int unit, 29580 bcm_flow_tunnel_terminator_t *info, 29581 uint32 num_of_fields, 29582 bcm_flow_logical_field_t *field) 29583 { 29584 return bcm_esw_flow_tunnel_terminator_get(unit, info, num_of_fields, field); 29585 } 29586 #endif 29587 #endif 29588 29589 #if defined(INCLUDE_L3) 29590 #ifdef BCM_TOMAHAWK3_SUPPORT 29591 int 29592 bcm_tomahawk3_flow_tunnel_terminator_traverse( 29593 int unit, 29594 bcm_flow_tunnel_terminator_traverse_cb cb, 29595 void *user_data) 29596 { 29597 return bcm_esw_flow_tunnel_terminator_traverse(unit, cb, user_data); 29598 } 29599 #endif 29600 #endif 29601 29602 #if defined(INCLUDE_L3) 29603 #ifdef BCM_TOMAHAWK3_SUPPORT 29604 int 29605 bcm_tomahawk3_flow_vpn_create( 29606 int unit, 29607 bcm_vpn_t *vpn, 29608 bcm_flow_vpn_config_t *info) 29609 { 29610 return bcm_esw_flow_vpn_create(unit, vpn, info); 29611 } 29612 #endif 29613 #endif 29614 29615 #if defined(INCLUDE_L3) 29616 #ifdef BCM_TOMAHAWK3_SUPPORT 29617 int 29618 bcm_tomahawk3_flow_vpn_destroy( 29619 int unit, 29620 bcm_vpn_t vpn) 29621 { 29622 return bcm_esw_flow_vpn_destroy(unit, vpn); 29623 } 29624 #endif 29625 #endif 29626 29627 #if defined(INCLUDE_L3) 29628 #ifdef BCM_TOMAHAWK3_SUPPORT 29629 int 29630 bcm_tomahawk3_flow_vpn_destroy_all( 29631 int unit) 29632 { 29633 return bcm_esw_flow_vpn_destroy_all(unit); 29634 } 29635 #endif 29636 #endif 29637 29638 #if defined(INCLUDE_L3) 29639 #ifdef BCM_TOMAHAWK3_SUPPORT 29640 int 29641 bcm_tomahawk3_flow_vpn_get( 29642 int unit, 29643 bcm_vpn_t vpn, 29644 bcm_flow_vpn_config_t *info) 29645 { 29646 return bcm_esw_flow_vpn_get(unit, vpn, info); 29647 } 29648 #endif 29649 #endif 29650 29651 #if defined(INCLUDE_L3) 29652 #ifdef BCM_TOMAHAWK3_SUPPORT 29653 int 29654 bcm_tomahawk3_flow_vpn_traverse( 29655 int unit, 29656 bcm_flow_vpn_traverse_cb cb, 29657 void *user_data) 29658 { 29659 return bcm_esw_flow_vpn_traverse(unit, cb, user_data); 29660 } 29661 #endif 29662 #endif 29663 29664 #ifdef BCM_TOMAHAWK3_SUPPORT 29665 int 29666 bcm_tomahawk3_flowtracker_check_action_info_get( 29667 int unit, 29668 bcm_flowtracker_check_t check_id, 29669 bcm_flowtracker_check_action_info_t *info) 29670 { 29671 return bcm_esw_flowtracker_check_action_info_get(unit, check_id, info); 29672 } 29673 #endif 29674 29675 #ifdef BCM_TOMAHAWK3_SUPPORT 29676 int 29677 bcm_tomahawk3_flowtracker_check_action_info_set( 29678 int unit, 29679 bcm_flowtracker_check_t check_id, 29680 bcm_flowtracker_check_action_info_t info) 29681 { 29682 return bcm_esw_flowtracker_check_action_info_set(unit, check_id, info); 29683 } 29684 #endif 29685 29686 #ifdef BCM_TOMAHAWK3_SUPPORT 29687 int 29688 bcm_tomahawk3_flowtracker_check_create( 29689 int unit, 29690 uint32 options, 29691 bcm_flowtracker_check_info_t check_info, 29692 bcm_flowtracker_check_t *check_id) 29693 { 29694 return bcm_esw_flowtracker_check_create(unit, options, check_info, check_id); 29695 } 29696 #endif 29697 29698 #ifdef BCM_TOMAHAWK3_SUPPORT 29699 int 29700 bcm_tomahawk3_flowtracker_check_destroy( 29701 int unit, 29702 bcm_flowtracker_check_t check_id) 29703 { 29704 return bcm_esw_flowtracker_check_destroy(unit, check_id); 29705 } 29706 #endif 29707 29708 #ifdef BCM_TOMAHAWK3_SUPPORT 29709 int 29710 bcm_tomahawk3_flowtracker_check_destroy_all( 29711 int unit) 29712 { 29713 return bcm_esw_flowtracker_check_destroy_all(unit); 29714 } 29715 #endif 29716 29717 #ifdef BCM_TOMAHAWK3_SUPPORT 29718 int 29719 bcm_tomahawk3_flowtracker_check_export_info_get( 29720 int unit, 29721 bcm_flowtracker_check_t check_id, 29722 bcm_flowtracker_check_export_info_t *info) 29723 { 29724 return bcm_esw_flowtracker_check_export_info_get(unit, check_id, info); 29725 } 29726 #endif 29727 29728 #ifdef BCM_TOMAHAWK3_SUPPORT 29729 int 29730 bcm_tomahawk3_flowtracker_check_export_info_set( 29731 int unit, 29732 bcm_flowtracker_check_t check_id, 29733 bcm_flowtracker_check_export_info_t info) 29734 { 29735 return bcm_esw_flowtracker_check_export_info_set(unit, check_id, info); 29736 } 29737 #endif 29738 29739 #ifdef BCM_TOMAHAWK3_SUPPORT 29740 int 29741 bcm_tomahawk3_flowtracker_check_get( 29742 int unit, 29743 bcm_flowtracker_check_t check_id, 29744 bcm_flowtracker_check_info_t *check_info) 29745 { 29746 return bcm_esw_flowtracker_check_get(unit, check_id, check_info); 29747 } 29748 #endif 29749 29750 #ifdef BCM_TOMAHAWK3_SUPPORT 29751 int 29752 bcm_tomahawk3_flowtracker_check_traverse( 29753 int unit, 29754 bcm_flowtracker_check_traverse_cb cb, 29755 void *user_data) 29756 { 29757 return bcm_esw_flowtracker_check_traverse(unit, cb, user_data); 29758 } 29759 #endif 29760 29761 #ifdef BCM_TOMAHAWK3_SUPPORT 29762 int 29763 bcm_tomahawk3_flowtracker_chip_debug_info_get( 29764 int unit, 29765 int max_debug_info_size, 29766 bcm_flowtracker_chip_debug_info_t *list_of_debug_info, 29767 int *actual_debug_info_size) 29768 { 29769 return bcm_esw_flowtracker_chip_debug_info_get(unit, max_debug_info_size, list_of_debug_info, actual_debug_info_size); 29770 } 29771 #endif 29772 29773 #ifdef BCM_TOMAHAWK3_SUPPORT 29774 int 29775 bcm_tomahawk3_flowtracker_chip_debug_info_set( 29776 int unit, 29777 int num_debug_info, 29778 bcm_flowtracker_chip_debug_info_t *list_of_debug_info) 29779 { 29780 return bcm_esw_flowtracker_chip_debug_info_set(unit, num_debug_info, list_of_debug_info); 29781 } 29782 #endif 29783 29784 int 29785 bcm_tomahawk3_flowtracker_collector_create( 29786 int unit, 29787 uint32 options, 29788 bcm_flowtracker_collector_t *collector_id, 29789 bcm_flowtracker_collector_info_t *collector_info) 29790 { 29791 return BCM_E_UNAVAIL; 29792 } 29793 29794 int 29795 bcm_tomahawk3_flowtracker_collector_destroy( 29796 int unit, 29797 bcm_flowtracker_collector_t id) 29798 { 29799 return BCM_E_UNAVAIL; 29800 } 29801 29802 int 29803 bcm_tomahawk3_flowtracker_collector_get( 29804 int unit, 29805 bcm_flowtracker_collector_t id, 29806 bcm_flowtracker_collector_info_t *collector_info) 29807 { 29808 return BCM_E_UNAVAIL; 29809 } 29810 29811 int 29812 bcm_tomahawk3_flowtracker_collector_get_all( 29813 int unit, 29814 int max_size, 29815 bcm_flowtracker_collector_t *collector_list, 29816 int *list_size) 29817 { 29818 return BCM_E_UNAVAIL; 29819 } 29820 29821 int 29822 bcm_tomahawk3_flowtracker_elephant_profile_create( 29823 int unit, 29824 uint32 options, 29825 bcm_flowtracker_elephant_profile_info_t *profile, 29826 bcm_flowtracker_elephant_profile_t *profile_id) 29827 { 29828 return BCM_E_UNAVAIL; 29829 } 29830 29831 int 29832 bcm_tomahawk3_flowtracker_elephant_profile_destroy( 29833 int unit, 29834 bcm_flowtracker_elephant_profile_t profile_id) 29835 { 29836 return BCM_E_UNAVAIL; 29837 } 29838 29839 int 29840 bcm_tomahawk3_flowtracker_elephant_profile_get( 29841 int unit, 29842 bcm_flowtracker_elephant_profile_t profile_id, 29843 bcm_flowtracker_elephant_profile_info_t *profile) 29844 { 29845 return BCM_E_UNAVAIL; 29846 } 29847 29848 int 29849 bcm_tomahawk3_flowtracker_elephant_profile_get_all( 29850 int unit, 29851 int max, 29852 bcm_flowtracker_elephant_profile_t *profile_list, 29853 int *count) 29854 { 29855 return BCM_E_UNAVAIL; 29856 } 29857 29858 #ifdef BCM_TOMAHAWK3_SUPPORT 29859 int 29860 bcm_tomahawk3_flowtracker_export_record_register( 29861 int unit, 29862 bcm_flowtracker_collector_t collector_id, 29863 bcm_flowtracker_collector_callback_options_t callback_options, 29864 bcm_flowtracker_export_record_cb_f callback_fn, 29865 void *userdata) 29866 { 29867 return bcm_esw_flowtracker_export_record_register(unit, collector_id, callback_options, callback_fn, userdata); 29868 } 29869 #endif 29870 29871 #ifdef BCM_TOMAHAWK3_SUPPORT 29872 int 29873 bcm_tomahawk3_flowtracker_export_record_unregister( 29874 int unit, 29875 bcm_flowtracker_collector_t collector_id, 29876 bcm_flowtracker_collector_callback_options_t callback_options, 29877 bcm_flowtracker_export_record_cb_f callback_fn) 29878 { 29879 return bcm_esw_flowtracker_export_record_unregister(unit, collector_id, callback_options, callback_fn); 29880 } 29881 #endif 29882 29883 #ifdef BCM_TOMAHAWK3_SUPPORT 29884 int 29885 bcm_tomahawk3_flowtracker_export_template_create( 29886 int unit, 29887 uint32 options, 29888 bcm_flowtracker_export_template_t *id, 29889 uint16 set_id, 29890 int num_export_elements, 29891 bcm_flowtracker_export_element_info_t *list_of_export_elements) 29892 { 29893 return bcm_esw_flowtracker_export_template_create(unit, options, id, set_id, num_export_elements, list_of_export_elements); 29894 } 29895 #endif 29896 29897 #ifdef BCM_TOMAHAWK3_SUPPORT 29898 int 29899 bcm_tomahawk3_flowtracker_export_template_destroy( 29900 int unit, 29901 bcm_flowtracker_export_template_t id) 29902 { 29903 return bcm_esw_flowtracker_export_template_destroy(unit, id); 29904 } 29905 #endif 29906 29907 #ifdef BCM_TOMAHAWK3_SUPPORT 29908 int 29909 bcm_tomahawk3_flowtracker_export_template_get( 29910 int unit, 29911 bcm_flowtracker_export_template_t id, 29912 uint16 *set_id, 29913 int max_size, 29914 bcm_flowtracker_export_element_info_t *list_of_export_elements, 29915 int *list_size) 29916 { 29917 return bcm_esw_flowtracker_export_template_get(unit, id, set_id, max_size, list_of_export_elements, list_size); 29918 } 29919 #endif 29920 29921 #ifdef BCM_TOMAHAWK3_SUPPORT 29922 int 29923 bcm_tomahawk3_flowtracker_export_template_validate( 29924 int unit, 29925 bcm_flowtracker_group_t flow_group_id, 29926 int max_in_export_elements, 29927 bcm_flowtracker_export_element_info_t *in_export_elements, 29928 int max_out_export_elements, 29929 bcm_flowtracker_export_element_info_t *out_export_elements, 29930 int *actual_out_export_elements) 29931 { 29932 return bcm_esw_flowtracker_export_template_validate(unit, flow_group_id, max_in_export_elements, in_export_elements, max_out_export_elements, out_export_elements, actual_out_export_elements); 29933 } 29934 #endif 29935 29936 #ifdef BCM_TOMAHAWK3_SUPPORT 29937 int 29938 bcm_tomahawk3_flowtracker_group_actions_get( 29939 int unit, 29940 bcm_flowtracker_group_t flow_group_id, 29941 uint32 flags, 29942 int max_actions, 29943 bcm_flowtracker_group_action_info_t *action_list, 29944 int *num_actions) 29945 { 29946 return bcm_esw_flowtracker_group_actions_get(unit, flow_group_id, flags, max_actions, action_list, num_actions); 29947 } 29948 #endif 29949 29950 #ifdef BCM_TOMAHAWK3_SUPPORT 29951 int 29952 bcm_tomahawk3_flowtracker_group_actions_set( 29953 int unit, 29954 bcm_flowtracker_group_t flow_group_id, 29955 uint32 flags, 29956 int num_actions, 29957 bcm_flowtracker_group_action_info_t *action_list) 29958 { 29959 return bcm_esw_flowtracker_group_actions_set(unit, flow_group_id, flags, num_actions, action_list); 29960 } 29961 #endif 29962 29963 #ifdef BCM_TOMAHAWK3_SUPPORT 29964 int 29965 bcm_tomahawk3_flowtracker_group_age_timer_get( 29966 int unit, 29967 bcm_flowtracker_group_t id, 29968 uint32 *aging_interval_ms) 29969 { 29970 return bcm_esw_flowtracker_group_age_timer_get(unit, id, aging_interval_ms); 29971 } 29972 #endif 29973 29974 #ifdef BCM_TOMAHAWK3_SUPPORT 29975 int 29976 bcm_tomahawk3_flowtracker_group_age_timer_set( 29977 int unit, 29978 bcm_flowtracker_group_t id, 29979 uint32 aging_interval_ms) 29980 { 29981 return bcm_esw_flowtracker_group_age_timer_set(unit, id, aging_interval_ms); 29982 } 29983 #endif 29984 29985 #ifdef BCM_TOMAHAWK3_SUPPORT 29986 int 29987 bcm_tomahawk3_flowtracker_group_check_add( 29988 int unit, 29989 bcm_flowtracker_group_t group_id, 29990 bcm_flowtracker_check_t check_id) 29991 { 29992 return bcm_esw_flowtracker_group_check_add(unit, group_id, check_id); 29993 } 29994 #endif 29995 29996 #ifdef BCM_TOMAHAWK3_SUPPORT 29997 int 29998 bcm_tomahawk3_flowtracker_group_check_delete( 29999 int unit, 30000 bcm_flowtracker_group_t group_id, 30001 bcm_flowtracker_check_t check_id) 30002 { 30003 return bcm_esw_flowtracker_group_check_delete(unit, group_id, check_id); 30004 } 30005 #endif 30006 30007 #ifdef BCM_TOMAHAWK3_SUPPORT 30008 int 30009 bcm_tomahawk3_flowtracker_group_check_get_all( 30010 int unit, 30011 bcm_flowtracker_group_t group_id, 30012 int max_checks, 30013 bcm_flowtracker_check_t *list_of_check_ids, 30014 int *num_checks) 30015 { 30016 return bcm_esw_flowtracker_group_check_get_all(unit, group_id, max_checks, list_of_check_ids, num_checks); 30017 } 30018 #endif 30019 30020 #ifdef BCM_TOMAHAWK3_SUPPORT 30021 int 30022 bcm_tomahawk3_flowtracker_group_clear( 30023 int unit, 30024 bcm_flowtracker_group_t id, 30025 uint32 flags) 30026 { 30027 return bcm_esw_flowtracker_group_clear(unit, id, flags); 30028 } 30029 #endif 30030 30031 int 30032 bcm_tomahawk3_flowtracker_group_collector_add( 30033 int unit, 30034 bcm_flowtracker_group_t flow_group_id, 30035 bcm_flowtracker_collector_t collector_id, 30036 bcm_flowtracker_export_template_t template_id) 30037 { 30038 return BCM_E_UNAVAIL; 30039 } 30040 30041 #ifdef BCM_TOMAHAWK3_SUPPORT 30042 int 30043 bcm_tomahawk3_flowtracker_group_collector_attach( 30044 int unit, 30045 bcm_flowtracker_group_t flow_group_id, 30046 bcm_collector_t collector_id, 30047 int export_profile_id, 30048 bcm_flowtracker_export_template_t template_id) 30049 { 30050 return bcm_esw_flowtracker_group_collector_attach(unit, flow_group_id, collector_id, export_profile_id, template_id); 30051 } 30052 #endif 30053 30054 #ifdef BCM_TOMAHAWK3_SUPPORT 30055 int 30056 bcm_tomahawk3_flowtracker_group_collector_attach_get_all( 30057 int unit, 30058 bcm_flowtracker_group_t flow_group_id, 30059 int max_list_size, 30060 bcm_collector_t *list_of_collectors, 30061 bcm_flowtracker_export_template_t *list_of_templates, 30062 int *export_profile_id_list, 30063 int *list_size) 30064 { 30065 return bcm_esw_flowtracker_group_collector_attach_get_all(unit, flow_group_id, max_list_size, list_of_collectors, list_of_templates, export_profile_id_list, list_size); 30066 } 30067 #endif 30068 30069 #ifdef BCM_TOMAHAWK3_SUPPORT 30070 int 30071 bcm_tomahawk3_flowtracker_group_collector_copy_info_get( 30072 int unit, 30073 bcm_flowtracker_group_t group_id, 30074 bcm_flowtracker_collector_copy_info_t *info) 30075 { 30076 return bcm_esw_flowtracker_group_collector_copy_info_get(unit, group_id, info); 30077 } 30078 #endif 30079 30080 #ifdef BCM_TOMAHAWK3_SUPPORT 30081 int 30082 bcm_tomahawk3_flowtracker_group_collector_copy_info_set( 30083 int unit, 30084 bcm_flowtracker_group_t group_id, 30085 bcm_flowtracker_collector_copy_info_t info) 30086 { 30087 return bcm_esw_flowtracker_group_collector_copy_info_set(unit, group_id, info); 30088 } 30089 #endif 30090 30091 int 30092 bcm_tomahawk3_flowtracker_group_collector_delete( 30093 int unit, 30094 bcm_flowtracker_group_t flow_group_id, 30095 bcm_flowtracker_collector_t collector_id, 30096 bcm_flowtracker_export_template_t template_id) 30097 { 30098 return BCM_E_UNAVAIL; 30099 } 30100 30101 #ifdef BCM_TOMAHAWK3_SUPPORT 30102 int 30103 bcm_tomahawk3_flowtracker_group_collector_detach( 30104 int unit, 30105 bcm_flowtracker_group_t flow_group_id, 30106 bcm_collector_t collector_id, 30107 int export_profile_id, 30108 bcm_flowtracker_export_template_t template_id) 30109 { 30110 return bcm_esw_flowtracker_group_collector_detach(unit, flow_group_id, collector_id, export_profile_id, template_id); 30111 } 30112 #endif 30113 30114 int 30115 bcm_tomahawk3_flowtracker_group_collector_get_all( 30116 int unit, 30117 bcm_flowtracker_group_t flow_group_id, 30118 int max_list_size, 30119 bcm_flowtracker_collector_t *list_of_collectors, 30120 bcm_flowtracker_export_template_t *list_of_templates, 30121 int *list_size) 30122 { 30123 return BCM_E_UNAVAIL; 30124 } 30125 30126 #ifdef BCM_TOMAHAWK3_SUPPORT 30127 int 30128 bcm_tomahawk3_flowtracker_group_control_get( 30129 int unit, 30130 bcm_flowtracker_group_t group_id, 30131 bcm_flowtracker_group_control_type_t type, 30132 int *arg) 30133 { 30134 return bcm_esw_flowtracker_group_control_get(unit, group_id, type, arg); 30135 } 30136 #endif 30137 30138 #ifdef BCM_TOMAHAWK3_SUPPORT 30139 int 30140 bcm_tomahawk3_flowtracker_group_control_set( 30141 int unit, 30142 bcm_flowtracker_group_t group_id, 30143 bcm_flowtracker_group_control_type_t type, 30144 int arg) 30145 { 30146 return bcm_esw_flowtracker_group_control_set(unit, group_id, type, arg); 30147 } 30148 #endif 30149 30150 #ifdef BCM_TOMAHAWK3_SUPPORT 30151 int 30152 bcm_tomahawk3_flowtracker_group_cpu_notification_get( 30153 int unit, 30154 bcm_flowtracker_group_t id, 30155 bcm_flowtracker_cpu_notification_info_t *info) 30156 { 30157 return bcm_esw_flowtracker_group_cpu_notification_get(unit, id, info); 30158 } 30159 #endif 30160 30161 #ifdef BCM_TOMAHAWK3_SUPPORT 30162 int 30163 bcm_tomahawk3_flowtracker_group_cpu_notification_set( 30164 int unit, 30165 bcm_flowtracker_group_t id, 30166 bcm_flowtracker_cpu_notification_info_t *info) 30167 { 30168 return bcm_esw_flowtracker_group_cpu_notification_set(unit, id, info); 30169 } 30170 #endif 30171 30172 #ifdef BCM_TOMAHAWK3_SUPPORT 30173 int 30174 bcm_tomahawk3_flowtracker_group_create( 30175 int unit, 30176 uint32 options, 30177 bcm_flowtracker_group_t *flow_group_id, 30178 bcm_flowtracker_group_info_t *flow_group_info) 30179 { 30180 return bcm_esw_flowtracker_group_create(unit, options, flow_group_id, flow_group_info); 30181 } 30182 #endif 30183 30184 #ifdef BCM_TOMAHAWK3_SUPPORT 30185 int 30186 bcm_tomahawk3_flowtracker_group_data_get( 30187 int unit, 30188 bcm_flowtracker_group_t flow_group_id, 30189 bcm_flowtracker_flow_key_t *flow_key, 30190 bcm_flowtracker_flow_data_t *flow_data) 30191 { 30192 return bcm_esw_flowtracker_group_data_get(unit, flow_group_id, flow_key, flow_data); 30193 } 30194 #endif 30195 30196 #ifdef BCM_TOMAHAWK3_SUPPORT 30197 int 30198 bcm_tomahawk3_flowtracker_group_destroy( 30199 int unit, 30200 bcm_flowtracker_group_t id) 30201 { 30202 return bcm_esw_flowtracker_group_destroy(unit, id); 30203 } 30204 #endif 30205 30206 int 30207 bcm_tomahawk3_flowtracker_group_elephant_profile_attach( 30208 int unit, 30209 bcm_flowtracker_group_t flow_group_id, 30210 bcm_flowtracker_elephant_profile_t profile_id) 30211 { 30212 return BCM_E_UNAVAIL; 30213 } 30214 30215 int 30216 bcm_tomahawk3_flowtracker_group_elephant_profile_attach_get( 30217 int unit, 30218 bcm_flowtracker_group_t flow_group_id, 30219 bcm_flowtracker_elephant_profile_t *profile_id) 30220 { 30221 return BCM_E_UNAVAIL; 30222 } 30223 30224 int 30225 bcm_tomahawk3_flowtracker_group_elephant_profile_detach( 30226 int unit, 30227 bcm_flowtracker_group_t flow_group_id) 30228 { 30229 return BCM_E_UNAVAIL; 30230 } 30231 30232 #ifdef BCM_TOMAHAWK3_SUPPORT 30233 int 30234 bcm_tomahawk3_flowtracker_group_export_trigger_get( 30235 int unit, 30236 bcm_flowtracker_group_t id, 30237 bcm_flowtracker_export_trigger_info_t *export_trigger_info) 30238 { 30239 return bcm_esw_flowtracker_group_export_trigger_get(unit, id, export_trigger_info); 30240 } 30241 #endif 30242 30243 #ifdef BCM_TOMAHAWK3_SUPPORT 30244 int 30245 bcm_tomahawk3_flowtracker_group_export_trigger_set( 30246 int unit, 30247 bcm_flowtracker_group_t id, 30248 bcm_flowtracker_export_trigger_info_t *export_trigger_info) 30249 { 30250 return bcm_esw_flowtracker_group_export_trigger_set(unit, id, export_trigger_info); 30251 } 30252 #endif 30253 30254 #ifdef BCM_TOMAHAWK3_SUPPORT 30255 int 30256 bcm_tomahawk3_flowtracker_group_flow_count_get( 30257 int unit, 30258 bcm_flowtracker_group_t id, 30259 uint32 *flow_count) 30260 { 30261 return bcm_esw_flowtracker_group_flow_count_get(unit, id, flow_count); 30262 } 30263 #endif 30264 30265 #ifdef BCM_TOMAHAWK3_SUPPORT 30266 int 30267 bcm_tomahawk3_flowtracker_group_flow_limit_get( 30268 int unit, 30269 bcm_flowtracker_group_t id, 30270 uint32 *flow_limit) 30271 { 30272 return bcm_esw_flowtracker_group_flow_limit_get(unit, id, flow_limit); 30273 } 30274 #endif 30275 30276 #ifdef BCM_TOMAHAWK3_SUPPORT 30277 int 30278 bcm_tomahawk3_flowtracker_group_flow_limit_set( 30279 int unit, 30280 bcm_flowtracker_group_t id, 30281 uint32 flow_limit) 30282 { 30283 return bcm_esw_flowtracker_group_flow_limit_set(unit, id, flow_limit); 30284 } 30285 #endif 30286 30287 #ifdef BCM_TOMAHAWK3_SUPPORT 30288 int 30289 bcm_tomahawk3_flowtracker_group_get( 30290 int unit, 30291 bcm_flowtracker_group_t id, 30292 bcm_flowtracker_group_info_t *flow_group_info) 30293 { 30294 return bcm_esw_flowtracker_group_get(unit, id, flow_group_info); 30295 } 30296 #endif 30297 30298 #ifdef BCM_TOMAHAWK3_SUPPORT 30299 int 30300 bcm_tomahawk3_flowtracker_group_get_all( 30301 int unit, 30302 int max_size, 30303 bcm_flowtracker_group_t *flow_group_list, 30304 int *list_size) 30305 { 30306 return bcm_esw_flowtracker_group_get_all(unit, max_size, flow_group_list, list_size); 30307 } 30308 #endif 30309 30310 #ifdef BCM_TOMAHAWK3_SUPPORT 30311 int 30312 bcm_tomahawk3_flowtracker_group_meter_info_get( 30313 int unit, 30314 bcm_flowtracker_group_t group_id, 30315 bcm_flowtracker_meter_info_t *info) 30316 { 30317 return bcm_esw_flowtracker_group_meter_info_get(unit, group_id, info); 30318 } 30319 #endif 30320 30321 #ifdef BCM_TOMAHAWK3_SUPPORT 30322 int 30323 bcm_tomahawk3_flowtracker_group_meter_info_set( 30324 int unit, 30325 bcm_flowtracker_group_t group_id, 30326 bcm_flowtracker_meter_info_t info) 30327 { 30328 return bcm_esw_flowtracker_group_meter_info_set(unit, group_id, info); 30329 } 30330 #endif 30331 30332 #ifdef BCM_TOMAHAWK3_SUPPORT 30333 int 30334 bcm_tomahawk3_flowtracker_group_multi_clear( 30335 int unit, 30336 uint32 flags, 30337 int num_groups, 30338 bcm_flowtracker_group_t *list_of_group_ids) 30339 { 30340 return bcm_esw_flowtracker_group_multi_clear(unit, flags, num_groups, list_of_group_ids); 30341 } 30342 #endif 30343 30344 #ifdef BCM_TOMAHAWK3_SUPPORT 30345 int 30346 bcm_tomahawk3_flowtracker_group_stat_get( 30347 int unit, 30348 bcm_flowtracker_group_t group_id, 30349 bcm_flowtracker_group_stat_t *group_stats) 30350 { 30351 return bcm_esw_flowtracker_group_stat_get(unit, group_id, group_stats); 30352 } 30353 #endif 30354 30355 #ifdef BCM_TOMAHAWK3_SUPPORT 30356 int 30357 bcm_tomahawk3_flowtracker_group_stat_modeid_get( 30358 int unit, 30359 bcm_flowtracker_group_t id, 30360 uint32 *stat_modeid) 30361 { 30362 return bcm_esw_flowtracker_group_stat_modeid_get(unit, id, stat_modeid); 30363 } 30364 #endif 30365 30366 #ifdef BCM_TOMAHAWK3_SUPPORT 30367 int 30368 bcm_tomahawk3_flowtracker_group_stat_modeid_set( 30369 int unit, 30370 bcm_flowtracker_group_t id, 30371 uint32 stat_modeid) 30372 { 30373 return bcm_esw_flowtracker_group_stat_modeid_set(unit, id, stat_modeid); 30374 } 30375 #endif 30376 30377 #ifdef BCM_TOMAHAWK3_SUPPORT 30378 int 30379 bcm_tomahawk3_flowtracker_group_stat_set( 30380 int unit, 30381 bcm_flowtracker_group_t group_id, 30382 bcm_flowtracker_group_stat_t *group_stats) 30383 { 30384 return bcm_esw_flowtracker_group_stat_set(unit, group_id, group_stats); 30385 } 30386 #endif 30387 30388 #ifdef BCM_TOMAHAWK3_SUPPORT 30389 int 30390 bcm_tomahawk3_flowtracker_group_tracking_params_get( 30391 int unit, 30392 bcm_flowtracker_group_t id, 30393 int max_size, 30394 bcm_flowtracker_tracking_param_info_t *list_of_tracking_params, 30395 int *list_size) 30396 { 30397 return bcm_esw_flowtracker_group_tracking_params_get(unit, id, max_size, list_of_tracking_params, list_size); 30398 } 30399 #endif 30400 30401 #ifdef BCM_TOMAHAWK3_SUPPORT 30402 int 30403 bcm_tomahawk3_flowtracker_group_tracking_params_set( 30404 int unit, 30405 bcm_flowtracker_group_t id, 30406 int num_tracking_params, 30407 bcm_flowtracker_tracking_param_info_t *list_of_tracking_params) 30408 { 30409 return bcm_esw_flowtracker_group_tracking_params_set(unit, id, num_tracking_params, list_of_tracking_params); 30410 } 30411 #endif 30412 30413 #ifdef BCM_TOMAHAWK3_SUPPORT 30414 int 30415 bcm_tomahawk3_flowtracker_template_transmit_config_get( 30416 int unit, 30417 bcm_flowtracker_export_template_t template_id, 30418 bcm_collector_t collector_id, 30419 bcm_flowtracker_template_transmit_config_t *config) 30420 { 30421 return bcm_esw_flowtracker_template_transmit_config_get(unit, template_id, collector_id, config); 30422 } 30423 #endif 30424 30425 #ifdef BCM_TOMAHAWK3_SUPPORT 30426 int 30427 bcm_tomahawk3_flowtracker_template_transmit_config_set( 30428 int unit, 30429 bcm_flowtracker_export_template_t template_id, 30430 bcm_collector_t collector_id, 30431 bcm_flowtracker_template_transmit_config_t *config) 30432 { 30433 return bcm_esw_flowtracker_template_transmit_config_set(unit, template_id, collector_id, config); 30434 } 30435 #endif 30436 30437 #ifdef BCM_TOMAHAWK3_SUPPORT 30438 int 30439 bcm_tomahawk3_flowtracker_user_entry_add( 30440 int unit, 30441 bcm_flowtracker_group_t flow_group_id, 30442 uint32 options, 30443 int num_user_entry_params, 30444 bcm_flowtracker_tracking_param_info_t *user_entry_param_list, 30445 bcm_flowtracker_user_entry_handle_t *entry_handle) 30446 { 30447 return bcm_esw_flowtracker_user_entry_add(unit, flow_group_id, options, num_user_entry_params, user_entry_param_list, entry_handle); 30448 } 30449 #endif 30450 30451 #ifdef BCM_TOMAHAWK3_SUPPORT 30452 int 30453 bcm_tomahawk3_flowtracker_user_entry_delete( 30454 int unit, 30455 bcm_flowtracker_group_t flow_group_id, 30456 bcm_flowtracker_user_entry_handle_t *entry_handle) 30457 { 30458 return bcm_esw_flowtracker_user_entry_delete(unit, flow_group_id, entry_handle); 30459 } 30460 #endif 30461 30462 #ifdef BCM_TOMAHAWK3_SUPPORT 30463 int 30464 bcm_tomahawk3_flowtracker_user_entry_delete_all( 30465 int unit, 30466 bcm_flowtracker_group_t flow_group_id) 30467 { 30468 return bcm_esw_flowtracker_user_entry_delete_all(unit, flow_group_id); 30469 } 30470 #endif 30471 30472 #ifdef BCM_TOMAHAWK3_SUPPORT 30473 int 30474 bcm_tomahawk3_flowtracker_user_entry_get( 30475 int unit, 30476 bcm_flowtracker_user_entry_handle_t *entry_handle, 30477 int num_user_entry_params, 30478 bcm_flowtracker_tracking_param_info_t *user_entry_param_list, 30479 int *actual_user_entry_params) 30480 { 30481 return bcm_esw_flowtracker_user_entry_get(unit, entry_handle, num_user_entry_params, user_entry_param_list, actual_user_entry_params); 30482 } 30483 #endif 30484 30485 #ifdef BCM_TOMAHAWK3_SUPPORT 30486 int 30487 bcm_tomahawk3_flowtracker_user_entry_get_all( 30488 int unit, 30489 bcm_flowtracker_group_t flow_group_id, 30490 int num_user_entry_handles, 30491 bcm_flowtracker_user_entry_handle_t *user_entry_handle_list, 30492 int *actual_user_entry_handles) 30493 { 30494 return bcm_esw_flowtracker_user_entry_get_all(unit, flow_group_id, num_user_entry_handles, user_entry_handle_list, actual_user_entry_handles); 30495 } 30496 #endif 30497 30498 #if defined(INCLUDE_GDPLL) 30499 #ifdef BCM_TOMAHAWK3_SUPPORT 30500 int 30501 bcm_tomahawk3_gdpll_cb_register( 30502 int unit, 30503 int cb_type, 30504 bcm_gdpll_cb cb, 30505 void *user_data) 30506 { 30507 return bcm_esw_gdpll_cb_register(unit, cb_type, cb, user_data); 30508 } 30509 #endif 30510 #endif 30511 30512 #if defined(INCLUDE_GDPLL) 30513 #ifdef BCM_TOMAHAWK3_SUPPORT 30514 int 30515 bcm_tomahawk3_gdpll_cb_unregister( 30516 int unit, 30517 int cb_type) 30518 { 30519 return bcm_esw_gdpll_cb_unregister(unit, cb_type); 30520 } 30521 #endif 30522 #endif 30523 30524 #if defined(INCLUDE_GDPLL) 30525 #ifdef BCM_TOMAHAWK3_SUPPORT 30526 int 30527 bcm_tomahawk3_gdpll_chan_create( 30528 int unit, 30529 uint32 flags, 30530 bcm_gdpll_chan_t *gdpll_chan, 30531 int *pChan) 30532 { 30533 return bcm_esw_gdpll_chan_create(unit, flags, gdpll_chan, pChan); 30534 } 30535 #endif 30536 #endif 30537 30538 #if defined(INCLUDE_GDPLL) 30539 #ifdef BCM_TOMAHAWK3_SUPPORT 30540 int 30541 bcm_tomahawk3_gdpll_chan_debug_enable( 30542 int unit, 30543 int chan, 30544 bcm_gdpll_debug_mode_t debug_mode, 30545 int enable) 30546 { 30547 return bcm_esw_gdpll_chan_debug_enable(unit, chan, debug_mode, enable); 30548 } 30549 #endif 30550 #endif 30551 30552 #if defined(INCLUDE_GDPLL) 30553 #ifdef BCM_TOMAHAWK3_SUPPORT 30554 int 30555 bcm_tomahawk3_gdpll_chan_destroy( 30556 int unit, 30557 int chan) 30558 { 30559 return bcm_esw_gdpll_chan_destroy(unit, chan); 30560 } 30561 #endif 30562 #endif 30563 30564 #if defined(INCLUDE_GDPLL) 30565 #ifdef BCM_TOMAHAWK3_SUPPORT 30566 int 30567 bcm_tomahawk3_gdpll_chan_enable( 30568 int unit, 30569 int chan, 30570 int enable) 30571 { 30572 return bcm_esw_gdpll_chan_enable(unit, chan, enable); 30573 } 30574 #endif 30575 #endif 30576 30577 #if defined(INCLUDE_GDPLL) 30578 #ifdef BCM_TOMAHAWK3_SUPPORT 30579 int 30580 bcm_tomahawk3_gdpll_chan_state_get( 30581 int unit, 30582 int chan, 30583 uint32 *dpllState) 30584 { 30585 return bcm_esw_gdpll_chan_state_get(unit, chan, dpllState); 30586 } 30587 #endif 30588 #endif 30589 30590 #if defined(INCLUDE_GDPLL) 30591 #ifdef BCM_TOMAHAWK3_SUPPORT 30592 int 30593 bcm_tomahawk3_gdpll_debug( 30594 int unit, 30595 int enable) 30596 { 30597 return bcm_esw_gdpll_debug(unit, enable); 30598 } 30599 #endif 30600 #endif 30601 30602 #if defined(INCLUDE_GDPLL) 30603 #ifdef BCM_TOMAHAWK3_SUPPORT 30604 int 30605 bcm_tomahawk3_gdpll_debug_cb_register( 30606 int unit, 30607 bcm_gdpll_debug_cb cb, 30608 void *user_data) 30609 { 30610 return bcm_esw_gdpll_debug_cb_register(unit, cb, user_data); 30611 } 30612 #endif 30613 #endif 30614 30615 #if defined(INCLUDE_GDPLL) 30616 #ifdef BCM_TOMAHAWK3_SUPPORT 30617 int 30618 bcm_tomahawk3_gdpll_flush( 30619 int unit) 30620 { 30621 return bcm_esw_gdpll_flush(unit); 30622 } 30623 #endif 30624 #endif 30625 30626 #ifdef BCM_TOMAHAWK3_SUPPORT 30627 int 30628 bcm_tomahawk3_gport_stat_get( 30629 int unit, 30630 bcm_gport_t gport, 30631 bcm_core_t core_id, 30632 bcm_stat_counter_interface_type_t engine_source, 30633 bcm_stat_pp_info_t *stat_info) 30634 { 30635 return bcm_esw_gport_stat_get(unit, gport, core_id, engine_source, stat_info); 30636 } 30637 #endif 30638 30639 #ifdef BCM_TOMAHAWK3_SUPPORT 30640 int 30641 bcm_tomahawk3_gport_stat_set( 30642 int unit, 30643 bcm_gport_t gport, 30644 bcm_core_t core_id, 30645 bcm_stat_counter_interface_type_t engine_source, 30646 bcm_stat_pp_info_t stat_info) 30647 { 30648 return bcm_esw_gport_stat_set(unit, gport, core_id, engine_source, stat_info); 30649 } 30650 #endif 30651 30652 #ifdef BCM_TOMAHAWK3_SUPPORT 30653 int 30654 bcm_tomahawk3_hash_flex_bin_add( 30655 int unit, 30656 bcm_hash_flex_bin_config_t *cfg, 30657 int num_bins, 30658 bcm_hash_flex_bin_cmd_t *bin_cmd, 30659 int num_fields, 30660 bcm_hash_flex_field_t *flex_field) 30661 { 30662 return bcm_esw_hash_flex_bin_add(unit, cfg, num_bins, bin_cmd, num_fields, flex_field); 30663 } 30664 #endif 30665 30666 #ifdef BCM_TOMAHAWK3_SUPPORT 30667 int 30668 bcm_tomahawk3_hash_flex_bin_delete( 30669 int unit, 30670 int entry_id) 30671 { 30672 return bcm_esw_hash_flex_bin_delete(unit, entry_id); 30673 } 30674 #endif 30675 30676 #ifdef BCM_TOMAHAWK3_SUPPORT 30677 int 30678 bcm_tomahawk3_hash_flex_bin_delete_all( 30679 int unit) 30680 { 30681 return bcm_esw_hash_flex_bin_delete_all(unit); 30682 } 30683 #endif 30684 30685 #ifdef BCM_TOMAHAWK3_SUPPORT 30686 int 30687 bcm_tomahawk3_hash_flex_bin_get( 30688 int unit, 30689 bcm_hash_flex_bin_config_t *cfg, 30690 int num_bins, 30691 bcm_hash_flex_bin_cmd_t *bin_cmd, 30692 int num_fields, 30693 bcm_hash_flex_field_t *flex_field) 30694 { 30695 return bcm_esw_hash_flex_bin_get(unit, cfg, num_bins, bin_cmd, num_fields, flex_field); 30696 } 30697 #endif 30698 30699 #ifdef BCM_TOMAHAWK3_SUPPORT 30700 int 30701 bcm_tomahawk3_hash_flex_bin_traverse( 30702 int unit, 30703 uint32 option, 30704 bcm_hash_flex_bin_traverse_cb cb, 30705 void *user_data) 30706 { 30707 return bcm_esw_hash_flex_bin_traverse(unit, option, cb, user_data); 30708 } 30709 #endif 30710 30711 #ifdef BCM_TOMAHAWK3_SUPPORT 30712 int 30713 bcm_tomahawk3_hash_flex_field_id_get( 30714 int unit, 30715 bcm_hash_flex_object_t object, 30716 const char *field_name, 30717 uint32 *field_id) 30718 { 30719 return bcm_esw_hash_flex_field_id_get(unit, object, field_name, field_id); 30720 } 30721 #endif 30722 30723 #ifdef BCM_TOMAHAWK3_SUPPORT 30724 int 30725 bcm_tomahawk3_hash_flex_field_name_get( 30726 int unit, 30727 uint32 field_id, 30728 bcm_hash_flex_object_t *object, 30729 int size, 30730 char *field_name) 30731 { 30732 return bcm_esw_hash_flex_field_name_get(unit, field_id, object, size, field_name); 30733 } 30734 #endif 30735 30736 #ifdef BCM_TOMAHAWK3_SUPPORT 30737 int 30738 bcm_tomahawk3_hash_init( 30739 int unit) 30740 { 30741 return bcm_esw_hash_init(unit); 30742 } 30743 #endif 30744 30745 #if defined(INCLUDE_I2C) 30746 #ifdef BCM_TOMAHAWK3_SUPPORT 30747 int 30748 bcm_tomahawk3_i2c_ioctl( 30749 int unit, 30750 int fd, 30751 int opcode, 30752 void *data, 30753 int len) 30754 { 30755 return bcm_esw_i2c_ioctl(unit, fd, opcode, data, len); 30756 } 30757 #endif 30758 #endif 30759 30760 #if defined(INCLUDE_I2C) 30761 #ifdef BCM_TOMAHAWK3_SUPPORT 30762 int 30763 bcm_tomahawk3_i2c_open( 30764 int unit, 30765 char *devname, 30766 uint32 flags, 30767 int speed) 30768 { 30769 return bcm_esw_i2c_open(unit, devname, flags, speed); 30770 } 30771 #endif 30772 #endif 30773 30774 #if defined(INCLUDE_I2C) 30775 #ifdef BCM_TOMAHAWK3_SUPPORT 30776 int 30777 bcm_tomahawk3_i2c_read( 30778 int unit, 30779 int fd, 30780 uint32 addr, 30781 uint8 *data, 30782 uint32 *nbytes) 30783 { 30784 return bcm_esw_i2c_read(unit, fd, addr, data, nbytes); 30785 } 30786 #endif 30787 #endif 30788 30789 #if defined(INCLUDE_I2C) 30790 #ifdef BCM_TOMAHAWK3_SUPPORT 30791 int 30792 bcm_tomahawk3_i2c_write( 30793 int unit, 30794 int fd, 30795 uint32 addr, 30796 uint8 *data, 30797 uint32 nbytes) 30798 { 30799 return bcm_esw_i2c_write(unit, fd, addr, data, nbytes); 30800 } 30801 #endif 30802 #endif 30803 30804 #ifdef BCM_TOMAHAWK3_SUPPORT 30805 int 30806 bcm_tomahawk3_ifa_collector_get( 30807 int unit, 30808 bcm_ifa_collector_info_t *collector_info) 30809 { 30810 return bcm_esw_ifa_collector_get(unit, collector_info); 30811 } 30812 #endif 30813 30814 #ifdef BCM_TOMAHAWK3_SUPPORT 30815 int 30816 bcm_tomahawk3_ifa_collector_set( 30817 int unit, 30818 uint32 options, 30819 bcm_ifa_collector_info_t *collector_info) 30820 { 30821 return bcm_esw_ifa_collector_set(unit, options, collector_info); 30822 } 30823 #endif 30824 30825 #ifdef BCM_TOMAHAWK3_SUPPORT 30826 int 30827 bcm_tomahawk3_ifa_config_info_get( 30828 int unit, 30829 bcm_ifa_config_info_t *config_data) 30830 { 30831 return bcm_esw_ifa_config_info_get(unit, config_data); 30832 } 30833 #endif 30834 30835 #ifdef BCM_TOMAHAWK3_SUPPORT 30836 int 30837 bcm_tomahawk3_ifa_config_info_set( 30838 int unit, 30839 uint32 options, 30840 bcm_ifa_config_info_t *config_data) 30841 { 30842 return bcm_esw_ifa_config_info_set(unit, options, config_data); 30843 } 30844 #endif 30845 30846 #ifdef BCM_TOMAHAWK3_SUPPORT 30847 int 30848 bcm_tomahawk3_ifa_detach( 30849 int unit) 30850 { 30851 return bcm_esw_ifa_detach(unit); 30852 } 30853 #endif 30854 30855 #ifdef BCM_TOMAHAWK3_SUPPORT 30856 int 30857 bcm_tomahawk3_ifa_init( 30858 int unit) 30859 { 30860 return bcm_esw_ifa_init(unit); 30861 } 30862 #endif 30863 30864 #ifdef BCM_TOMAHAWK3_SUPPORT 30865 int 30866 bcm_tomahawk3_ifa_stat_info_get( 30867 int unit, 30868 bcm_ifa_stat_info_t *stat_data) 30869 { 30870 return bcm_esw_ifa_stat_info_get(unit, stat_data); 30871 } 30872 #endif 30873 30874 #ifdef BCM_TOMAHAWK3_SUPPORT 30875 int 30876 bcm_tomahawk3_ifa_stat_info_set( 30877 int unit, 30878 bcm_ifa_stat_info_t *stat_data) 30879 { 30880 return bcm_esw_ifa_stat_info_set(unit, stat_data); 30881 } 30882 #endif 30883 30884 #ifdef BCM_TOMAHAWK3_SUPPORT 30885 int 30886 bcm_tomahawk3_info_get( 30887 int unit, 30888 bcm_info_t *info) 30889 { 30890 return bcm_esw_info_get(unit, info); 30891 } 30892 #endif 30893 30894 #ifdef BCM_TOMAHAWK3_SUPPORT 30895 int 30896 bcm_tomahawk3_init_advanced( 30897 int unit, 30898 bcm_init_advanced_info_t *init_advanced_info) 30899 { 30900 return bcm_esw_init_advanced(unit, init_advanced_info); 30901 } 30902 #endif 30903 30904 #ifdef BCM_TOMAHAWK3_SUPPORT 30905 int 30906 bcm_tomahawk3_init_check( 30907 int unit) 30908 { 30909 return bcm_esw_init_check(unit); 30910 } 30911 #endif 30912 30913 #ifdef BCM_TOMAHAWK3_SUPPORT 30914 int 30915 bcm_tomahawk3_init_selective( 30916 int unit, 30917 uint32 flags) 30918 { 30919 return bcm_esw_init_selective(unit, flags); 30920 } 30921 #endif 30922 30923 #ifdef BCM_TOMAHAWK3_SUPPORT 30924 int 30925 bcm_tomahawk3_instru_control_get( 30926 int unit, 30927 uint32 flags, 30928 bcm_instru_control_t type, 30929 int *arg) 30930 { 30931 return bcm_esw_instru_control_get(unit, flags, type, arg); 30932 } 30933 #endif 30934 30935 #ifdef BCM_TOMAHAWK3_SUPPORT 30936 int 30937 bcm_tomahawk3_instru_control_set( 30938 int unit, 30939 uint32 flags, 30940 bcm_instru_control_t type, 30941 int arg) 30942 { 30943 return bcm_esw_instru_control_set(unit, flags, type, arg); 30944 } 30945 #endif 30946 30947 #ifdef BCM_TOMAHAWK3_SUPPORT 30948 int 30949 bcm_tomahawk3_instru_eventor_active_get( 30950 int unit, 30951 uint32 flags, 30952 int *out_active) 30953 { 30954 return bcm_esw_instru_eventor_active_get(unit, flags, out_active); 30955 } 30956 #endif 30957 30958 #ifdef BCM_TOMAHAWK3_SUPPORT 30959 int 30960 bcm_tomahawk3_instru_eventor_active_set( 30961 int unit, 30962 uint32 flags, 30963 int active) 30964 { 30965 return bcm_esw_instru_eventor_active_set(unit, flags, active); 30966 } 30967 #endif 30968 30969 #ifdef BCM_TOMAHAWK3_SUPPORT 30970 int 30971 bcm_tomahawk3_instru_eventor_builder_get( 30972 int unit, 30973 uint32 flags, 30974 bcm_eventor_builder_id_t builder, 30975 bcm_instru_eventor_builder_conf_t *out_conf) 30976 { 30977 return bcm_esw_instru_eventor_builder_get(unit, flags, builder, out_conf); 30978 } 30979 #endif 30980 30981 #ifdef BCM_TOMAHAWK3_SUPPORT 30982 int 30983 bcm_tomahawk3_instru_eventor_builder_set( 30984 int unit, 30985 uint32 flags, 30986 bcm_eventor_builder_id_t builder, 30987 bcm_instru_eventor_builder_conf_t *conf) 30988 { 30989 return bcm_esw_instru_eventor_builder_set(unit, flags, builder, conf); 30990 } 30991 #endif 30992 30993 #ifdef BCM_TOMAHAWK3_SUPPORT 30994 int 30995 bcm_tomahawk3_instru_eventor_context_get( 30996 int unit, 30997 uint32 flags, 30998 bcm_eventor_context_id_t context, 30999 bcm_eventor_context_type_t context_type, 31000 bcm_instru_eventor_context_conf_t *out_conf) 31001 { 31002 return bcm_esw_instru_eventor_context_get(unit, flags, context, context_type, out_conf); 31003 } 31004 #endif 31005 31006 #ifdef BCM_TOMAHAWK3_SUPPORT 31007 int 31008 bcm_tomahawk3_instru_eventor_context_set( 31009 int unit, 31010 uint32 flags, 31011 bcm_eventor_context_id_t context, 31012 bcm_eventor_context_type_t context_type, 31013 bcm_instru_eventor_context_conf_t *conf) 31014 { 31015 return bcm_esw_instru_eventor_context_set(unit, flags, context, context_type, conf); 31016 } 31017 #endif 31018 31019 #ifdef BCM_TOMAHAWK3_SUPPORT 31020 int 31021 bcm_tomahawk3_instru_gport_control_get( 31022 int unit, 31023 bcm_gport_t gport, 31024 uint32 flags, 31025 bcm_instru_gport_control_t type, 31026 int *arg) 31027 { 31028 return bcm_esw_instru_gport_control_get(unit, gport, flags, type, arg); 31029 } 31030 #endif 31031 31032 #ifdef BCM_TOMAHAWK3_SUPPORT 31033 int 31034 bcm_tomahawk3_instru_gport_control_set( 31035 int unit, 31036 bcm_gport_t gport, 31037 uint32 flags, 31038 bcm_instru_gport_control_t type, 31039 int arg) 31040 { 31041 return bcm_esw_instru_gport_control_set(unit, gport, flags, type, arg); 31042 } 31043 #endif 31044 31045 #ifdef BCM_TOMAHAWK3_SUPPORT 31046 int 31047 bcm_tomahawk3_instru_ipt_profile_get( 31048 int unit, 31049 uint32 flags, 31050 int ipt_profile, 31051 bcm_instru_ipt_t *config) 31052 { 31053 return bcm_esw_instru_ipt_profile_get(unit, flags, ipt_profile, config); 31054 } 31055 #endif 31056 31057 #ifdef BCM_TOMAHAWK3_SUPPORT 31058 int 31059 bcm_tomahawk3_instru_ipt_profile_set( 31060 int unit, 31061 uint32 flags, 31062 int ipt_profile, 31063 bcm_instru_ipt_t *config) 31064 { 31065 return bcm_esw_instru_ipt_profile_set(unit, flags, ipt_profile, config); 31066 } 31067 #endif 31068 31069 #ifdef BCM_TOMAHAWK3_SUPPORT 31070 int 31071 bcm_tomahawk3_instru_sflow_encap_create( 31072 int unit, 31073 bcm_instru_sflow_encap_info_t *sflow_encap_info) 31074 { 31075 return bcm_esw_instru_sflow_encap_create(unit, sflow_encap_info); 31076 } 31077 #endif 31078 31079 #ifdef BCM_TOMAHAWK3_SUPPORT 31080 int 31081 bcm_tomahawk3_instru_sflow_encap_delete( 31082 int unit, 31083 bcm_instru_sflow_encap_info_t *sflow_encap_info) 31084 { 31085 return bcm_esw_instru_sflow_encap_delete(unit, sflow_encap_info); 31086 } 31087 #endif 31088 31089 #ifdef BCM_TOMAHAWK3_SUPPORT 31090 int 31091 bcm_tomahawk3_instru_sflow_encap_get( 31092 int unit, 31093 bcm_instru_sflow_encap_info_t *sflow_encap_info) 31094 { 31095 return bcm_esw_instru_sflow_encap_get(unit, sflow_encap_info); 31096 } 31097 #endif 31098 31099 #ifdef BCM_TOMAHAWK3_SUPPORT 31100 int 31101 bcm_tomahawk3_instru_sflow_encap_traverse( 31102 int unit, 31103 bcm_instru_sflow_encap_traverse_cb cb, 31104 void *user_data) 31105 { 31106 return bcm_esw_instru_sflow_encap_traverse(unit, cb, user_data); 31107 } 31108 #endif 31109 31110 #ifdef BCM_TOMAHAWK3_SUPPORT 31111 int 31112 bcm_tomahawk3_instru_vis_mode_get( 31113 int unit, 31114 bcm_vis_mode_t *mode) 31115 { 31116 return bcm_esw_instru_vis_mode_get(unit, mode); 31117 } 31118 #endif 31119 31120 #ifdef BCM_TOMAHAWK3_SUPPORT 31121 int 31122 bcm_tomahawk3_instru_vis_mode_set( 31123 int unit, 31124 bcm_vis_mode_t mode) 31125 { 31126 return bcm_esw_instru_vis_mode_set(unit, mode); 31127 } 31128 #endif 31129 31130 #ifdef BCM_TOMAHAWK3_SUPPORT 31131 int 31132 bcm_tomahawk3_ipfix_config_get( 31133 int unit, 31134 bcm_ipfix_stage_t stage, 31135 bcm_port_t port, 31136 bcm_ipfix_config_t *config) 31137 { 31138 return bcm_esw_ipfix_config_get(unit, stage, port, config); 31139 } 31140 #endif 31141 31142 #ifdef BCM_TOMAHAWK3_SUPPORT 31143 int 31144 bcm_tomahawk3_ipfix_config_set( 31145 int unit, 31146 bcm_ipfix_stage_t stage, 31147 bcm_port_t port, 31148 bcm_ipfix_config_t *config) 31149 { 31150 return bcm_esw_ipfix_config_set(unit, stage, port, config); 31151 } 31152 #endif 31153 31154 #ifdef BCM_TOMAHAWK3_SUPPORT 31155 int 31156 bcm_tomahawk3_ipfix_mirror_config_get( 31157 int unit, 31158 bcm_ipfix_stage_t stage, 31159 bcm_gport_t port, 31160 bcm_ipfix_mirror_config_t *config) 31161 { 31162 return bcm_esw_ipfix_mirror_config_get(unit, stage, port, config); 31163 } 31164 #endif 31165 31166 #ifdef BCM_TOMAHAWK3_SUPPORT 31167 int 31168 bcm_tomahawk3_ipfix_mirror_config_set( 31169 int unit, 31170 bcm_ipfix_stage_t stage, 31171 bcm_gport_t port, 31172 bcm_ipfix_mirror_config_t *config) 31173 { 31174 return bcm_esw_ipfix_mirror_config_set(unit, stage, port, config); 31175 } 31176 #endif 31177 31178 #ifdef BCM_TOMAHAWK3_SUPPORT 31179 int 31180 bcm_tomahawk3_ipfix_mirror_port_dest_add( 31181 int unit, 31182 bcm_ipfix_stage_t stage, 31183 bcm_gport_t port, 31184 bcm_gport_t mirror_dest_id) 31185 { 31186 return bcm_esw_ipfix_mirror_port_dest_add(unit, stage, port, mirror_dest_id); 31187 } 31188 #endif 31189 31190 #ifdef BCM_TOMAHAWK3_SUPPORT 31191 int 31192 bcm_tomahawk3_ipfix_mirror_port_dest_delete( 31193 int unit, 31194 bcm_ipfix_stage_t stage, 31195 bcm_gport_t port, 31196 bcm_gport_t mirror_dest_id) 31197 { 31198 return bcm_esw_ipfix_mirror_port_dest_delete(unit, stage, port, mirror_dest_id); 31199 } 31200 #endif 31201 31202 #ifdef BCM_TOMAHAWK3_SUPPORT 31203 int 31204 bcm_tomahawk3_ipfix_mirror_port_dest_delete_all( 31205 int unit, 31206 bcm_ipfix_stage_t stage, 31207 bcm_gport_t port) 31208 { 31209 return bcm_esw_ipfix_mirror_port_dest_delete_all(unit, stage, port); 31210 } 31211 #endif 31212 31213 #ifdef BCM_TOMAHAWK3_SUPPORT 31214 int 31215 bcm_tomahawk3_ipfix_mirror_port_dest_get( 31216 int unit, 31217 bcm_ipfix_stage_t stage, 31218 bcm_gport_t port, 31219 int mirror_dest_size, 31220 bcm_gport_t *mirror_dest_id, 31221 int *mirror_dest_count) 31222 { 31223 return bcm_esw_ipfix_mirror_port_dest_get(unit, stage, port, mirror_dest_size, mirror_dest_id, mirror_dest_count); 31224 } 31225 #endif 31226 31227 #ifdef BCM_TOMAHAWK3_SUPPORT 31228 int 31229 bcm_tomahawk3_ipfix_rate_create( 31230 int unit, 31231 bcm_ipfix_rate_t *rate_info) 31232 { 31233 return bcm_esw_ipfix_rate_create(unit, rate_info); 31234 } 31235 #endif 31236 31237 #ifdef BCM_TOMAHAWK3_SUPPORT 31238 int 31239 bcm_tomahawk3_ipfix_rate_destroy( 31240 int unit, 31241 bcm_ipfix_rate_id_t rate_id) 31242 { 31243 return bcm_esw_ipfix_rate_destroy(unit, rate_id); 31244 } 31245 #endif 31246 31247 #ifdef BCM_TOMAHAWK3_SUPPORT 31248 int 31249 bcm_tomahawk3_ipfix_rate_destroy_all( 31250 int unit) 31251 { 31252 return bcm_esw_ipfix_rate_destroy_all(unit); 31253 } 31254 #endif 31255 31256 #ifdef BCM_TOMAHAWK3_SUPPORT 31257 int 31258 bcm_tomahawk3_ipfix_rate_get( 31259 int unit, 31260 bcm_ipfix_rate_t *rate_info) 31261 { 31262 return bcm_esw_ipfix_rate_get(unit, rate_info); 31263 } 31264 #endif 31265 31266 #ifdef BCM_TOMAHAWK3_SUPPORT 31267 int 31268 bcm_tomahawk3_ipfix_rate_mirror_add( 31269 int unit, 31270 bcm_ipfix_rate_id_t rate_id, 31271 bcm_gport_t mirror_dest_id) 31272 { 31273 return bcm_esw_ipfix_rate_mirror_add(unit, rate_id, mirror_dest_id); 31274 } 31275 #endif 31276 31277 #ifdef BCM_TOMAHAWK3_SUPPORT 31278 int 31279 bcm_tomahawk3_ipfix_rate_mirror_delete( 31280 int unit, 31281 bcm_ipfix_rate_id_t rate_id, 31282 bcm_gport_t mirror_dest_id) 31283 { 31284 return bcm_esw_ipfix_rate_mirror_delete(unit, rate_id, mirror_dest_id); 31285 } 31286 #endif 31287 31288 #ifdef BCM_TOMAHAWK3_SUPPORT 31289 int 31290 bcm_tomahawk3_ipfix_rate_mirror_delete_all( 31291 int unit, 31292 bcm_ipfix_rate_id_t rate_id) 31293 { 31294 return bcm_esw_ipfix_rate_mirror_delete_all(unit, rate_id); 31295 } 31296 #endif 31297 31298 #ifdef BCM_TOMAHAWK3_SUPPORT 31299 int 31300 bcm_tomahawk3_ipfix_rate_mirror_get( 31301 int unit, 31302 bcm_ipfix_rate_id_t rate_id, 31303 int mirror_dest_size, 31304 bcm_gport_t *mirror_dest_id, 31305 int *mirror_dest_count) 31306 { 31307 return bcm_esw_ipfix_rate_mirror_get(unit, rate_id, mirror_dest_size, mirror_dest_id, mirror_dest_count); 31308 } 31309 #endif 31310 31311 #ifdef BCM_TOMAHAWK3_SUPPORT 31312 int 31313 bcm_tomahawk3_ipfix_rate_traverse( 31314 int unit, 31315 bcm_ipfix_rate_traverse_cb cb, 31316 void *userdata) 31317 { 31318 return bcm_esw_ipfix_rate_traverse(unit, cb, userdata); 31319 } 31320 #endif 31321 31322 #ifdef BCM_TOMAHAWK3_SUPPORT 31323 int 31324 bcm_tomahawk3_ipfix_register( 31325 int unit, 31326 bcm_ipfix_callback_t callback, 31327 void *userdata) 31328 { 31329 return bcm_esw_ipfix_register(unit, callback, userdata); 31330 } 31331 #endif 31332 31333 #ifdef BCM_TOMAHAWK3_SUPPORT 31334 int 31335 bcm_tomahawk3_ipfix_unregister( 31336 int unit, 31337 bcm_ipfix_callback_t callback, 31338 void *userdata) 31339 { 31340 return bcm_esw_ipfix_unregister(unit, callback, userdata); 31341 } 31342 #endif 31343 31344 #if defined(INCLUDE_L3) 31345 #ifdef BCM_TOMAHAWK3_SUPPORT 31346 int 31347 bcm_tomahawk3_ipmc_add( 31348 int unit, 31349 bcm_ipmc_addr_t *data) 31350 { 31351 return bcm_esw_ipmc_add(unit, data); 31352 } 31353 #endif 31354 #endif 31355 31356 #if defined(INCLUDE_L3) 31357 #ifdef BCM_TOMAHAWK3_SUPPORT 31358 int 31359 bcm_tomahawk3_ipmc_age( 31360 int unit, 31361 uint32 flags, 31362 bcm_ipmc_traverse_cb age_cb, 31363 void *user_data) 31364 { 31365 return bcm_esw_ipmc_age(unit, flags, age_cb, user_data); 31366 } 31367 #endif 31368 #endif 31369 31370 #if defined(INCLUDE_L3) 31371 #ifdef BCM_TOMAHAWK3_SUPPORT 31372 int 31373 bcm_tomahawk3_ipmc_bitmap_del( 31374 int unit, 31375 int ipmc_idx, 31376 bcm_port_t port, 31377 bcm_pbmp_t pbmp) 31378 { 31379 return bcm_esw_ipmc_bitmap_del(unit, ipmc_idx, port, pbmp); 31380 } 31381 #endif 31382 #endif 31383 31384 #if defined(INCLUDE_L3) 31385 #ifdef BCM_TOMAHAWK3_SUPPORT 31386 int 31387 bcm_tomahawk3_ipmc_bitmap_get( 31388 int unit, 31389 int ipmc_idx, 31390 bcm_port_t port, 31391 bcm_pbmp_t *pbmp) 31392 { 31393 return bcm_esw_ipmc_bitmap_get(unit, ipmc_idx, port, pbmp); 31394 } 31395 #endif 31396 #endif 31397 31398 #if defined(INCLUDE_L3) 31399 #ifdef BCM_TOMAHAWK3_SUPPORT 31400 int 31401 bcm_tomahawk3_ipmc_bitmap_max_get( 31402 int unit, 31403 int *max_index) 31404 { 31405 return bcm_esw_ipmc_bitmap_max_get(unit, max_index); 31406 } 31407 #endif 31408 #endif 31409 31410 #if defined(INCLUDE_L3) 31411 #ifdef BCM_TOMAHAWK3_SUPPORT 31412 int 31413 bcm_tomahawk3_ipmc_bitmap_set( 31414 int unit, 31415 int ipmc_idx, 31416 bcm_port_t port, 31417 bcm_pbmp_t pbmp) 31418 { 31419 return bcm_esw_ipmc_bitmap_set(unit, ipmc_idx, port, pbmp); 31420 } 31421 #endif 31422 #endif 31423 31424 #if defined(INCLUDE_L3) 31425 #ifdef BCM_TOMAHAWK3_SUPPORT 31426 int 31427 bcm_tomahawk3_ipmc_counters_get( 31428 int unit, 31429 bcm_port_t port, 31430 bcm_ipmc_counters_t *counters) 31431 { 31432 return bcm_esw_ipmc_counters_get(unit, port, counters); 31433 } 31434 #endif 31435 #endif 31436 31437 #if defined(INCLUDE_L3) 31438 #ifdef BCM_TOMAHAWK3_SUPPORT 31439 int 31440 bcm_tomahawk3_ipmc_detach( 31441 int unit) 31442 { 31443 return bcm_esw_ipmc_detach(unit); 31444 } 31445 #endif 31446 #endif 31447 31448 #if defined(INCLUDE_L3) 31449 #ifdef BCM_TOMAHAWK3_SUPPORT 31450 int 31451 bcm_tomahawk3_ipmc_egress_port_get( 31452 int unit, 31453 bcm_port_t port, 31454 bcm_mac_t mac, 31455 int *untag, 31456 bcm_vlan_t *vid, 31457 int *ttl_threshold) 31458 { 31459 return bcm_esw_ipmc_egress_port_get(unit, port, mac, untag, vid, ttl_threshold); 31460 } 31461 #endif 31462 #endif 31463 31464 #if defined(INCLUDE_L3) 31465 #ifdef BCM_TOMAHAWK3_SUPPORT 31466 int 31467 bcm_tomahawk3_ipmc_egress_port_init( 31468 int unit) 31469 { 31470 return bcm_esw_ipmc_egress_port_init(unit); 31471 } 31472 #endif 31473 #endif 31474 31475 #if defined(INCLUDE_L3) 31476 #ifdef BCM_TOMAHAWK3_SUPPORT 31477 int 31478 bcm_tomahawk3_ipmc_egress_port_set( 31479 int unit, 31480 bcm_port_t port, 31481 const bcm_mac_t mac, 31482 int untag, 31483 bcm_vlan_t vid, 31484 int ttl_threshold) 31485 { 31486 return bcm_esw_ipmc_egress_port_set(unit, port, mac, untag, vid, ttl_threshold); 31487 } 31488 #endif 31489 #endif 31490 31491 #if defined(INCLUDE_L3) 31492 #ifdef BCM_TOMAHAWK3_SUPPORT 31493 int 31494 bcm_tomahawk3_ipmc_enable( 31495 int unit, 31496 int enable) 31497 { 31498 return bcm_esw_ipmc_enable(unit, enable); 31499 } 31500 #endif 31501 #endif 31502 31503 #if defined(INCLUDE_L3) 31504 #ifdef BCM_TOMAHAWK3_SUPPORT 31505 int 31506 bcm_tomahawk3_ipmc_find( 31507 int unit, 31508 bcm_ipmc_addr_t *data) 31509 { 31510 return bcm_esw_ipmc_find(unit, data); 31511 } 31512 #endif 31513 #endif 31514 31515 #if defined(INCLUDE_L3) 31516 #ifdef BCM_TOMAHAWK3_SUPPORT 31517 int 31518 bcm_tomahawk3_ipmc_init( 31519 int unit) 31520 { 31521 return bcm_esw_ipmc_init(unit); 31522 } 31523 #endif 31524 #endif 31525 31526 #if defined(INCLUDE_L3) 31527 #ifdef BCM_TOMAHAWK3_SUPPORT 31528 int 31529 bcm_tomahawk3_ipmc_range_add( 31530 int unit, 31531 int *range_id, 31532 bcm_ipmc_range_t *range) 31533 { 31534 return bcm_esw_ipmc_range_add(unit, range_id, range); 31535 } 31536 #endif 31537 #endif 31538 31539 #if defined(INCLUDE_L3) 31540 #ifdef BCM_TOMAHAWK3_SUPPORT 31541 int 31542 bcm_tomahawk3_ipmc_range_delete( 31543 int unit, 31544 int range_id) 31545 { 31546 return bcm_esw_ipmc_range_delete(unit, range_id); 31547 } 31548 #endif 31549 #endif 31550 31551 #if defined(INCLUDE_L3) 31552 #ifdef BCM_TOMAHAWK3_SUPPORT 31553 int 31554 bcm_tomahawk3_ipmc_range_delete_all( 31555 int unit) 31556 { 31557 return bcm_esw_ipmc_range_delete_all(unit); 31558 } 31559 #endif 31560 #endif 31561 31562 #if defined(INCLUDE_L3) 31563 #ifdef BCM_TOMAHAWK3_SUPPORT 31564 int 31565 bcm_tomahawk3_ipmc_range_get( 31566 int unit, 31567 int range_id, 31568 bcm_ipmc_range_t *range) 31569 { 31570 return bcm_esw_ipmc_range_get(unit, range_id, range); 31571 } 31572 #endif 31573 #endif 31574 31575 #if defined(INCLUDE_L3) 31576 #ifdef BCM_TOMAHAWK3_SUPPORT 31577 int 31578 bcm_tomahawk3_ipmc_range_size_get( 31579 int unit, 31580 int *size) 31581 { 31582 return bcm_esw_ipmc_range_size_get(unit, size); 31583 } 31584 #endif 31585 #endif 31586 31587 #if defined(INCLUDE_L3) 31588 #ifdef BCM_TOMAHAWK3_SUPPORT 31589 int 31590 bcm_tomahawk3_ipmc_remove( 31591 int unit, 31592 bcm_ipmc_addr_t *data) 31593 { 31594 return bcm_esw_ipmc_remove(unit, data); 31595 } 31596 #endif 31597 #endif 31598 31599 #if defined(INCLUDE_L3) 31600 #ifdef BCM_TOMAHAWK3_SUPPORT 31601 int 31602 bcm_tomahawk3_ipmc_remove_all( 31603 int unit) 31604 { 31605 return bcm_esw_ipmc_remove_all(unit); 31606 } 31607 #endif 31608 #endif 31609 31610 #if defined(INCLUDE_L3) 31611 #ifdef BCM_TOMAHAWK3_SUPPORT 31612 int 31613 bcm_tomahawk3_ipmc_rp_add( 31614 int unit, 31615 int rp_id, 31616 bcm_if_t intf_id) 31617 { 31618 return bcm_esw_ipmc_rp_add(unit, rp_id, intf_id); 31619 } 31620 #endif 31621 #endif 31622 31623 #if defined(INCLUDE_L3) 31624 #ifdef BCM_TOMAHAWK3_SUPPORT 31625 int 31626 bcm_tomahawk3_ipmc_rp_create( 31627 int unit, 31628 uint32 flags, 31629 int *rp_id) 31630 { 31631 return bcm_esw_ipmc_rp_create(unit, flags, rp_id); 31632 } 31633 #endif 31634 #endif 31635 31636 #if defined(INCLUDE_L3) 31637 #ifdef BCM_TOMAHAWK3_SUPPORT 31638 int 31639 bcm_tomahawk3_ipmc_rp_delete( 31640 int unit, 31641 int rp_id, 31642 bcm_if_t intf_id) 31643 { 31644 return bcm_esw_ipmc_rp_delete(unit, rp_id, intf_id); 31645 } 31646 #endif 31647 #endif 31648 31649 #if defined(INCLUDE_L3) 31650 #ifdef BCM_TOMAHAWK3_SUPPORT 31651 int 31652 bcm_tomahawk3_ipmc_rp_delete_all( 31653 int unit, 31654 int rp_id) 31655 { 31656 return bcm_esw_ipmc_rp_delete_all(unit, rp_id); 31657 } 31658 #endif 31659 #endif 31660 31661 #if defined(INCLUDE_L3) 31662 #ifdef BCM_TOMAHAWK3_SUPPORT 31663 int 31664 bcm_tomahawk3_ipmc_rp_destroy( 31665 int unit, 31666 int rp_id) 31667 { 31668 return bcm_esw_ipmc_rp_destroy(unit, rp_id); 31669 } 31670 #endif 31671 #endif 31672 31673 #if defined(INCLUDE_L3) 31674 #ifdef BCM_TOMAHAWK3_SUPPORT 31675 int 31676 bcm_tomahawk3_ipmc_rp_get( 31677 int unit, 31678 int rp_id, 31679 int intf_max, 31680 bcm_if_t *intf_array, 31681 int *intf_count) 31682 { 31683 return bcm_esw_ipmc_rp_get(unit, rp_id, intf_max, intf_array, intf_count); 31684 } 31685 #endif 31686 #endif 31687 31688 #if defined(INCLUDE_L3) 31689 #ifdef BCM_TOMAHAWK3_SUPPORT 31690 int 31691 bcm_tomahawk3_ipmc_rp_set( 31692 int unit, 31693 int rp_id, 31694 int intf_count, 31695 bcm_if_t *intf_array) 31696 { 31697 return bcm_esw_ipmc_rp_set(unit, rp_id, intf_count, intf_array); 31698 } 31699 #endif 31700 #endif 31701 31702 #if defined(INCLUDE_L3) 31703 #ifdef BCM_TOMAHAWK3_SUPPORT 31704 int 31705 bcm_tomahawk3_ipmc_stat_attach( 31706 int unit, 31707 bcm_ipmc_addr_t *info, 31708 uint32 stat_counter_id) 31709 { 31710 return bcm_esw_ipmc_stat_attach(unit, info, stat_counter_id); 31711 } 31712 #endif 31713 #endif 31714 31715 #if defined(INCLUDE_L3) 31716 #ifdef BCM_TOMAHAWK3_SUPPORT 31717 int 31718 bcm_tomahawk3_ipmc_stat_counter_get( 31719 int unit, 31720 bcm_ipmc_addr_t *info, 31721 bcm_ipmc_stat_t stat, 31722 uint32 num_entries, 31723 uint32 *counter_indexes, 31724 bcm_stat_value_t *counter_values) 31725 { 31726 return bcm_esw_ipmc_stat_counter_get(unit, info, stat, num_entries, counter_indexes, counter_values); 31727 } 31728 #endif 31729 #endif 31730 31731 #if defined(INCLUDE_L3) 31732 #ifdef BCM_TOMAHAWK3_SUPPORT 31733 int 31734 bcm_tomahawk3_ipmc_stat_counter_set( 31735 int unit, 31736 bcm_ipmc_addr_t *info, 31737 bcm_ipmc_stat_t stat, 31738 uint32 num_entries, 31739 uint32 *counter_indexes, 31740 bcm_stat_value_t *counter_values) 31741 { 31742 return bcm_esw_ipmc_stat_counter_set(unit, info, stat, num_entries, counter_indexes, counter_values); 31743 } 31744 #endif 31745 #endif 31746 31747 #if defined(INCLUDE_L3) 31748 #ifdef BCM_TOMAHAWK3_SUPPORT 31749 int 31750 bcm_tomahawk3_ipmc_stat_counter_sync_get( 31751 int unit, 31752 bcm_ipmc_addr_t *info, 31753 bcm_ipmc_stat_t stat, 31754 uint32 num_entries, 31755 uint32 *counter_indexes, 31756 bcm_stat_value_t *counter_values) 31757 { 31758 return bcm_esw_ipmc_stat_counter_sync_get(unit, info, stat, num_entries, counter_indexes, counter_values); 31759 } 31760 #endif 31761 #endif 31762 31763 #if defined(INCLUDE_L3) 31764 #ifdef BCM_TOMAHAWK3_SUPPORT 31765 int 31766 bcm_tomahawk3_ipmc_stat_detach( 31767 int unit, 31768 bcm_ipmc_addr_t *info) 31769 { 31770 return bcm_esw_ipmc_stat_detach(unit, info); 31771 } 31772 #endif 31773 #endif 31774 31775 #if defined(INCLUDE_L3) 31776 #ifdef BCM_TOMAHAWK3_SUPPORT 31777 int 31778 bcm_tomahawk3_ipmc_stat_id_get( 31779 int unit, 31780 bcm_ipmc_addr_t *info, 31781 bcm_ipmc_stat_t stat, 31782 uint32 *stat_counter_id) 31783 { 31784 return bcm_esw_ipmc_stat_id_get(unit, info, stat, stat_counter_id); 31785 } 31786 #endif 31787 #endif 31788 31789 #if defined(INCLUDE_L3) 31790 #ifdef BCM_TOMAHAWK3_SUPPORT 31791 int 31792 bcm_tomahawk3_ipmc_stat_multi_get( 31793 int unit, 31794 bcm_ipmc_addr_t *info, 31795 int nstat, 31796 bcm_ipmc_stat_t *stat_arr, 31797 uint64 *value_arr) 31798 { 31799 return bcm_esw_ipmc_stat_multi_get(unit, info, nstat, stat_arr, value_arr); 31800 } 31801 #endif 31802 #endif 31803 31804 #if defined(INCLUDE_L3) 31805 #ifdef BCM_TOMAHAWK3_SUPPORT 31806 int 31807 bcm_tomahawk3_ipmc_stat_multi_get32( 31808 int unit, 31809 bcm_ipmc_addr_t *info, 31810 int nstat, 31811 bcm_ipmc_stat_t *stat_arr, 31812 uint32 *value_arr) 31813 { 31814 return bcm_esw_ipmc_stat_multi_get32(unit, info, nstat, stat_arr, value_arr); 31815 } 31816 #endif 31817 #endif 31818 31819 #if defined(INCLUDE_L3) 31820 #ifdef BCM_TOMAHAWK3_SUPPORT 31821 int 31822 bcm_tomahawk3_ipmc_stat_multi_set( 31823 int unit, 31824 bcm_ipmc_addr_t *info, 31825 int nstat, 31826 bcm_ipmc_stat_t *stat_arr, 31827 uint64 *value_arr) 31828 { 31829 return bcm_esw_ipmc_stat_multi_set(unit, info, nstat, stat_arr, value_arr); 31830 } 31831 #endif 31832 #endif 31833 31834 #if defined(INCLUDE_L3) 31835 #ifdef BCM_TOMAHAWK3_SUPPORT 31836 int 31837 bcm_tomahawk3_ipmc_stat_multi_set32( 31838 int unit, 31839 bcm_ipmc_addr_t *info, 31840 int nstat, 31841 bcm_ipmc_stat_t *stat_arr, 31842 uint32 *value_arr) 31843 { 31844 return bcm_esw_ipmc_stat_multi_set32(unit, info, nstat, stat_arr, value_arr); 31845 } 31846 #endif 31847 #endif 31848 31849 #if defined(INCLUDE_L3) 31850 #ifdef BCM_TOMAHAWK3_SUPPORT 31851 int 31852 bcm_tomahawk3_ipmc_traverse( 31853 int unit, 31854 uint32 flags, 31855 bcm_ipmc_traverse_cb cb, 31856 void *user_data) 31857 { 31858 return bcm_esw_ipmc_traverse(unit, flags, cb, user_data); 31859 } 31860 #endif 31861 #endif 31862 31863 #ifdef BCM_TOMAHAWK3_SUPPORT 31864 int 31865 bcm_tomahawk3_ipsec_config_set( 31866 int unit, 31867 bcm_ipsec_config_t *config) 31868 { 31869 return bcm_esw_ipsec_config_set(unit, config); 31870 } 31871 #endif 31872 31873 #ifdef BCM_TOMAHAWK3_SUPPORT 31874 int 31875 bcm_tomahawk3_ipsec_sa_create( 31876 int unit, 31877 uint32 flags, 31878 uint32 *sa_id, 31879 bcm_ipsec_sa_info_t *sa) 31880 { 31881 return bcm_esw_ipsec_sa_create(unit, flags, sa_id, sa); 31882 } 31883 #endif 31884 31885 #ifdef BCM_TOMAHAWK3_SUPPORT 31886 int 31887 bcm_tomahawk3_ipsec_sa_delete( 31888 int unit, 31889 uint32 flags, 31890 uint32 sa_id) 31891 { 31892 return bcm_esw_ipsec_sa_delete(unit, flags, sa_id); 31893 } 31894 #endif 31895 31896 #ifdef BCM_TOMAHAWK3_SUPPORT 31897 int 31898 bcm_tomahawk3_ipsec_sa_key_update( 31899 int unit, 31900 uint32 flags, 31901 uint32 sa_id, 31902 bcm_ipsec_sa_keys_t *sa_keys) 31903 { 31904 return bcm_esw_ipsec_sa_key_update(unit, flags, sa_id, sa_keys); 31905 } 31906 #endif 31907 31908 #ifdef BCM_TOMAHAWK3_SUPPORT 31909 int 31910 bcm_tomahawk3_ipsec_sa_to_tunnel_map_get( 31911 int unit, 31912 uint32 sa_id, 31913 uint32 *tunnel_id) 31914 { 31915 return bcm_esw_ipsec_sa_to_tunnel_map_get(unit, sa_id, tunnel_id); 31916 } 31917 #endif 31918 31919 #ifdef BCM_TOMAHAWK3_SUPPORT 31920 int 31921 bcm_tomahawk3_ipsec_sa_to_tunnel_map_set( 31922 int unit, 31923 uint32 tunnel_id, 31924 uint32 sa_id) 31925 { 31926 return bcm_esw_ipsec_sa_to_tunnel_map_set(unit, tunnel_id, sa_id); 31927 } 31928 #endif 31929 31930 #ifdef BCM_TOMAHAWK3_SUPPORT 31931 int 31932 bcm_tomahawk3_ipsec_tunnel_create( 31933 int unit, 31934 uint32 flags, 31935 uint32 *tunnel_id, 31936 bcm_ipsec_tunnel_info_t *tunnel_info) 31937 { 31938 return bcm_esw_ipsec_tunnel_create(unit, flags, tunnel_id, tunnel_info); 31939 } 31940 #endif 31941 31942 #ifdef BCM_TOMAHAWK3_SUPPORT 31943 int 31944 bcm_tomahawk3_ipsec_tunnel_delete( 31945 int unit, 31946 uint32 flags, 31947 uint32 tunnel_id) 31948 { 31949 return bcm_esw_ipsec_tunnel_delete(unit, flags, tunnel_id); 31950 } 31951 #endif 31952 31953 #ifdef BCM_TOMAHAWK3_SUPPORT 31954 int 31955 bcm_tomahawk3_knet_cleanup( 31956 int unit) 31957 { 31958 return bcm_esw_knet_cleanup(unit); 31959 } 31960 #endif 31961 31962 #ifdef BCM_TOMAHAWK3_SUPPORT 31963 int 31964 bcm_tomahawk3_knet_filter_create( 31965 int unit, 31966 bcm_knet_filter_t *filter) 31967 { 31968 return bcm_esw_knet_filter_create(unit, filter); 31969 } 31970 #endif 31971 31972 #ifdef BCM_TOMAHAWK3_SUPPORT 31973 int 31974 bcm_tomahawk3_knet_filter_destroy( 31975 int unit, 31976 int filter_id) 31977 { 31978 return bcm_esw_knet_filter_destroy(unit, filter_id); 31979 } 31980 #endif 31981 31982 #ifdef BCM_TOMAHAWK3_SUPPORT 31983 int 31984 bcm_tomahawk3_knet_filter_get( 31985 int unit, 31986 int filter_id, 31987 bcm_knet_filter_t *filter) 31988 { 31989 return bcm_esw_knet_filter_get(unit, filter_id, filter); 31990 } 31991 #endif 31992 31993 #ifdef BCM_TOMAHAWK3_SUPPORT 31994 int 31995 bcm_tomahawk3_knet_filter_traverse( 31996 int unit, 31997 bcm_knet_filter_traverse_cb trav_fn, 31998 void *user_data) 31999 { 32000 return bcm_esw_knet_filter_traverse(unit, trav_fn, user_data); 32001 } 32002 #endif 32003 32004 #ifdef BCM_TOMAHAWK3_SUPPORT 32005 int 32006 bcm_tomahawk3_knet_init( 32007 int unit) 32008 { 32009 return bcm_esw_knet_init(unit); 32010 } 32011 #endif 32012 32013 #ifdef BCM_TOMAHAWK3_SUPPORT 32014 int 32015 bcm_tomahawk3_knet_netif_create( 32016 int unit, 32017 bcm_knet_netif_t *netif) 32018 { 32019 return bcm_esw_knet_netif_create(unit, netif); 32020 } 32021 #endif 32022 32023 #ifdef BCM_TOMAHAWK3_SUPPORT 32024 int 32025 bcm_tomahawk3_knet_netif_destroy( 32026 int unit, 32027 int netif_id) 32028 { 32029 return bcm_esw_knet_netif_destroy(unit, netif_id); 32030 } 32031 #endif 32032 32033 #ifdef BCM_TOMAHAWK3_SUPPORT 32034 int 32035 bcm_tomahawk3_knet_netif_get( 32036 int unit, 32037 int netif_id, 32038 bcm_knet_netif_t *netif) 32039 { 32040 return bcm_esw_knet_netif_get(unit, netif_id, netif); 32041 } 32042 #endif 32043 32044 #ifdef BCM_TOMAHAWK3_SUPPORT 32045 int 32046 bcm_tomahawk3_knet_netif_traverse( 32047 int unit, 32048 bcm_knet_netif_traverse_cb trav_fn, 32049 void *user_data) 32050 { 32051 return bcm_esw_knet_netif_traverse(unit, trav_fn, user_data); 32052 } 32053 #endif 32054 32055 int 32056 bcm_tomahawk3_l2_addr_by_struct_delete( 32057 int unit, 32058 bcm_l2_addr_t *l2addr) 32059 { 32060 return BCM_E_UNAVAIL; 32061 } 32062 32063 int 32064 bcm_tomahawk3_l2_addr_by_struct_get( 32065 int unit, 32066 bcm_l2_addr_t *l2addr) 32067 { 32068 return BCM_E_UNAVAIL; 32069 } 32070 32071 #ifdef BCM_TOMAHAWK3_SUPPORT 32072 int 32073 bcm_tomahawk3_l2_addr_msg_distribute_get( 32074 int unit, 32075 bcm_l2_addr_distribute_t *distribution) 32076 { 32077 return bcm_esw_l2_addr_msg_distribute_get(unit, distribution); 32078 } 32079 #endif 32080 32081 #ifdef BCM_TOMAHAWK3_SUPPORT 32082 int 32083 bcm_tomahawk3_l2_addr_msg_distribute_set( 32084 int unit, 32085 bcm_l2_addr_distribute_t *distribution) 32086 { 32087 return bcm_esw_l2_addr_msg_distribute_set(unit, distribution); 32088 } 32089 #endif 32090 32091 int 32092 bcm_tomahawk3_l2_addr_multi_add( 32093 int unit, 32094 bcm_l2_addr_t *l2addr, 32095 int count) 32096 { 32097 return BCM_E_UNAVAIL; 32098 } 32099 32100 int 32101 bcm_tomahawk3_l2_addr_multi_delete( 32102 int unit, 32103 bcm_l2_addr_t *l2addr, 32104 int count) 32105 { 32106 return BCM_E_UNAVAIL; 32107 } 32108 32109 #ifdef BCM_TOMAHAWK3_SUPPORT 32110 int 32111 bcm_tomahawk3_l2_age_timer_meta_cycle_get( 32112 int unit, 32113 int *meta_cycle_time) 32114 { 32115 return bcm_esw_l2_age_timer_meta_cycle_get(unit, meta_cycle_time); 32116 } 32117 #endif 32118 32119 #ifdef BCM_TOMAHAWK3_SUPPORT 32120 int 32121 bcm_tomahawk3_l2_age_timer_meta_cycle_set( 32122 int unit, 32123 int meta_cycle_time) 32124 { 32125 return bcm_esw_l2_age_timer_meta_cycle_set(unit, meta_cycle_time); 32126 } 32127 #endif 32128 32129 #ifdef BCM_TOMAHAWK3_SUPPORT 32130 int 32131 bcm_tomahawk3_l2_auth_add( 32132 int unit, 32133 bcm_l2_auth_addr_t *addr) 32134 { 32135 return bcm_esw_l2_auth_add(unit, addr); 32136 } 32137 #endif 32138 32139 #ifdef BCM_TOMAHAWK3_SUPPORT 32140 int 32141 bcm_tomahawk3_l2_auth_delete( 32142 int unit, 32143 bcm_l2_auth_addr_t *addr) 32144 { 32145 return bcm_esw_l2_auth_delete(unit, addr); 32146 } 32147 #endif 32148 32149 #ifdef BCM_TOMAHAWK3_SUPPORT 32150 int 32151 bcm_tomahawk3_l2_auth_delete_all( 32152 int unit) 32153 { 32154 return bcm_esw_l2_auth_delete_all(unit); 32155 } 32156 #endif 32157 32158 #ifdef BCM_TOMAHAWK3_SUPPORT 32159 int 32160 bcm_tomahawk3_l2_auth_get( 32161 int unit, 32162 bcm_l2_auth_addr_t *addr) 32163 { 32164 return bcm_esw_l2_auth_get(unit, addr); 32165 } 32166 #endif 32167 32168 #ifdef BCM_TOMAHAWK3_SUPPORT 32169 int 32170 bcm_tomahawk3_l2_auth_traverse( 32171 int unit, 32172 bcm_l2_auth_traverse_cb trav_fn, 32173 void *user_data) 32174 { 32175 return bcm_esw_l2_auth_traverse(unit, trav_fn, user_data); 32176 } 32177 #endif 32178 32179 int 32180 bcm_tomahawk3_l2_cache_profile_get( 32181 int unit, 32182 int trap_type, 32183 uint32 profile_idx, 32184 uint32 flags, 32185 bcm_l2cp_profile_info_t *l2cp_profile_info) 32186 { 32187 return BCM_E_UNAVAIL; 32188 } 32189 32190 int 32191 bcm_tomahawk3_l2_cache_profile_set( 32192 int unit, 32193 int trap_type, 32194 uint32 profile_idx, 32195 uint32 flags, 32196 bcm_l2cp_profile_info_t *l2cp_profile_info) 32197 { 32198 return BCM_E_UNAVAIL; 32199 } 32200 32201 int 32202 bcm_tomahawk3_l2_cache_vpn_to_profile_map_get( 32203 int unit, 32204 uint32 vsi, 32205 uint32 *profile_idx) 32206 { 32207 return BCM_E_UNAVAIL; 32208 } 32209 32210 int 32211 bcm_tomahawk3_l2_cache_vpn_to_profile_map_set( 32212 int unit, 32213 uint32 vsi, 32214 uint32 profile_idx) 32215 { 32216 return BCM_E_UNAVAIL; 32217 } 32218 32219 #if defined(INCLUDE_L3) 32220 #ifdef BCM_TOMAHAWK3_SUPPORT 32221 int 32222 bcm_tomahawk3_l2_change_fields_add( 32223 int unit, 32224 bcm_l2_change_fields_t *l2_fields_info) 32225 { 32226 return bcm_esw_l2_change_fields_add(unit, l2_fields_info); 32227 } 32228 #endif 32229 #endif 32230 32231 #if defined(INCLUDE_L3) 32232 #ifdef BCM_TOMAHAWK3_SUPPORT 32233 int 32234 bcm_tomahawk3_l2_change_fields_delete( 32235 int unit, 32236 bcm_l2_change_fields_t *l2_fields_info) 32237 { 32238 return bcm_esw_l2_change_fields_delete(unit, l2_fields_info); 32239 } 32240 #endif 32241 #endif 32242 32243 #if defined(INCLUDE_L3) 32244 #ifdef BCM_TOMAHAWK3_SUPPORT 32245 int 32246 bcm_tomahawk3_l2_change_fields_get( 32247 int unit, 32248 bcm_l2_change_fields_t *l2_fields_info) 32249 { 32250 return bcm_esw_l2_change_fields_get(unit, l2_fields_info); 32251 } 32252 #endif 32253 #endif 32254 32255 #if defined(INCLUDE_L3) 32256 #ifdef BCM_TOMAHAWK3_SUPPORT 32257 int 32258 bcm_tomahawk3_l2_change_fields_traverse( 32259 int unit, 32260 bcm_l2_change_fields_traverse_cb cb, 32261 void *user_data) 32262 { 32263 return bcm_esw_l2_change_fields_traverse(unit, cb, user_data); 32264 } 32265 #endif 32266 #endif 32267 32268 int 32269 bcm_tomahawk3_l2_egress_create( 32270 int unit, 32271 bcm_l2_egress_t *egr) 32272 { 32273 return BCM_E_UNAVAIL; 32274 } 32275 32276 int 32277 bcm_tomahawk3_l2_egress_destroy( 32278 int unit, 32279 bcm_if_t encap_id) 32280 { 32281 return BCM_E_UNAVAIL; 32282 } 32283 32284 int 32285 bcm_tomahawk3_l2_egress_find( 32286 int unit, 32287 bcm_l2_egress_t *egr, 32288 bcm_if_t *encap_id) 32289 { 32290 return BCM_E_UNAVAIL; 32291 } 32292 32293 int 32294 bcm_tomahawk3_l2_egress_get( 32295 int unit, 32296 bcm_if_t encap_id, 32297 bcm_l2_egress_t *egr) 32298 { 32299 return BCM_E_UNAVAIL; 32300 } 32301 32302 int 32303 bcm_tomahawk3_l2_egress_traverse( 32304 int unit, 32305 bcm_l2_egress_traverse_cb trav_fn, 32306 void *user_data) 32307 { 32308 return BCM_E_UNAVAIL; 32309 } 32310 32311 int 32312 bcm_tomahawk3_l2_gport_forward_info_get( 32313 int unit, 32314 int gport_id, 32315 bcm_l2_gport_forward_info_t *forward_info) 32316 { 32317 return BCM_E_UNAVAIL; 32318 } 32319 32320 int 32321 bcm_tomahawk3_l2_learn_limit_disable( 32322 int unit) 32323 { 32324 return BCM_E_UNAVAIL; 32325 } 32326 32327 int 32328 bcm_tomahawk3_l2_learn_limit_enable( 32329 int unit) 32330 { 32331 return BCM_E_UNAVAIL; 32332 } 32333 32334 #ifdef BCM_TOMAHAWK3_SUPPORT 32335 int 32336 bcm_tomahawk3_l2_learn_msgs_config_get( 32337 int unit, 32338 bcm_l2_learn_msgs_config_t *learn_msg_config) 32339 { 32340 return bcm_esw_l2_learn_msgs_config_get(unit, learn_msg_config); 32341 } 32342 #endif 32343 32344 #ifdef BCM_TOMAHAWK3_SUPPORT 32345 int 32346 bcm_tomahawk3_l2_learn_msgs_config_set( 32347 int unit, 32348 bcm_l2_learn_msgs_config_t *learn_msg_config) 32349 { 32350 return bcm_esw_l2_learn_msgs_config_set(unit, learn_msg_config); 32351 } 32352 #endif 32353 32354 int 32355 bcm_tomahawk3_l2_learn_port_class_get( 32356 int unit, 32357 bcm_gport_t port, 32358 int *lclass) 32359 { 32360 return BCM_E_UNAVAIL; 32361 } 32362 32363 int 32364 bcm_tomahawk3_l2_learn_port_class_set( 32365 int unit, 32366 bcm_gport_t port, 32367 int lclass) 32368 { 32369 return BCM_E_UNAVAIL; 32370 } 32371 32372 int 32373 bcm_tomahawk3_l2_match_masked_traverse( 32374 int unit, 32375 uint32 flags, 32376 bcm_l2_addr_t *match_addr, 32377 bcm_l2_addr_t *mask_addr, 32378 bcm_l2_traverse_cb trav_fn, 32379 void *user_data) 32380 { 32381 return BCM_E_UNAVAIL; 32382 } 32383 32384 int 32385 bcm_tomahawk3_l2_replace_match( 32386 int unit, 32387 uint32 flags, 32388 bcm_l2_addr_t *match_addr, 32389 bcm_l2_addr_t *mask_addr, 32390 bcm_l2_addr_t *replace_addr, 32391 bcm_l2_addr_t *replace_mask_addr) 32392 { 32393 return BCM_E_UNAVAIL; 32394 } 32395 32396 int 32397 bcm_tomahawk3_l2_stat_enable_set( 32398 int unit, 32399 bcm_l2_addr_t *l2_addr, 32400 int enable) 32401 { 32402 return BCM_E_UNAVAIL; 32403 } 32404 32405 int 32406 bcm_tomahawk3_l2_stat_get( 32407 int unit, 32408 bcm_l2_addr_t *l2_addr, 32409 bcm_l2_stat_t stat, 32410 uint64 *val) 32411 { 32412 return BCM_E_UNAVAIL; 32413 } 32414 32415 int 32416 bcm_tomahawk3_l2_stat_get32( 32417 int unit, 32418 bcm_l2_addr_t *l2_addr, 32419 bcm_l2_stat_t stat, 32420 uint32 *val) 32421 { 32422 return BCM_E_UNAVAIL; 32423 } 32424 32425 int 32426 bcm_tomahawk3_l2_stat_set( 32427 int unit, 32428 bcm_l2_addr_t *l2_addr, 32429 bcm_l2_stat_t stat, 32430 uint64 val) 32431 { 32432 return BCM_E_UNAVAIL; 32433 } 32434 32435 int 32436 bcm_tomahawk3_l2_stat_set32( 32437 int unit, 32438 bcm_l2_addr_t *l2_addr, 32439 bcm_l2_stat_t stat, 32440 uint32 val) 32441 { 32442 return BCM_E_UNAVAIL; 32443 } 32444 32445 #if defined(INCLUDE_L3) 32446 #if defined(INCLUDE_L3) 32447 #ifdef BCM_TOMAHAWK3_SUPPORT 32448 int 32449 bcm_tomahawk3_l2gre_cleanup( 32450 int unit) 32451 { 32452 return bcm_esw_l2gre_cleanup(unit); 32453 } 32454 #endif 32455 #endif 32456 #endif 32457 32458 #if defined(INCLUDE_L3) 32459 #if defined(INCLUDE_L3) 32460 #ifdef BCM_TOMAHAWK3_SUPPORT 32461 int 32462 bcm_tomahawk3_l2gre_init( 32463 int unit) 32464 { 32465 return bcm_esw_l2gre_init(unit); 32466 } 32467 #endif 32468 #endif 32469 #endif 32470 32471 #if defined(INCLUDE_L3) 32472 #if defined(INCLUDE_L3) 32473 #ifdef BCM_TOMAHAWK3_SUPPORT 32474 int 32475 bcm_tomahawk3_l2gre_port_add( 32476 int unit, 32477 bcm_vpn_t l2vpn, 32478 bcm_l2gre_port_t *l2gre_port) 32479 { 32480 return bcm_esw_l2gre_port_add(unit, l2vpn, l2gre_port); 32481 } 32482 #endif 32483 #endif 32484 #endif 32485 32486 #if defined(INCLUDE_L3) 32487 #if defined(INCLUDE_L3) 32488 #ifdef BCM_TOMAHAWK3_SUPPORT 32489 int 32490 bcm_tomahawk3_l2gre_port_delete( 32491 int unit, 32492 bcm_vpn_t l2vpn, 32493 bcm_gport_t l2gre_port_id) 32494 { 32495 return bcm_esw_l2gre_port_delete(unit, l2vpn, l2gre_port_id); 32496 } 32497 #endif 32498 #endif 32499 #endif 32500 32501 #if defined(INCLUDE_L3) 32502 #if defined(INCLUDE_L3) 32503 #ifdef BCM_TOMAHAWK3_SUPPORT 32504 int 32505 bcm_tomahawk3_l2gre_port_delete_all( 32506 int unit, 32507 bcm_vpn_t l2vpn) 32508 { 32509 return bcm_esw_l2gre_port_delete_all(unit, l2vpn); 32510 } 32511 #endif 32512 #endif 32513 #endif 32514 32515 #if defined(INCLUDE_L3) 32516 #if defined(INCLUDE_L3) 32517 #ifdef BCM_TOMAHAWK3_SUPPORT 32518 int 32519 bcm_tomahawk3_l2gre_port_get( 32520 int unit, 32521 bcm_vpn_t l2vpn, 32522 bcm_l2gre_port_t *l2gre_port) 32523 { 32524 return bcm_esw_l2gre_port_get(unit, l2vpn, l2gre_port); 32525 } 32526 #endif 32527 #endif 32528 #endif 32529 32530 #if defined(INCLUDE_L3) 32531 #if defined(INCLUDE_L3) 32532 #ifdef BCM_TOMAHAWK3_SUPPORT 32533 int 32534 bcm_tomahawk3_l2gre_port_get_all( 32535 int unit, 32536 bcm_vpn_t l2vpn, 32537 int port_max, 32538 bcm_l2gre_port_t *port_array, 32539 int *port_count) 32540 { 32541 return bcm_esw_l2gre_port_get_all(unit, l2vpn, port_max, port_array, port_count); 32542 } 32543 #endif 32544 #endif 32545 #endif 32546 32547 #if defined(INCLUDE_L3) 32548 #ifdef BCM_TOMAHAWK3_SUPPORT 32549 int 32550 bcm_tomahawk3_l2gre_stat_attach( 32551 int unit, 32552 bcm_gport_t port, 32553 bcm_vpn_t vpn, 32554 uint32 stat_counter_id) 32555 { 32556 return bcm_esw_l2gre_stat_attach(unit, port, vpn, stat_counter_id); 32557 } 32558 #endif 32559 #endif 32560 32561 #if defined(INCLUDE_L3) 32562 #ifdef BCM_TOMAHAWK3_SUPPORT 32563 int 32564 bcm_tomahawk3_l2gre_stat_counter_get( 32565 int unit, 32566 bcm_gport_t port, 32567 bcm_vpn_t vpn, 32568 bcm_l2gre_stat_t stat, 32569 uint32 num_entries, 32570 uint32 *counter_indexes, 32571 bcm_stat_value_t *counter_values) 32572 { 32573 return bcm_esw_l2gre_stat_counter_get(unit, port, vpn, stat, num_entries, counter_indexes, counter_values); 32574 } 32575 #endif 32576 #endif 32577 32578 #if defined(INCLUDE_L3) 32579 #ifdef BCM_TOMAHAWK3_SUPPORT 32580 int 32581 bcm_tomahawk3_l2gre_stat_counter_set( 32582 int unit, 32583 bcm_gport_t port, 32584 bcm_vpn_t vpn, 32585 bcm_l2gre_stat_t stat, 32586 uint32 num_entries, 32587 uint32 *counter_indexes, 32588 bcm_stat_value_t *counter_values) 32589 { 32590 return bcm_esw_l2gre_stat_counter_set(unit, port, vpn, stat, num_entries, counter_indexes, counter_values); 32591 } 32592 #endif 32593 #endif 32594 32595 #if defined(INCLUDE_L3) 32596 #ifdef BCM_TOMAHAWK3_SUPPORT 32597 int 32598 bcm_tomahawk3_l2gre_stat_counter_sync_get( 32599 int unit, 32600 bcm_gport_t port, 32601 bcm_vpn_t vpn, 32602 bcm_l2gre_stat_t stat, 32603 uint32 num_entries, 32604 uint32 *counter_indexes, 32605 bcm_stat_value_t *counter_values) 32606 { 32607 return bcm_esw_l2gre_stat_counter_sync_get(unit, port, vpn, stat, num_entries, counter_indexes, counter_values); 32608 } 32609 #endif 32610 #endif 32611 32612 #if defined(INCLUDE_L3) 32613 #ifdef BCM_TOMAHAWK3_SUPPORT 32614 int 32615 bcm_tomahawk3_l2gre_stat_detach( 32616 int unit, 32617 bcm_gport_t port, 32618 bcm_vpn_t vpn) 32619 { 32620 return bcm_esw_l2gre_stat_detach(unit, port, vpn); 32621 } 32622 #endif 32623 #endif 32624 32625 #if defined(INCLUDE_L3) 32626 #ifdef BCM_TOMAHAWK3_SUPPORT 32627 int 32628 bcm_tomahawk3_l2gre_stat_id_get( 32629 int unit, 32630 bcm_gport_t port, 32631 bcm_vpn_t vpn, 32632 bcm_l2gre_stat_t stat, 32633 uint32 *stat_counter_id) 32634 { 32635 return bcm_esw_l2gre_stat_id_get(unit, port, vpn, stat, stat_counter_id); 32636 } 32637 #endif 32638 #endif 32639 32640 #if defined(INCLUDE_L3) 32641 #ifdef BCM_TOMAHAWK3_SUPPORT 32642 int 32643 bcm_tomahawk3_l2gre_stat_multi_get( 32644 int unit, 32645 bcm_gport_t port, 32646 bcm_vpn_t vpn, 32647 int nstat, 32648 bcm_l2gre_stat_t *stat_arr, 32649 uint64 *value_arr) 32650 { 32651 return bcm_esw_l2gre_stat_multi_get(unit, port, vpn, nstat, stat_arr, value_arr); 32652 } 32653 #endif 32654 #endif 32655 32656 #if defined(INCLUDE_L3) 32657 #ifdef BCM_TOMAHAWK3_SUPPORT 32658 int 32659 bcm_tomahawk3_l2gre_stat_multi_get32( 32660 int unit, 32661 bcm_gport_t port, 32662 bcm_vpn_t vpn, 32663 int nstat, 32664 bcm_l2gre_stat_t *stat_arr, 32665 uint32 *value_arr) 32666 { 32667 return bcm_esw_l2gre_stat_multi_get32(unit, port, vpn, nstat, stat_arr, value_arr); 32668 } 32669 #endif 32670 #endif 32671 32672 #if defined(INCLUDE_L3) 32673 #ifdef BCM_TOMAHAWK3_SUPPORT 32674 int 32675 bcm_tomahawk3_l2gre_stat_multi_set( 32676 int unit, 32677 bcm_gport_t port, 32678 bcm_vpn_t vpn, 32679 int nstat, 32680 bcm_l2gre_stat_t *stat_arr, 32681 uint64 *value_arr) 32682 { 32683 return bcm_esw_l2gre_stat_multi_set(unit, port, vpn, nstat, stat_arr, value_arr); 32684 } 32685 #endif 32686 #endif 32687 32688 #if defined(INCLUDE_L3) 32689 #ifdef BCM_TOMAHAWK3_SUPPORT 32690 int 32691 bcm_tomahawk3_l2gre_stat_multi_set32( 32692 int unit, 32693 bcm_gport_t port, 32694 bcm_vpn_t vpn, 32695 int nstat, 32696 bcm_l2gre_stat_t *stat_arr, 32697 uint32 *value_arr) 32698 { 32699 return bcm_esw_l2gre_stat_multi_set32(unit, port, vpn, nstat, stat_arr, value_arr); 32700 } 32701 #endif 32702 #endif 32703 32704 #if defined(INCLUDE_L3) 32705 #if defined(INCLUDE_L3) 32706 #ifdef BCM_TOMAHAWK3_SUPPORT 32707 int 32708 bcm_tomahawk3_l2gre_tunnel_initiator_create( 32709 int unit, 32710 bcm_tunnel_initiator_t *info) 32711 { 32712 return bcm_esw_l2gre_tunnel_initiator_create(unit, info); 32713 } 32714 #endif 32715 #endif 32716 #endif 32717 32718 #if defined(INCLUDE_L3) 32719 #if defined(INCLUDE_L3) 32720 #ifdef BCM_TOMAHAWK3_SUPPORT 32721 int 32722 bcm_tomahawk3_l2gre_tunnel_initiator_destroy( 32723 int unit, 32724 bcm_gport_t l2gre_tunnel_id) 32725 { 32726 return bcm_esw_l2gre_tunnel_initiator_destroy(unit, l2gre_tunnel_id); 32727 } 32728 #endif 32729 #endif 32730 #endif 32731 32732 #if defined(INCLUDE_L3) 32733 #if defined(INCLUDE_L3) 32734 #ifdef BCM_TOMAHAWK3_SUPPORT 32735 int 32736 bcm_tomahawk3_l2gre_tunnel_initiator_destroy_all( 32737 int unit) 32738 { 32739 return bcm_esw_l2gre_tunnel_initiator_destroy_all(unit); 32740 } 32741 #endif 32742 #endif 32743 #endif 32744 32745 #if defined(INCLUDE_L3) 32746 #if defined(INCLUDE_L3) 32747 #ifdef BCM_TOMAHAWK3_SUPPORT 32748 int 32749 bcm_tomahawk3_l2gre_tunnel_initiator_get( 32750 int unit, 32751 bcm_tunnel_initiator_t *info) 32752 { 32753 return bcm_esw_l2gre_tunnel_initiator_get(unit, info); 32754 } 32755 #endif 32756 #endif 32757 #endif 32758 32759 #if defined(INCLUDE_L3) 32760 #if defined(INCLUDE_L3) 32761 #ifdef BCM_TOMAHAWK3_SUPPORT 32762 int 32763 bcm_tomahawk3_l2gre_tunnel_initiator_traverse( 32764 int unit, 32765 bcm_tunnel_initiator_traverse_cb cb, 32766 void *user_data) 32767 { 32768 return bcm_esw_l2gre_tunnel_initiator_traverse(unit, cb, user_data); 32769 } 32770 #endif 32771 #endif 32772 #endif 32773 32774 #if defined(INCLUDE_L3) 32775 #if defined(INCLUDE_L3) 32776 #ifdef BCM_TOMAHAWK3_SUPPORT 32777 int 32778 bcm_tomahawk3_l2gre_tunnel_terminator_create( 32779 int unit, 32780 bcm_tunnel_terminator_t *info) 32781 { 32782 return bcm_esw_l2gre_tunnel_terminator_create(unit, info); 32783 } 32784 #endif 32785 #endif 32786 #endif 32787 32788 #if defined(INCLUDE_L3) 32789 #if defined(INCLUDE_L3) 32790 #ifdef BCM_TOMAHAWK3_SUPPORT 32791 int 32792 bcm_tomahawk3_l2gre_tunnel_terminator_destroy( 32793 int unit, 32794 bcm_gport_t l2gre_tunnel_id) 32795 { 32796 return bcm_esw_l2gre_tunnel_terminator_destroy(unit, l2gre_tunnel_id); 32797 } 32798 #endif 32799 #endif 32800 #endif 32801 32802 #if defined(INCLUDE_L3) 32803 #if defined(INCLUDE_L3) 32804 #ifdef BCM_TOMAHAWK3_SUPPORT 32805 int 32806 bcm_tomahawk3_l2gre_tunnel_terminator_destroy_all( 32807 int unit) 32808 { 32809 return bcm_esw_l2gre_tunnel_terminator_destroy_all(unit); 32810 } 32811 #endif 32812 #endif 32813 #endif 32814 32815 #if defined(INCLUDE_L3) 32816 #if defined(INCLUDE_L3) 32817 #ifdef BCM_TOMAHAWK3_SUPPORT 32818 int 32819 bcm_tomahawk3_l2gre_tunnel_terminator_get( 32820 int unit, 32821 bcm_tunnel_terminator_t *info) 32822 { 32823 return bcm_esw_l2gre_tunnel_terminator_get(unit, info); 32824 } 32825 #endif 32826 #endif 32827 #endif 32828 32829 #if defined(INCLUDE_L3) 32830 #if defined(INCLUDE_L3) 32831 #ifdef BCM_TOMAHAWK3_SUPPORT 32832 int 32833 bcm_tomahawk3_l2gre_tunnel_terminator_traverse( 32834 int unit, 32835 bcm_tunnel_terminator_traverse_cb cb, 32836 void *user_data) 32837 { 32838 return bcm_esw_l2gre_tunnel_terminator_traverse(unit, cb, user_data); 32839 } 32840 #endif 32841 #endif 32842 #endif 32843 32844 #if defined(INCLUDE_L3) 32845 #if defined(INCLUDE_L3) 32846 #ifdef BCM_TOMAHAWK3_SUPPORT 32847 int 32848 bcm_tomahawk3_l2gre_tunnel_terminator_update( 32849 int unit, 32850 bcm_tunnel_terminator_t *info) 32851 { 32852 return bcm_esw_l2gre_tunnel_terminator_update(unit, info); 32853 } 32854 #endif 32855 #endif 32856 #endif 32857 32858 #if defined(INCLUDE_L3) 32859 #if defined(INCLUDE_L3) 32860 #ifdef BCM_TOMAHAWK3_SUPPORT 32861 int 32862 bcm_tomahawk3_l2gre_vpn_create( 32863 int unit, 32864 bcm_l2gre_vpn_config_t *info) 32865 { 32866 return bcm_esw_l2gre_vpn_create(unit, info); 32867 } 32868 #endif 32869 #endif 32870 #endif 32871 32872 #if defined(INCLUDE_L3) 32873 #if defined(INCLUDE_L3) 32874 #ifdef BCM_TOMAHAWK3_SUPPORT 32875 int 32876 bcm_tomahawk3_l2gre_vpn_destroy( 32877 int unit, 32878 bcm_vpn_t l2vpn) 32879 { 32880 return bcm_esw_l2gre_vpn_destroy(unit, l2vpn); 32881 } 32882 #endif 32883 #endif 32884 #endif 32885 32886 #if defined(INCLUDE_L3) 32887 #if defined(INCLUDE_L3) 32888 #ifdef BCM_TOMAHAWK3_SUPPORT 32889 int 32890 bcm_tomahawk3_l2gre_vpn_destroy_all( 32891 int unit) 32892 { 32893 return bcm_esw_l2gre_vpn_destroy_all(unit); 32894 } 32895 #endif 32896 #endif 32897 #endif 32898 32899 #if defined(INCLUDE_L3) 32900 #if defined(INCLUDE_L3) 32901 #ifdef BCM_TOMAHAWK3_SUPPORT 32902 int 32903 bcm_tomahawk3_l2gre_vpn_get( 32904 int unit, 32905 bcm_vpn_t l2vpn, 32906 bcm_l2gre_vpn_config_t *info) 32907 { 32908 return bcm_esw_l2gre_vpn_get(unit, l2vpn, info); 32909 } 32910 #endif 32911 #endif 32912 #endif 32913 32914 #if defined(INCLUDE_L3) 32915 #if defined(INCLUDE_L3) 32916 #ifdef BCM_TOMAHAWK3_SUPPORT 32917 int 32918 bcm_tomahawk3_l2gre_vpn_traverse( 32919 int unit, 32920 bcm_l2gre_vpn_traverse_cb cb, 32921 void *user_data) 32922 { 32923 return bcm_esw_l2gre_vpn_traverse(unit, cb, user_data); 32924 } 32925 #endif 32926 #endif 32927 #endif 32928 32929 #if defined(INCLUDE_L3) 32930 #ifdef BCM_TOMAHAWK3_SUPPORT 32931 int 32932 bcm_tomahawk3_l3_cleanup( 32933 int unit) 32934 { 32935 return bcm_esw_l3_cleanup(unit); 32936 } 32937 #endif 32938 #endif 32939 32940 #if defined(INCLUDE_L3) 32941 #ifdef BCM_TOMAHAWK3_SUPPORT 32942 int 32943 bcm_tomahawk3_l3_ecmp_agm_attach( 32944 int unit, 32945 bcm_if_t l3_ecmp_id, 32946 bcm_switch_agm_id_t agm_id) 32947 { 32948 return bcm_esw_l3_ecmp_agm_attach(unit, l3_ecmp_id, agm_id); 32949 } 32950 #endif 32951 #endif 32952 32953 #if defined(INCLUDE_L3) 32954 #ifdef BCM_TOMAHAWK3_SUPPORT 32955 int 32956 bcm_tomahawk3_l3_ecmp_agm_attach_get( 32957 int unit, 32958 bcm_if_t l3_ecmp_id, 32959 bcm_switch_agm_id_t *agm_id) 32960 { 32961 return bcm_esw_l3_ecmp_agm_attach_get(unit, l3_ecmp_id, agm_id); 32962 } 32963 #endif 32964 #endif 32965 32966 #if defined(INCLUDE_L3) 32967 #ifdef BCM_TOMAHAWK3_SUPPORT 32968 int 32969 bcm_tomahawk3_l3_ecmp_agm_detach( 32970 int unit, 32971 bcm_if_t l3_ecmp_id, 32972 bcm_switch_agm_id_t agm_id) 32973 { 32974 return bcm_esw_l3_ecmp_agm_detach(unit, l3_ecmp_id, agm_id); 32975 } 32976 #endif 32977 #endif 32978 32979 #if defined(INCLUDE_L3) 32980 #ifdef BCM_TOMAHAWK3_SUPPORT 32981 int 32982 bcm_tomahawk3_l3_ecmp_create( 32983 int unit, 32984 uint32 options, 32985 bcm_l3_egress_ecmp_t *ecmp_info, 32986 int ecmp_member_count, 32987 bcm_l3_ecmp_member_t *ecmp_member_array) 32988 { 32989 return bcm_esw_l3_ecmp_create(unit, options, ecmp_info, ecmp_member_count, ecmp_member_array); 32990 } 32991 #endif 32992 #endif 32993 32994 #if defined(INCLUDE_L3) 32995 #ifdef BCM_TOMAHAWK3_SUPPORT 32996 int 32997 bcm_tomahawk3_l3_ecmp_destroy( 32998 int unit, 32999 bcm_if_t ecmp_group_id) 33000 { 33001 return bcm_esw_l3_ecmp_destroy(unit, ecmp_group_id); 33002 } 33003 #endif 33004 #endif 33005 33006 #if defined(INCLUDE_L3) 33007 #ifdef BCM_TOMAHAWK3_SUPPORT 33008 int 33009 bcm_tomahawk3_l3_ecmp_dlb_mon_config_get( 33010 int unit, 33011 bcm_if_t intf, 33012 bcm_l3_ecmp_dlb_mon_cfg_t *dlb_mon_cfg) 33013 { 33014 return bcm_esw_l3_ecmp_dlb_mon_config_get(unit, intf, dlb_mon_cfg); 33015 } 33016 #endif 33017 #endif 33018 33019 #if defined(INCLUDE_L3) 33020 #ifdef BCM_TOMAHAWK3_SUPPORT 33021 int 33022 bcm_tomahawk3_l3_ecmp_dlb_mon_config_set( 33023 int unit, 33024 bcm_if_t ecmp_intf, 33025 bcm_l3_ecmp_dlb_mon_cfg_t *dlb_mon_cfg) 33026 { 33027 return bcm_esw_l3_ecmp_dlb_mon_config_set(unit, ecmp_intf, dlb_mon_cfg); 33028 } 33029 #endif 33030 #endif 33031 33032 #if defined(INCLUDE_L3) 33033 #ifdef BCM_TOMAHAWK3_SUPPORT 33034 int 33035 bcm_tomahawk3_l3_ecmp_find( 33036 int unit, 33037 int ecmp_member_count, 33038 bcm_l3_ecmp_member_t *ecmp_member_array, 33039 bcm_l3_egress_ecmp_t *ecmp_info) 33040 { 33041 return bcm_esw_l3_ecmp_find(unit, ecmp_member_count, ecmp_member_array, ecmp_info); 33042 } 33043 #endif 33044 #endif 33045 33046 #if defined(INCLUDE_L3) 33047 #ifdef BCM_TOMAHAWK3_SUPPORT 33048 int 33049 bcm_tomahawk3_l3_ecmp_get( 33050 int unit, 33051 bcm_l3_egress_ecmp_t *ecmp_info, 33052 int ecmp_member_size, 33053 bcm_l3_ecmp_member_t *ecmp_member_array, 33054 int *ecmp_member_count) 33055 { 33056 return bcm_esw_l3_ecmp_get(unit, ecmp_info, ecmp_member_size, ecmp_member_array, ecmp_member_count); 33057 } 33058 #endif 33059 #endif 33060 33061 #if defined(INCLUDE_L3) 33062 #ifdef BCM_TOMAHAWK3_SUPPORT 33063 int 33064 bcm_tomahawk3_l3_ecmp_member_add( 33065 int unit, 33066 bcm_if_t ecmp_group_id, 33067 bcm_l3_ecmp_member_t *ecmp_member) 33068 { 33069 return bcm_esw_l3_ecmp_member_add(unit, ecmp_group_id, ecmp_member); 33070 } 33071 #endif 33072 #endif 33073 33074 #if defined(INCLUDE_L3) 33075 #ifdef BCM_TOMAHAWK3_SUPPORT 33076 int 33077 bcm_tomahawk3_l3_ecmp_member_delete( 33078 int unit, 33079 bcm_if_t ecmp_group_id, 33080 bcm_l3_ecmp_member_t *ecmp_member) 33081 { 33082 return bcm_esw_l3_ecmp_member_delete(unit, ecmp_group_id, ecmp_member); 33083 } 33084 #endif 33085 #endif 33086 33087 #if defined(INCLUDE_L3) 33088 #ifdef BCM_TOMAHAWK3_SUPPORT 33089 int 33090 bcm_tomahawk3_l3_ecmp_member_delete_all( 33091 int unit, 33092 bcm_if_t ecmp_group_id) 33093 { 33094 return bcm_esw_l3_ecmp_member_delete_all(unit, ecmp_group_id); 33095 } 33096 #endif 33097 #endif 33098 33099 #if defined(INCLUDE_L3) 33100 #ifdef BCM_TOMAHAWK3_SUPPORT 33101 int 33102 bcm_tomahawk3_l3_ecmp_traverse( 33103 int unit, 33104 bcm_l3_ecmp_traverse_cb trav_fn, 33105 void *user_data) 33106 { 33107 return bcm_esw_l3_ecmp_traverse(unit, trav_fn, user_data); 33108 } 33109 #endif 33110 #endif 33111 33112 #if defined(INCLUDE_L3) 33113 #ifdef BCM_TOMAHAWK3_SUPPORT 33114 int 33115 bcm_tomahawk3_l3_egress_arp_traverse( 33116 int unit, 33117 bcm_l3_egress_traverse_cb trav_fn, 33118 void *user_data) 33119 { 33120 return bcm_esw_l3_egress_arp_traverse(unit, trav_fn, user_data); 33121 } 33122 #endif 33123 #endif 33124 33125 #if defined(INCLUDE_L3) 33126 #ifdef BCM_TOMAHAWK3_SUPPORT 33127 int 33128 bcm_tomahawk3_l3_egress_create( 33129 int unit, 33130 uint32 flags, 33131 bcm_l3_egress_t *egr, 33132 bcm_if_t *if_id) 33133 { 33134 return bcm_esw_l3_egress_create(unit, flags, egr, if_id); 33135 } 33136 #endif 33137 #endif 33138 33139 #if defined(INCLUDE_L3) 33140 #ifdef BCM_TOMAHAWK3_SUPPORT 33141 int 33142 bcm_tomahawk3_l3_egress_destroy( 33143 int unit, 33144 bcm_if_t intf) 33145 { 33146 return bcm_esw_l3_egress_destroy(unit, intf); 33147 } 33148 #endif 33149 #endif 33150 33151 #if defined(INCLUDE_L3) 33152 #ifdef BCM_TOMAHAWK3_SUPPORT 33153 int 33154 bcm_tomahawk3_l3_egress_ecmp_add( 33155 int unit, 33156 bcm_l3_egress_ecmp_t *ecmp, 33157 bcm_if_t intf) 33158 { 33159 return bcm_esw_l3_egress_ecmp_add(unit, ecmp, intf); 33160 } 33161 #endif 33162 #endif 33163 33164 #if defined(INCLUDE_L3) 33165 #ifdef BCM_TOMAHAWK3_SUPPORT 33166 int 33167 bcm_tomahawk3_l3_egress_ecmp_create( 33168 int unit, 33169 bcm_l3_egress_ecmp_t *ecmp, 33170 int intf_count, 33171 bcm_if_t *intf_array) 33172 { 33173 return bcm_esw_l3_egress_ecmp_create(unit, ecmp, intf_count, intf_array); 33174 } 33175 #endif 33176 #endif 33177 33178 #if defined(INCLUDE_L3) 33179 #ifdef BCM_TOMAHAWK3_SUPPORT 33180 int 33181 bcm_tomahawk3_l3_egress_ecmp_delete( 33182 int unit, 33183 bcm_l3_egress_ecmp_t *ecmp, 33184 bcm_if_t intf) 33185 { 33186 return bcm_esw_l3_egress_ecmp_delete(unit, ecmp, intf); 33187 } 33188 #endif 33189 #endif 33190 33191 #if defined(INCLUDE_L3) 33192 #ifdef BCM_TOMAHAWK3_SUPPORT 33193 int 33194 bcm_tomahawk3_l3_egress_ecmp_destroy( 33195 int unit, 33196 bcm_l3_egress_ecmp_t *ecmp) 33197 { 33198 return bcm_esw_l3_egress_ecmp_destroy(unit, ecmp); 33199 } 33200 #endif 33201 #endif 33202 33203 #if defined(INCLUDE_L3) 33204 #ifdef BCM_TOMAHAWK3_SUPPORT 33205 int 33206 bcm_tomahawk3_l3_egress_ecmp_ethertype_get( 33207 int unit, 33208 uint32 *flags, 33209 int ethertype_max, 33210 int *ethertype_array, 33211 int *ethertype_count) 33212 { 33213 return bcm_esw_l3_egress_ecmp_ethertype_get(unit, flags, ethertype_max, ethertype_array, ethertype_count); 33214 } 33215 #endif 33216 #endif 33217 33218 #if defined(INCLUDE_L3) 33219 #ifdef BCM_TOMAHAWK3_SUPPORT 33220 int 33221 bcm_tomahawk3_l3_egress_ecmp_ethertype_set( 33222 int unit, 33223 uint32 flags, 33224 int ethertype_count, 33225 int *ethertype_array) 33226 { 33227 return bcm_esw_l3_egress_ecmp_ethertype_set(unit, flags, ethertype_count, ethertype_array); 33228 } 33229 #endif 33230 #endif 33231 33232 #if defined(INCLUDE_L3) 33233 #ifdef BCM_TOMAHAWK3_SUPPORT 33234 int 33235 bcm_tomahawk3_l3_egress_ecmp_find( 33236 int unit, 33237 int intf_count, 33238 bcm_if_t *intf_array, 33239 bcm_l3_egress_ecmp_t *ecmp) 33240 { 33241 return bcm_esw_l3_egress_ecmp_find(unit, intf_count, intf_array, ecmp); 33242 } 33243 #endif 33244 #endif 33245 33246 #if defined(INCLUDE_L3) 33247 #ifdef BCM_TOMAHAWK3_SUPPORT 33248 int 33249 bcm_tomahawk3_l3_egress_ecmp_get( 33250 int unit, 33251 bcm_l3_egress_ecmp_t *ecmp, 33252 int intf_size, 33253 bcm_if_t *intf_array, 33254 int *intf_count) 33255 { 33256 return bcm_esw_l3_egress_ecmp_get(unit, ecmp, intf_size, intf_array, intf_count); 33257 } 33258 #endif 33259 #endif 33260 33261 #if defined(INCLUDE_L3) 33262 #ifdef BCM_TOMAHAWK3_SUPPORT 33263 int 33264 bcm_tomahawk3_l3_egress_ecmp_member_status_get( 33265 int unit, 33266 bcm_if_t intf, 33267 int *status) 33268 { 33269 return bcm_esw_l3_egress_ecmp_member_status_get(unit, intf, status); 33270 } 33271 #endif 33272 #endif 33273 33274 #if defined(INCLUDE_L3) 33275 #ifdef BCM_TOMAHAWK3_SUPPORT 33276 int 33277 bcm_tomahawk3_l3_egress_ecmp_member_status_set( 33278 int unit, 33279 bcm_if_t intf, 33280 int status) 33281 { 33282 return bcm_esw_l3_egress_ecmp_member_status_set(unit, intf, status); 33283 } 33284 #endif 33285 #endif 33286 33287 #if defined(INCLUDE_L3) 33288 #ifdef BCM_TOMAHAWK3_SUPPORT 33289 int 33290 bcm_tomahawk3_l3_egress_ecmp_resilient_replace( 33291 int unit, 33292 uint32 flags, 33293 bcm_l3_egress_ecmp_resilient_entry_t *match_entry, 33294 int *num_entries, 33295 bcm_l3_egress_ecmp_resilient_entry_t *replace_entry) 33296 { 33297 return bcm_esw_l3_egress_ecmp_resilient_replace(unit, flags, match_entry, num_entries, replace_entry); 33298 } 33299 #endif 33300 #endif 33301 33302 #if defined(INCLUDE_L3) 33303 #ifdef BCM_TOMAHAWK3_SUPPORT 33304 int 33305 bcm_tomahawk3_l3_egress_ecmp_resilient_traverse( 33306 int unit, 33307 uint32 flags, 33308 bcm_l3_egress_ecmp_resilient_entry_t *match_entry, 33309 bcm_l3_egress_ecmp_resilient_traverse_cb trav_fn, 33310 void *user_data) 33311 { 33312 return bcm_esw_l3_egress_ecmp_resilient_traverse(unit, flags, match_entry, trav_fn, user_data); 33313 } 33314 #endif 33315 #endif 33316 33317 #if defined(INCLUDE_L3) 33318 #ifdef BCM_TOMAHAWK3_SUPPORT 33319 int 33320 bcm_tomahawk3_l3_egress_ecmp_traverse( 33321 int unit, 33322 bcm_l3_egress_ecmp_traverse_cb trav_fn, 33323 void *user_data) 33324 { 33325 return bcm_esw_l3_egress_ecmp_traverse(unit, trav_fn, user_data); 33326 } 33327 #endif 33328 #endif 33329 33330 #if defined(INCLUDE_L3) 33331 #ifdef BCM_TOMAHAWK3_SUPPORT 33332 int 33333 bcm_tomahawk3_l3_egress_find( 33334 int unit, 33335 bcm_l3_egress_t *egr, 33336 bcm_if_t *intf) 33337 { 33338 return bcm_esw_l3_egress_find(unit, egr, intf); 33339 } 33340 #endif 33341 #endif 33342 33343 #if defined(INCLUDE_L3) 33344 #ifdef BCM_TOMAHAWK3_SUPPORT 33345 int 33346 bcm_tomahawk3_l3_egress_get( 33347 int unit, 33348 bcm_if_t intf, 33349 bcm_l3_egress_t *egr) 33350 { 33351 return bcm_esw_l3_egress_get(unit, intf, egr); 33352 } 33353 #endif 33354 #endif 33355 33356 #if defined(INCLUDE_L3) 33357 #ifdef BCM_TOMAHAWK3_SUPPORT 33358 int 33359 bcm_tomahawk3_l3_egress_multi_alloc( 33360 int unit, 33361 bcm_l3_egress_multi_info_t egress_multi_info, 33362 bcm_if_t *base_egress_id) 33363 { 33364 return bcm_esw_l3_egress_multi_alloc(unit, egress_multi_info, base_egress_id); 33365 } 33366 #endif 33367 #endif 33368 33369 #if defined(INCLUDE_L3) 33370 #ifdef BCM_TOMAHAWK3_SUPPORT 33371 int 33372 bcm_tomahawk3_l3_egress_multi_free( 33373 int unit, 33374 bcm_if_t base_egress_id) 33375 { 33376 return bcm_esw_l3_egress_multi_free(unit, base_egress_id); 33377 } 33378 #endif 33379 #endif 33380 33381 #if defined(INCLUDE_L3) 33382 #ifdef BCM_TOMAHAWK3_SUPPORT 33383 int 33384 bcm_tomahawk3_l3_egress_multipath_add( 33385 int unit, 33386 bcm_if_t mpintf, 33387 bcm_if_t intf) 33388 { 33389 return bcm_esw_l3_egress_multipath_add(unit, mpintf, intf); 33390 } 33391 #endif 33392 #endif 33393 33394 #if defined(INCLUDE_L3) 33395 #ifdef BCM_TOMAHAWK3_SUPPORT 33396 int 33397 bcm_tomahawk3_l3_egress_multipath_create( 33398 int unit, 33399 uint32 flags, 33400 int intf_count, 33401 bcm_if_t *intf_array, 33402 bcm_if_t *mpintf) 33403 { 33404 return bcm_esw_l3_egress_multipath_create(unit, flags, intf_count, intf_array, mpintf); 33405 } 33406 #endif 33407 #endif 33408 33409 #if defined(INCLUDE_L3) 33410 #ifdef BCM_TOMAHAWK3_SUPPORT 33411 int 33412 bcm_tomahawk3_l3_egress_multipath_delete( 33413 int unit, 33414 bcm_if_t mpintf, 33415 bcm_if_t intf) 33416 { 33417 return bcm_esw_l3_egress_multipath_delete(unit, mpintf, intf); 33418 } 33419 #endif 33420 #endif 33421 33422 #if defined(INCLUDE_L3) 33423 #ifdef BCM_TOMAHAWK3_SUPPORT 33424 int 33425 bcm_tomahawk3_l3_egress_multipath_destroy( 33426 int unit, 33427 bcm_if_t mpintf) 33428 { 33429 return bcm_esw_l3_egress_multipath_destroy(unit, mpintf); 33430 } 33431 #endif 33432 #endif 33433 33434 #if defined(INCLUDE_L3) 33435 #ifdef BCM_TOMAHAWK3_SUPPORT 33436 int 33437 bcm_tomahawk3_l3_egress_multipath_find( 33438 int unit, 33439 int intf_count, 33440 bcm_if_t *intf_array, 33441 bcm_if_t *mpintf) 33442 { 33443 return bcm_esw_l3_egress_multipath_find(unit, intf_count, intf_array, mpintf); 33444 } 33445 #endif 33446 #endif 33447 33448 #if defined(INCLUDE_L3) 33449 #ifdef BCM_TOMAHAWK3_SUPPORT 33450 int 33451 bcm_tomahawk3_l3_egress_multipath_get( 33452 int unit, 33453 bcm_if_t mpintf, 33454 int intf_size, 33455 bcm_if_t *intf_array, 33456 int *intf_count) 33457 { 33458 return bcm_esw_l3_egress_multipath_get(unit, mpintf, intf_size, intf_array, intf_count); 33459 } 33460 #endif 33461 #endif 33462 33463 #if defined(INCLUDE_L3) 33464 #ifdef BCM_TOMAHAWK3_SUPPORT 33465 int 33466 bcm_tomahawk3_l3_egress_multipath_max_create( 33467 int unit, 33468 uint32 flags, 33469 int max_paths, 33470 int intf_count, 33471 bcm_if_t *intf_array, 33472 bcm_if_t *mpintf) 33473 { 33474 return bcm_esw_l3_egress_multipath_max_create(unit, flags, max_paths, intf_count, intf_array, mpintf); 33475 } 33476 #endif 33477 #endif 33478 33479 #if defined(INCLUDE_L3) 33480 #ifdef BCM_TOMAHAWK3_SUPPORT 33481 int 33482 bcm_tomahawk3_l3_egress_multipath_traverse( 33483 int unit, 33484 bcm_l3_egress_multipath_traverse_cb trav_fn, 33485 void *user_data) 33486 { 33487 return bcm_esw_l3_egress_multipath_traverse(unit, trav_fn, user_data); 33488 } 33489 #endif 33490 #endif 33491 33492 #if defined(INCLUDE_L3) 33493 #ifdef BCM_TOMAHAWK3_SUPPORT 33494 int 33495 bcm_tomahawk3_l3_egress_stat_attach( 33496 int unit, 33497 bcm_if_t intf_id, 33498 uint32 stat_counter_id) 33499 { 33500 return bcm_esw_l3_egress_stat_attach(unit, intf_id, stat_counter_id); 33501 } 33502 #endif 33503 #endif 33504 33505 #if defined(INCLUDE_L3) 33506 #ifdef BCM_TOMAHAWK3_SUPPORT 33507 int 33508 bcm_tomahawk3_l3_egress_stat_counter_get( 33509 int unit, 33510 bcm_if_t intf_id, 33511 bcm_l3_stat_t stat, 33512 uint32 num_entries, 33513 uint32 *counter_indexes, 33514 bcm_stat_value_t *counter_values) 33515 { 33516 return bcm_esw_l3_egress_stat_counter_get(unit, intf_id, stat, num_entries, counter_indexes, counter_values); 33517 } 33518 #endif 33519 #endif 33520 33521 #if defined(INCLUDE_L3) 33522 #ifdef BCM_TOMAHAWK3_SUPPORT 33523 int 33524 bcm_tomahawk3_l3_egress_stat_counter_set( 33525 int unit, 33526 bcm_if_t intf_id, 33527 bcm_l3_stat_t stat, 33528 uint32 num_entries, 33529 uint32 *counter_indexes, 33530 bcm_stat_value_t *counter_values) 33531 { 33532 return bcm_esw_l3_egress_stat_counter_set(unit, intf_id, stat, num_entries, counter_indexes, counter_values); 33533 } 33534 #endif 33535 #endif 33536 33537 #if defined(INCLUDE_L3) 33538 #ifdef BCM_TOMAHAWK3_SUPPORT 33539 int 33540 bcm_tomahawk3_l3_egress_stat_counter_sync_get( 33541 int unit, 33542 bcm_if_t intf_id, 33543 bcm_l3_stat_t stat, 33544 uint32 num_entries, 33545 uint32 *counter_indexes, 33546 bcm_stat_value_t *counter_values) 33547 { 33548 return bcm_esw_l3_egress_stat_counter_sync_get(unit, intf_id, stat, num_entries, counter_indexes, counter_values); 33549 } 33550 #endif 33551 #endif 33552 33553 #if defined(INCLUDE_L3) 33554 #ifdef BCM_TOMAHAWK3_SUPPORT 33555 int 33556 bcm_tomahawk3_l3_egress_stat_detach( 33557 int unit, 33558 bcm_if_t intf_id) 33559 { 33560 return bcm_esw_l3_egress_stat_detach(unit, intf_id); 33561 } 33562 #endif 33563 #endif 33564 33565 #if defined(INCLUDE_L3) 33566 #ifdef BCM_TOMAHAWK3_SUPPORT 33567 int 33568 bcm_tomahawk3_l3_egress_stat_id_get( 33569 int unit, 33570 bcm_if_t intf_id, 33571 bcm_l3_stat_t stat, 33572 uint32 *stat_counter_id) 33573 { 33574 return bcm_esw_l3_egress_stat_id_get(unit, intf_id, stat, stat_counter_id); 33575 } 33576 #endif 33577 #endif 33578 33579 #if defined(INCLUDE_L3) 33580 #ifdef BCM_TOMAHAWK3_SUPPORT 33581 int 33582 bcm_tomahawk3_l3_egress_traverse( 33583 int unit, 33584 bcm_l3_egress_traverse_cb trav_fn, 33585 void *user_data) 33586 { 33587 return bcm_esw_l3_egress_traverse(unit, trav_fn, user_data); 33588 } 33589 #endif 33590 #endif 33591 33592 #if defined(INCLUDE_L3) 33593 #ifdef BCM_TOMAHAWK3_SUPPORT 33594 int 33595 bcm_tomahawk3_l3_enable_set( 33596 int unit, 33597 int enable) 33598 { 33599 return bcm_esw_l3_enable_set(unit, enable); 33600 } 33601 #endif 33602 #endif 33603 33604 #if defined(INCLUDE_L3) 33605 #ifdef BCM_TOMAHAWK3_SUPPORT 33606 int 33607 bcm_tomahawk3_l3_host_add( 33608 int unit, 33609 bcm_l3_host_t *info) 33610 { 33611 return bcm_esw_l3_host_add(unit, info); 33612 } 33613 #endif 33614 #endif 33615 33616 #if defined(INCLUDE_L3) 33617 #ifdef BCM_TOMAHAWK3_SUPPORT 33618 int 33619 bcm_tomahawk3_l3_host_age( 33620 int unit, 33621 uint32 flags, 33622 bcm_l3_host_traverse_cb age_cb, 33623 void *user_data) 33624 { 33625 return bcm_esw_l3_host_age(unit, flags, age_cb, user_data); 33626 } 33627 #endif 33628 #endif 33629 33630 #if defined(INCLUDE_L3) 33631 #ifdef BCM_TOMAHAWK3_SUPPORT 33632 int 33633 bcm_tomahawk3_l3_host_conflict_get( 33634 int unit, 33635 bcm_l3_key_t *ipkey, 33636 bcm_l3_key_t *cf_array, 33637 int cf_max, 33638 int *cf_count) 33639 { 33640 return bcm_esw_l3_host_conflict_get(unit, ipkey, cf_array, cf_max, cf_count); 33641 } 33642 #endif 33643 #endif 33644 33645 #if defined(INCLUDE_L3) 33646 #ifdef BCM_TOMAHAWK3_SUPPORT 33647 int 33648 bcm_tomahawk3_l3_host_delete( 33649 int unit, 33650 bcm_l3_host_t *ip_addr) 33651 { 33652 return bcm_esw_l3_host_delete(unit, ip_addr); 33653 } 33654 #endif 33655 #endif 33656 33657 #if defined(INCLUDE_L3) 33658 #ifdef BCM_TOMAHAWK3_SUPPORT 33659 int 33660 bcm_tomahawk3_l3_host_delete_all( 33661 int unit, 33662 bcm_l3_host_t *info) 33663 { 33664 return bcm_esw_l3_host_delete_all(unit, info); 33665 } 33666 #endif 33667 #endif 33668 33669 #if defined(INCLUDE_L3) 33670 #ifdef BCM_TOMAHAWK3_SUPPORT 33671 int 33672 bcm_tomahawk3_l3_host_delete_by_interface( 33673 int unit, 33674 bcm_l3_host_t *info) 33675 { 33676 return bcm_esw_l3_host_delete_by_interface(unit, info); 33677 } 33678 #endif 33679 #endif 33680 33681 #if defined(INCLUDE_L3) 33682 #ifdef BCM_TOMAHAWK3_SUPPORT 33683 int 33684 bcm_tomahawk3_l3_host_delete_by_network( 33685 int unit, 33686 bcm_l3_route_t *ip_addr) 33687 { 33688 return bcm_esw_l3_host_delete_by_network(unit, ip_addr); 33689 } 33690 #endif 33691 #endif 33692 33693 #if defined(INCLUDE_L3) 33694 #ifdef BCM_TOMAHAWK3_SUPPORT 33695 int 33696 bcm_tomahawk3_l3_host_find( 33697 int unit, 33698 bcm_l3_host_t *info) 33699 { 33700 return bcm_esw_l3_host_find(unit, info); 33701 } 33702 #endif 33703 #endif 33704 33705 #if defined(INCLUDE_L3) 33706 #ifdef BCM_TOMAHAWK3_SUPPORT 33707 int 33708 bcm_tomahawk3_l3_host_invalidate_entry( 33709 int unit, 33710 bcm_ip_t info) 33711 { 33712 return bcm_esw_l3_host_invalidate_entry(unit, info); 33713 } 33714 #endif 33715 #endif 33716 33717 #if defined(INCLUDE_L3) 33718 #ifdef BCM_TOMAHAWK3_SUPPORT 33719 int 33720 bcm_tomahawk3_l3_host_stat_attach( 33721 int unit, 33722 bcm_l3_host_t *info, 33723 uint32 stat_counter_id) 33724 { 33725 return bcm_esw_l3_host_stat_attach(unit, info, stat_counter_id); 33726 } 33727 #endif 33728 #endif 33729 33730 #if defined(INCLUDE_L3) 33731 #ifdef BCM_TOMAHAWK3_SUPPORT 33732 int 33733 bcm_tomahawk3_l3_host_stat_counter_get( 33734 int unit, 33735 bcm_l3_host_t *info, 33736 bcm_l3_stat_t stat, 33737 uint32 num_entries, 33738 uint32 *counter_indexes, 33739 bcm_stat_value_t *counter_values) 33740 { 33741 return bcm_esw_l3_host_stat_counter_get(unit, info, stat, num_entries, counter_indexes, counter_values); 33742 } 33743 #endif 33744 #endif 33745 33746 #if defined(INCLUDE_L3) 33747 #ifdef BCM_TOMAHAWK3_SUPPORT 33748 int 33749 bcm_tomahawk3_l3_host_stat_counter_set( 33750 int unit, 33751 bcm_l3_host_t *info, 33752 bcm_l3_stat_t stat, 33753 uint32 num_entries, 33754 uint32 *counter_indexes, 33755 bcm_stat_value_t *counter_values) 33756 { 33757 return bcm_esw_l3_host_stat_counter_set(unit, info, stat, num_entries, counter_indexes, counter_values); 33758 } 33759 #endif 33760 #endif 33761 33762 #if defined(INCLUDE_L3) 33763 #ifdef BCM_TOMAHAWK3_SUPPORT 33764 int 33765 bcm_tomahawk3_l3_host_stat_counter_sync_get( 33766 int unit, 33767 bcm_l3_host_t *info, 33768 bcm_l3_stat_t stat, 33769 uint32 num_entries, 33770 uint32 *counter_indexes, 33771 bcm_stat_value_t *counter_values) 33772 { 33773 return bcm_esw_l3_host_stat_counter_sync_get(unit, info, stat, num_entries, counter_indexes, counter_values); 33774 } 33775 #endif 33776 #endif 33777 33778 #if defined(INCLUDE_L3) 33779 #ifdef BCM_TOMAHAWK3_SUPPORT 33780 int 33781 bcm_tomahawk3_l3_host_stat_detach( 33782 int unit, 33783 bcm_l3_host_t *info) 33784 { 33785 return bcm_esw_l3_host_stat_detach(unit, info); 33786 } 33787 #endif 33788 #endif 33789 33790 #if defined(INCLUDE_L3) 33791 #ifdef BCM_TOMAHAWK3_SUPPORT 33792 int 33793 bcm_tomahawk3_l3_host_stat_id_get( 33794 int unit, 33795 bcm_l3_host_t *info, 33796 bcm_l3_stat_t stat, 33797 uint32 *stat_counter_id) 33798 { 33799 return bcm_esw_l3_host_stat_id_get(unit, info, stat, stat_counter_id); 33800 } 33801 #endif 33802 #endif 33803 33804 #if defined(INCLUDE_L3) 33805 #ifdef BCM_TOMAHAWK3_SUPPORT 33806 int 33807 bcm_tomahawk3_l3_host_traverse( 33808 int unit, 33809 uint32 flags, 33810 uint32 start, 33811 uint32 end, 33812 bcm_l3_host_traverse_cb cb, 33813 void *user_data) 33814 { 33815 return bcm_esw_l3_host_traverse(unit, flags, start, end, cb, user_data); 33816 } 33817 #endif 33818 #endif 33819 33820 #if defined(INCLUDE_L3) 33821 #ifdef BCM_TOMAHAWK3_SUPPORT 33822 int 33823 bcm_tomahawk3_l3_host_validate_entry( 33824 int unit, 33825 bcm_ip_t info) 33826 { 33827 return bcm_esw_l3_host_validate_entry(unit, info); 33828 } 33829 #endif 33830 #endif 33831 33832 #if defined(INCLUDE_L3) 33833 #ifdef BCM_TOMAHAWK3_SUPPORT 33834 int 33835 bcm_tomahawk3_l3_info( 33836 int unit, 33837 bcm_l3_info_t *l3info) 33838 { 33839 return bcm_esw_l3_info(unit, l3info); 33840 } 33841 #endif 33842 #endif 33843 33844 #if defined(INCLUDE_L3) 33845 #ifdef BCM_TOMAHAWK3_SUPPORT 33846 int 33847 bcm_tomahawk3_l3_ingress_create( 33848 int unit, 33849 bcm_l3_ingress_t *ing_intf, 33850 bcm_if_t *intf_id) 33851 { 33852 return bcm_esw_l3_ingress_create(unit, ing_intf, intf_id); 33853 } 33854 #endif 33855 #endif 33856 33857 #if defined(INCLUDE_L3) 33858 #ifdef BCM_TOMAHAWK3_SUPPORT 33859 int 33860 bcm_tomahawk3_l3_ingress_destroy( 33861 int unit, 33862 bcm_if_t intf_id) 33863 { 33864 return bcm_esw_l3_ingress_destroy(unit, intf_id); 33865 } 33866 #endif 33867 #endif 33868 33869 #if defined(INCLUDE_L3) 33870 #ifdef BCM_TOMAHAWK3_SUPPORT 33871 int 33872 bcm_tomahawk3_l3_ingress_find( 33873 int unit, 33874 bcm_l3_ingress_t *ing_intf, 33875 bcm_if_t *intf_id) 33876 { 33877 return bcm_esw_l3_ingress_find(unit, ing_intf, intf_id); 33878 } 33879 #endif 33880 #endif 33881 33882 #if defined(INCLUDE_L3) 33883 #ifdef BCM_TOMAHAWK3_SUPPORT 33884 int 33885 bcm_tomahawk3_l3_ingress_get( 33886 int unit, 33887 bcm_if_t intf, 33888 bcm_l3_ingress_t *ing_intf) 33889 { 33890 return bcm_esw_l3_ingress_get(unit, intf, ing_intf); 33891 } 33892 #endif 33893 #endif 33894 33895 #if defined(INCLUDE_L3) 33896 #ifdef BCM_TOMAHAWK3_SUPPORT 33897 int 33898 bcm_tomahawk3_l3_ingress_stat_attach( 33899 int unit, 33900 bcm_if_t intf_id, 33901 uint32 stat_counter_id) 33902 { 33903 return bcm_esw_l3_ingress_stat_attach(unit, intf_id, stat_counter_id); 33904 } 33905 #endif 33906 #endif 33907 33908 #if defined(INCLUDE_L3) 33909 #ifdef BCM_TOMAHAWK3_SUPPORT 33910 int 33911 bcm_tomahawk3_l3_ingress_stat_counter_get( 33912 int unit, 33913 bcm_if_t intf_id, 33914 bcm_l3_stat_t stat, 33915 uint32 num_entries, 33916 uint32 *counter_indexes, 33917 bcm_stat_value_t *counter_values) 33918 { 33919 return bcm_esw_l3_ingress_stat_counter_get(unit, intf_id, stat, num_entries, counter_indexes, counter_values); 33920 } 33921 #endif 33922 #endif 33923 33924 #if defined(INCLUDE_L3) 33925 #ifdef BCM_TOMAHAWK3_SUPPORT 33926 int 33927 bcm_tomahawk3_l3_ingress_stat_counter_set( 33928 int unit, 33929 bcm_if_t intf_id, 33930 bcm_l3_stat_t stat, 33931 uint32 num_entries, 33932 uint32 *counter_indexes, 33933 bcm_stat_value_t *counter_values) 33934 { 33935 return bcm_esw_l3_ingress_stat_counter_set(unit, intf_id, stat, num_entries, counter_indexes, counter_values); 33936 } 33937 #endif 33938 #endif 33939 33940 #if defined(INCLUDE_L3) 33941 #ifdef BCM_TOMAHAWK3_SUPPORT 33942 int 33943 bcm_tomahawk3_l3_ingress_stat_counter_sync_get( 33944 int unit, 33945 bcm_if_t intf_id, 33946 bcm_l3_stat_t stat, 33947 uint32 num_entries, 33948 uint32 *counter_indexes, 33949 bcm_stat_value_t *counter_values) 33950 { 33951 return bcm_esw_l3_ingress_stat_counter_sync_get(unit, intf_id, stat, num_entries, counter_indexes, counter_values); 33952 } 33953 #endif 33954 #endif 33955 33956 #if defined(INCLUDE_L3) 33957 #ifdef BCM_TOMAHAWK3_SUPPORT 33958 int 33959 bcm_tomahawk3_l3_ingress_stat_detach( 33960 int unit, 33961 bcm_if_t intf_id) 33962 { 33963 return bcm_esw_l3_ingress_stat_detach(unit, intf_id); 33964 } 33965 #endif 33966 #endif 33967 33968 #if defined(INCLUDE_L3) 33969 #ifdef BCM_TOMAHAWK3_SUPPORT 33970 int 33971 bcm_tomahawk3_l3_ingress_stat_id_get( 33972 int unit, 33973 bcm_if_t intf_id, 33974 bcm_l3_stat_t stat, 33975 uint32 *stat_counter_id) 33976 { 33977 return bcm_esw_l3_ingress_stat_id_get(unit, intf_id, stat, stat_counter_id); 33978 } 33979 #endif 33980 #endif 33981 33982 #if defined(INCLUDE_L3) 33983 #ifdef BCM_TOMAHAWK3_SUPPORT 33984 int 33985 bcm_tomahawk3_l3_ingress_traverse( 33986 int unit, 33987 bcm_l3_ingress_traverse_cb trav_fn, 33988 void *user_data) 33989 { 33990 return bcm_esw_l3_ingress_traverse(unit, trav_fn, user_data); 33991 } 33992 #endif 33993 #endif 33994 33995 #if defined(INCLUDE_L3) 33996 #ifdef BCM_TOMAHAWK3_SUPPORT 33997 int 33998 bcm_tomahawk3_l3_init( 33999 int unit) 34000 { 34001 return bcm_esw_l3_init(unit); 34002 } 34003 #endif 34004 #endif 34005 34006 #if defined(INCLUDE_L3) 34007 #ifdef BCM_TOMAHAWK3_SUPPORT 34008 int 34009 bcm_tomahawk3_l3_intf_create( 34010 int unit, 34011 bcm_l3_intf_t *intf) 34012 { 34013 return bcm_esw_l3_intf_create(unit, intf); 34014 } 34015 #endif 34016 #endif 34017 34018 #if defined(INCLUDE_L3) 34019 #ifdef BCM_TOMAHAWK3_SUPPORT 34020 int 34021 bcm_tomahawk3_l3_intf_delete( 34022 int unit, 34023 bcm_l3_intf_t *intf) 34024 { 34025 return bcm_esw_l3_intf_delete(unit, intf); 34026 } 34027 #endif 34028 #endif 34029 34030 #if defined(INCLUDE_L3) 34031 #ifdef BCM_TOMAHAWK3_SUPPORT 34032 int 34033 bcm_tomahawk3_l3_intf_delete_all( 34034 int unit) 34035 { 34036 return bcm_esw_l3_intf_delete_all(unit); 34037 } 34038 #endif 34039 #endif 34040 34041 #if defined(INCLUDE_L3) 34042 #ifdef BCM_TOMAHAWK3_SUPPORT 34043 int 34044 bcm_tomahawk3_l3_intf_find( 34045 int unit, 34046 bcm_l3_intf_t *intf) 34047 { 34048 return bcm_esw_l3_intf_find(unit, intf); 34049 } 34050 #endif 34051 #endif 34052 34053 #if defined(INCLUDE_L3) 34054 #ifdef BCM_TOMAHAWK3_SUPPORT 34055 int 34056 bcm_tomahawk3_l3_intf_find_vlan( 34057 int unit, 34058 bcm_l3_intf_t *intf) 34059 { 34060 return bcm_esw_l3_intf_find_vlan(unit, intf); 34061 } 34062 #endif 34063 #endif 34064 34065 #if defined(INCLUDE_L3) 34066 #ifdef BCM_TOMAHAWK3_SUPPORT 34067 int 34068 bcm_tomahawk3_l3_intf_get( 34069 int unit, 34070 bcm_l3_intf_t *intf) 34071 { 34072 return bcm_esw_l3_intf_get(unit, intf); 34073 } 34074 #endif 34075 #endif 34076 34077 #if defined(INCLUDE_L3) 34078 #ifdef BCM_TOMAHAWK3_SUPPORT 34079 int 34080 bcm_tomahawk3_l3_intf_vpn_get( 34081 int unit, 34082 bcm_if_t l3_intf_id, 34083 uint32 *flags, 34084 bcm_vpn_t *vpn) 34085 { 34086 return bcm_esw_l3_intf_vpn_get(unit, l3_intf_id, flags, vpn); 34087 } 34088 #endif 34089 #endif 34090 34091 #if defined(INCLUDE_L3) 34092 #ifdef BCM_TOMAHAWK3_SUPPORT 34093 int 34094 bcm_tomahawk3_l3_intf_vpn_set( 34095 int unit, 34096 bcm_if_t l3_intf_id, 34097 uint32 flags, 34098 bcm_vpn_t vpn) 34099 { 34100 return bcm_esw_l3_intf_vpn_set(unit, l3_intf_id, flags, vpn); 34101 } 34102 #endif 34103 #endif 34104 34105 #if defined(INCLUDE_L3) 34106 #ifdef BCM_TOMAHAWK3_SUPPORT 34107 int 34108 bcm_tomahawk3_l3_ip4_options_action_get( 34109 int unit, 34110 int ip4_options_profile_id, 34111 int ip4_option, 34112 bcm_l3_ip4_options_action_t *action) 34113 { 34114 return bcm_esw_l3_ip4_options_action_get(unit, ip4_options_profile_id, ip4_option, action); 34115 } 34116 #endif 34117 #endif 34118 34119 #if defined(INCLUDE_L3) 34120 #ifdef BCM_TOMAHAWK3_SUPPORT 34121 int 34122 bcm_tomahawk3_l3_ip4_options_action_set( 34123 int unit, 34124 int ip4_options_profile_id, 34125 int ip4_option, 34126 bcm_l3_ip4_options_action_t action) 34127 { 34128 return bcm_esw_l3_ip4_options_action_set(unit, ip4_options_profile_id, ip4_option, action); 34129 } 34130 #endif 34131 #endif 34132 34133 #if defined(INCLUDE_L3) 34134 #ifdef BCM_TOMAHAWK3_SUPPORT 34135 int 34136 bcm_tomahawk3_l3_ip4_options_profile_create( 34137 int unit, 34138 uint32 flags, 34139 bcm_l3_ip4_options_action_t default_action, 34140 int *ip4_options_profile_id) 34141 { 34142 return bcm_esw_l3_ip4_options_profile_create(unit, flags, default_action, ip4_options_profile_id); 34143 } 34144 #endif 34145 #endif 34146 34147 #if defined(INCLUDE_L3) 34148 #ifdef BCM_TOMAHAWK3_SUPPORT 34149 int 34150 bcm_tomahawk3_l3_ip4_options_profile_destroy( 34151 int unit, 34152 int ip4_options_profile_id) 34153 { 34154 return bcm_esw_l3_ip4_options_profile_destroy(unit, ip4_options_profile_id); 34155 } 34156 #endif 34157 #endif 34158 34159 #if defined(INCLUDE_L3) 34160 #ifdef BCM_TOMAHAWK3_SUPPORT 34161 int 34162 bcm_tomahawk3_l3_ip6_prefix_map_add( 34163 int unit, 34164 bcm_ip6_t ip6_addr) 34165 { 34166 return bcm_esw_l3_ip6_prefix_map_add(unit, ip6_addr); 34167 } 34168 #endif 34169 #endif 34170 34171 #if defined(INCLUDE_L3) 34172 #ifdef BCM_TOMAHAWK3_SUPPORT 34173 int 34174 bcm_tomahawk3_l3_ip6_prefix_map_delete( 34175 int unit, 34176 bcm_ip6_t ip6_addr) 34177 { 34178 return bcm_esw_l3_ip6_prefix_map_delete(unit, ip6_addr); 34179 } 34180 #endif 34181 #endif 34182 34183 #if defined(INCLUDE_L3) 34184 #ifdef BCM_TOMAHAWK3_SUPPORT 34185 int 34186 bcm_tomahawk3_l3_ip6_prefix_map_delete_all( 34187 int unit) 34188 { 34189 return bcm_esw_l3_ip6_prefix_map_delete_all(unit); 34190 } 34191 #endif 34192 #endif 34193 34194 #if defined(INCLUDE_L3) 34195 #ifdef BCM_TOMAHAWK3_SUPPORT 34196 int 34197 bcm_tomahawk3_l3_ip6_prefix_map_get( 34198 int unit, 34199 int map_size, 34200 bcm_ip6_t *ip6_array, 34201 int *ip6_count) 34202 { 34203 return bcm_esw_l3_ip6_prefix_map_get(unit, map_size, ip6_array, ip6_count); 34204 } 34205 #endif 34206 #endif 34207 34208 #if defined(INCLUDE_L3) 34209 #ifdef BCM_TOMAHAWK3_SUPPORT 34210 int 34211 bcm_tomahawk3_l3_large_nat_egress_add( 34212 int unit, 34213 bcm_l3_large_nat_egress_t *nat_info) 34214 { 34215 return bcm_esw_l3_large_nat_egress_add(unit, nat_info); 34216 } 34217 #endif 34218 #endif 34219 34220 #if defined(INCLUDE_L3) 34221 #ifdef BCM_TOMAHAWK3_SUPPORT 34222 int 34223 bcm_tomahawk3_l3_large_nat_egress_delete( 34224 int unit, 34225 bcm_l3_large_nat_egress_t *nat_info) 34226 { 34227 return bcm_esw_l3_large_nat_egress_delete(unit, nat_info); 34228 } 34229 #endif 34230 #endif 34231 34232 #if defined(INCLUDE_L3) 34233 #ifdef BCM_TOMAHAWK3_SUPPORT 34234 int 34235 bcm_tomahawk3_l3_large_nat_egress_get( 34236 int unit, 34237 bcm_l3_large_nat_egress_t *nat_info) 34238 { 34239 return bcm_esw_l3_large_nat_egress_get(unit, nat_info); 34240 } 34241 #endif 34242 #endif 34243 34244 #if defined(INCLUDE_L3) 34245 #ifdef BCM_TOMAHAWK3_SUPPORT 34246 int 34247 bcm_tomahawk3_l3_large_nat_egress_traverse( 34248 int unit, 34249 bcm_l3_large_nat_egress_traverse_cb cb, 34250 void *user_data) 34251 { 34252 return bcm_esw_l3_large_nat_egress_traverse(unit, cb, user_data); 34253 } 34254 #endif 34255 #endif 34256 34257 #if defined(INCLUDE_L3) 34258 #ifdef BCM_TOMAHAWK3_SUPPORT 34259 int 34260 bcm_tomahawk3_l3_nat_egress_add( 34261 int unit, 34262 bcm_l3_nat_egress_t *nat_info) 34263 { 34264 return bcm_esw_l3_nat_egress_add(unit, nat_info); 34265 } 34266 #endif 34267 #endif 34268 34269 #if defined(INCLUDE_L3) 34270 #ifdef BCM_TOMAHAWK3_SUPPORT 34271 int 34272 bcm_tomahawk3_l3_nat_egress_delete( 34273 int unit, 34274 bcm_l3_nat_id_t nat_id) 34275 { 34276 return bcm_esw_l3_nat_egress_delete(unit, nat_id); 34277 } 34278 #endif 34279 #endif 34280 34281 #if defined(INCLUDE_L3) 34282 #ifdef BCM_TOMAHAWK3_SUPPORT 34283 int 34284 bcm_tomahawk3_l3_nat_egress_get( 34285 int unit, 34286 bcm_l3_nat_egress_t *nat_info) 34287 { 34288 return bcm_esw_l3_nat_egress_get(unit, nat_info); 34289 } 34290 #endif 34291 #endif 34292 34293 #if defined(INCLUDE_L3) 34294 #ifdef BCM_TOMAHAWK3_SUPPORT 34295 int 34296 bcm_tomahawk3_l3_nat_egress_stat_attach( 34297 int unit, 34298 bcm_l3_nat_egress_t *info, 34299 uint32 stat_counter_id) 34300 { 34301 return bcm_esw_l3_nat_egress_stat_attach(unit, info, stat_counter_id); 34302 } 34303 #endif 34304 #endif 34305 34306 #if defined(INCLUDE_L3) 34307 #ifdef BCM_TOMAHAWK3_SUPPORT 34308 int 34309 bcm_tomahawk3_l3_nat_egress_stat_counter_get( 34310 int unit, 34311 bcm_l3_nat_egress_t *info, 34312 bcm_l3_nat_egress_stat_t stat, 34313 uint32 num_entries, 34314 uint32 *counter_indexes, 34315 bcm_stat_value_t *counter_values) 34316 { 34317 return bcm_esw_l3_nat_egress_stat_counter_get(unit, info, stat, num_entries, counter_indexes, counter_values); 34318 } 34319 #endif 34320 #endif 34321 34322 #if defined(INCLUDE_L3) 34323 #ifdef BCM_TOMAHAWK3_SUPPORT 34324 int 34325 bcm_tomahawk3_l3_nat_egress_stat_counter_set( 34326 int unit, 34327 bcm_l3_nat_egress_t *info, 34328 bcm_l3_nat_egress_stat_t stat, 34329 uint32 num_entries, 34330 uint32 *counter_indexes, 34331 bcm_stat_value_t *counter_values) 34332 { 34333 return bcm_esw_l3_nat_egress_stat_counter_set(unit, info, stat, num_entries, counter_indexes, counter_values); 34334 } 34335 #endif 34336 #endif 34337 34338 #if defined(INCLUDE_L3) 34339 #ifdef BCM_TOMAHAWK3_SUPPORT 34340 int 34341 bcm_tomahawk3_l3_nat_egress_stat_counter_sync_get( 34342 int unit, 34343 bcm_l3_nat_egress_t *info, 34344 bcm_l3_nat_egress_stat_t stat, 34345 uint32 num_entries, 34346 uint32 *counter_indexes, 34347 bcm_stat_value_t *counter_values) 34348 { 34349 return bcm_esw_l3_nat_egress_stat_counter_sync_get(unit, info, stat, num_entries, counter_indexes, counter_values); 34350 } 34351 #endif 34352 #endif 34353 34354 #if defined(INCLUDE_L3) 34355 #ifdef BCM_TOMAHAWK3_SUPPORT 34356 int 34357 bcm_tomahawk3_l3_nat_egress_stat_detach( 34358 int unit, 34359 bcm_l3_nat_egress_t *info) 34360 { 34361 return bcm_esw_l3_nat_egress_stat_detach(unit, info); 34362 } 34363 #endif 34364 #endif 34365 34366 #if defined(INCLUDE_L3) 34367 #ifdef BCM_TOMAHAWK3_SUPPORT 34368 int 34369 bcm_tomahawk3_l3_nat_egress_stat_id_get( 34370 int unit, 34371 bcm_l3_nat_egress_t *info, 34372 bcm_l3_nat_egress_stat_t stat, 34373 uint32 *stat_counter_id) 34374 { 34375 return bcm_esw_l3_nat_egress_stat_id_get(unit, info, stat, stat_counter_id); 34376 } 34377 #endif 34378 #endif 34379 34380 #if defined(INCLUDE_L3) 34381 #ifdef BCM_TOMAHAWK3_SUPPORT 34382 int 34383 bcm_tomahawk3_l3_nat_egress_stat_multi_get( 34384 int unit, 34385 bcm_l3_nat_egress_t *info, 34386 int nstat, 34387 bcm_l3_nat_egress_stat_t *stat_arr, 34388 uint64 *value_arr) 34389 { 34390 return bcm_esw_l3_nat_egress_stat_multi_get(unit, info, nstat, stat_arr, value_arr); 34391 } 34392 #endif 34393 #endif 34394 34395 #if defined(INCLUDE_L3) 34396 #ifdef BCM_TOMAHAWK3_SUPPORT 34397 int 34398 bcm_tomahawk3_l3_nat_egress_stat_multi_get32( 34399 int unit, 34400 bcm_l3_nat_egress_t *info, 34401 int nstat, 34402 bcm_l3_nat_egress_stat_t *stat_arr, 34403 uint32 *value_arr) 34404 { 34405 return bcm_esw_l3_nat_egress_stat_multi_get32(unit, info, nstat, stat_arr, value_arr); 34406 } 34407 #endif 34408 #endif 34409 34410 #if defined(INCLUDE_L3) 34411 #ifdef BCM_TOMAHAWK3_SUPPORT 34412 int 34413 bcm_tomahawk3_l3_nat_egress_stat_multi_set( 34414 int unit, 34415 bcm_l3_nat_egress_t *info, 34416 int nstat, 34417 bcm_l3_nat_egress_stat_t *stat_arr, 34418 uint64 *value_arr) 34419 { 34420 return bcm_esw_l3_nat_egress_stat_multi_set(unit, info, nstat, stat_arr, value_arr); 34421 } 34422 #endif 34423 #endif 34424 34425 #if defined(INCLUDE_L3) 34426 #ifdef BCM_TOMAHAWK3_SUPPORT 34427 int 34428 bcm_tomahawk3_l3_nat_egress_stat_multi_set32( 34429 int unit, 34430 bcm_l3_nat_egress_t *info, 34431 int nstat, 34432 bcm_l3_nat_egress_stat_t *stat_arr, 34433 uint32 *value_arr) 34434 { 34435 return bcm_esw_l3_nat_egress_stat_multi_set32(unit, info, nstat, stat_arr, value_arr); 34436 } 34437 #endif 34438 #endif 34439 34440 #if defined(INCLUDE_L3) 34441 #ifdef BCM_TOMAHAWK3_SUPPORT 34442 int 34443 bcm_tomahawk3_l3_nat_egress_traverse( 34444 int unit, 34445 uint32 flags, 34446 uint32 start, 34447 uint32 end, 34448 bcm_l3_nat_egress_traverse_cb cb, 34449 void *user_data) 34450 { 34451 return bcm_esw_l3_nat_egress_traverse(unit, flags, start, end, cb, user_data); 34452 } 34453 #endif 34454 #endif 34455 34456 #if defined(INCLUDE_L3) 34457 #ifdef BCM_TOMAHAWK3_SUPPORT 34458 int 34459 bcm_tomahawk3_l3_nat_ingress_add( 34460 int unit, 34461 bcm_l3_nat_ingress_t *nat_info) 34462 { 34463 return bcm_esw_l3_nat_ingress_add(unit, nat_info); 34464 } 34465 #endif 34466 #endif 34467 34468 #if defined(INCLUDE_L3) 34469 #ifdef BCM_TOMAHAWK3_SUPPORT 34470 int 34471 bcm_tomahawk3_l3_nat_ingress_age( 34472 int unit, 34473 uint32 flags, 34474 bcm_l3_nat_ingress_traverse_cb age_cb, 34475 void *user_data) 34476 { 34477 return bcm_esw_l3_nat_ingress_age(unit, flags, age_cb, user_data); 34478 } 34479 #endif 34480 #endif 34481 34482 #if defined(INCLUDE_L3) 34483 #ifdef BCM_TOMAHAWK3_SUPPORT 34484 int 34485 bcm_tomahawk3_l3_nat_ingress_delete( 34486 int unit, 34487 bcm_l3_nat_ingress_t *nat_info) 34488 { 34489 return bcm_esw_l3_nat_ingress_delete(unit, nat_info); 34490 } 34491 #endif 34492 #endif 34493 34494 #if defined(INCLUDE_L3) 34495 #ifdef BCM_TOMAHAWK3_SUPPORT 34496 int 34497 bcm_tomahawk3_l3_nat_ingress_delete_all( 34498 int unit, 34499 bcm_l3_nat_ingress_t *nat_info) 34500 { 34501 return bcm_esw_l3_nat_ingress_delete_all(unit, nat_info); 34502 } 34503 #endif 34504 #endif 34505 34506 #if defined(INCLUDE_L3) 34507 #ifdef BCM_TOMAHAWK3_SUPPORT 34508 int 34509 bcm_tomahawk3_l3_nat_ingress_find( 34510 int unit, 34511 bcm_l3_nat_ingress_t *nat_info) 34512 { 34513 return bcm_esw_l3_nat_ingress_find(unit, nat_info); 34514 } 34515 #endif 34516 #endif 34517 34518 #if defined(INCLUDE_L3) 34519 #ifdef BCM_TOMAHAWK3_SUPPORT 34520 int 34521 bcm_tomahawk3_l3_nat_ingress_traverse( 34522 int unit, 34523 uint32 flags, 34524 uint32 start, 34525 uint32 end, 34526 bcm_l3_nat_ingress_traverse_cb cb, 34527 void *user_data) 34528 { 34529 return bcm_esw_l3_nat_ingress_traverse(unit, flags, start, end, cb, user_data); 34530 } 34531 #endif 34532 #endif 34533 34534 #if defined(INCLUDE_L3) 34535 #ifdef BCM_TOMAHAWK3_SUPPORT 34536 int 34537 bcm_tomahawk3_l3_route_add( 34538 int unit, 34539 bcm_l3_route_t *info) 34540 { 34541 return bcm_esw_l3_route_add(unit, info); 34542 } 34543 #endif 34544 #endif 34545 34546 #if defined(INCLUDE_L3) 34547 #ifdef BCM_TOMAHAWK3_SUPPORT 34548 int 34549 bcm_tomahawk3_l3_route_age( 34550 int unit, 34551 uint32 flags, 34552 bcm_l3_route_traverse_cb age_out, 34553 void *user_data) 34554 { 34555 return bcm_esw_l3_route_age(unit, flags, age_out, user_data); 34556 } 34557 #endif 34558 #endif 34559 34560 #if defined(INCLUDE_L3) 34561 #ifdef BCM_TOMAHAWK3_SUPPORT 34562 int 34563 bcm_tomahawk3_l3_route_delete( 34564 int unit, 34565 bcm_l3_route_t *info) 34566 { 34567 return bcm_esw_l3_route_delete(unit, info); 34568 } 34569 #endif 34570 #endif 34571 34572 #if defined(INCLUDE_L3) 34573 #ifdef BCM_TOMAHAWK3_SUPPORT 34574 int 34575 bcm_tomahawk3_l3_route_delete_all( 34576 int unit, 34577 bcm_l3_route_t *info) 34578 { 34579 return bcm_esw_l3_route_delete_all(unit, info); 34580 } 34581 #endif 34582 #endif 34583 34584 #if defined(INCLUDE_L3) 34585 #ifdef BCM_TOMAHAWK3_SUPPORT 34586 int 34587 bcm_tomahawk3_l3_route_delete_by_interface( 34588 int unit, 34589 bcm_l3_route_t *info) 34590 { 34591 return bcm_esw_l3_route_delete_by_interface(unit, info); 34592 } 34593 #endif 34594 #endif 34595 34596 #if defined(INCLUDE_L3) 34597 #ifdef BCM_TOMAHAWK3_SUPPORT 34598 int 34599 bcm_tomahawk3_l3_route_find( 34600 int unit, 34601 bcm_l3_host_t *host, 34602 bcm_l3_route_t *route) 34603 { 34604 return bcm_esw_l3_route_find(unit, host, route); 34605 } 34606 #endif 34607 #endif 34608 34609 #if defined(INCLUDE_L3) 34610 #ifdef BCM_TOMAHAWK3_SUPPORT 34611 int 34612 bcm_tomahawk3_l3_route_get( 34613 int unit, 34614 bcm_l3_route_t *info) 34615 { 34616 return bcm_esw_l3_route_get(unit, info); 34617 } 34618 #endif 34619 #endif 34620 34621 #if defined(INCLUDE_L3) 34622 #ifdef BCM_TOMAHAWK3_SUPPORT 34623 int 34624 bcm_tomahawk3_l3_route_max_ecmp_get( 34625 int unit, 34626 int *max) 34627 { 34628 return bcm_esw_l3_route_max_ecmp_get(unit, max); 34629 } 34630 #endif 34631 #endif 34632 34633 #if defined(INCLUDE_L3) 34634 #ifdef BCM_TOMAHAWK3_SUPPORT 34635 int 34636 bcm_tomahawk3_l3_route_max_ecmp_set( 34637 int unit, 34638 int max) 34639 { 34640 return bcm_esw_l3_route_max_ecmp_set(unit, max); 34641 } 34642 #endif 34643 #endif 34644 34645 #if defined(INCLUDE_L3) 34646 #ifdef BCM_TOMAHAWK3_SUPPORT 34647 int 34648 bcm_tomahawk3_l3_route_multipath_get( 34649 int unit, 34650 bcm_l3_route_t *the_route, 34651 bcm_l3_route_t *path_array, 34652 int max_path, 34653 int *path_count) 34654 { 34655 return bcm_esw_l3_route_multipath_get(unit, the_route, path_array, max_path, path_count); 34656 } 34657 #endif 34658 #endif 34659 34660 #if defined(INCLUDE_L3) 34661 #ifdef BCM_TOMAHAWK3_SUPPORT 34662 int 34663 bcm_tomahawk3_l3_route_stat_attach( 34664 int unit, 34665 bcm_l3_route_t *info, 34666 uint32 stat_counter_id) 34667 { 34668 return bcm_esw_l3_route_stat_attach(unit, info, stat_counter_id); 34669 } 34670 #endif 34671 #endif 34672 34673 #if defined(INCLUDE_L3) 34674 #ifdef BCM_TOMAHAWK3_SUPPORT 34675 int 34676 bcm_tomahawk3_l3_route_stat_counter_get( 34677 int unit, 34678 bcm_l3_route_t *info, 34679 bcm_l3_route_stat_t stat, 34680 uint32 num_entries, 34681 uint32 *counter_indexes, 34682 bcm_stat_value_t *counter_values) 34683 { 34684 return bcm_esw_l3_route_stat_counter_get(unit, info, stat, num_entries, counter_indexes, counter_values); 34685 } 34686 #endif 34687 #endif 34688 34689 #if defined(INCLUDE_L3) 34690 #ifdef BCM_TOMAHAWK3_SUPPORT 34691 int 34692 bcm_tomahawk3_l3_route_stat_counter_set( 34693 int unit, 34694 bcm_l3_route_t *info, 34695 bcm_l3_route_stat_t stat, 34696 uint32 num_entries, 34697 uint32 *counter_indexes, 34698 bcm_stat_value_t *counter_values) 34699 { 34700 return bcm_esw_l3_route_stat_counter_set(unit, info, stat, num_entries, counter_indexes, counter_values); 34701 } 34702 #endif 34703 #endif 34704 34705 #if defined(INCLUDE_L3) 34706 #ifdef BCM_TOMAHAWK3_SUPPORT 34707 int 34708 bcm_tomahawk3_l3_route_stat_counter_sync_get( 34709 int unit, 34710 bcm_l3_route_t *info, 34711 bcm_l3_route_stat_t stat, 34712 uint32 num_entries, 34713 uint32 *counter_indexes, 34714 bcm_stat_value_t *counter_values) 34715 { 34716 return bcm_esw_l3_route_stat_counter_sync_get(unit, info, stat, num_entries, counter_indexes, counter_values); 34717 } 34718 #endif 34719 #endif 34720 34721 #if defined(INCLUDE_L3) 34722 #ifdef BCM_TOMAHAWK3_SUPPORT 34723 int 34724 bcm_tomahawk3_l3_route_stat_detach( 34725 int unit, 34726 bcm_l3_route_t *info) 34727 { 34728 return bcm_esw_l3_route_stat_detach(unit, info); 34729 } 34730 #endif 34731 #endif 34732 34733 #if defined(INCLUDE_L3) 34734 #ifdef BCM_TOMAHAWK3_SUPPORT 34735 int 34736 bcm_tomahawk3_l3_route_stat_enable_set( 34737 int unit, 34738 bcm_l3_route_t *route, 34739 int enable) 34740 { 34741 return bcm_esw_l3_route_stat_enable_set(unit, route, enable); 34742 } 34743 #endif 34744 #endif 34745 34746 #if defined(INCLUDE_L3) 34747 #ifdef BCM_TOMAHAWK3_SUPPORT 34748 int 34749 bcm_tomahawk3_l3_route_stat_get( 34750 int unit, 34751 bcm_l3_route_t *route, 34752 bcm_l3_stat_t stat, 34753 uint64 *val) 34754 { 34755 return bcm_esw_l3_route_stat_get(unit, route, stat, val); 34756 } 34757 #endif 34758 #endif 34759 34760 #if defined(INCLUDE_L3) 34761 #ifdef BCM_TOMAHAWK3_SUPPORT 34762 int 34763 bcm_tomahawk3_l3_route_stat_get32( 34764 int unit, 34765 bcm_l3_route_t *route, 34766 bcm_l3_stat_t stat, 34767 uint32 *val) 34768 { 34769 return bcm_esw_l3_route_stat_get32(unit, route, stat, val); 34770 } 34771 #endif 34772 #endif 34773 34774 #if defined(INCLUDE_L3) 34775 #ifdef BCM_TOMAHAWK3_SUPPORT 34776 int 34777 bcm_tomahawk3_l3_route_stat_id_get( 34778 int unit, 34779 bcm_l3_route_t *info, 34780 bcm_l3_route_stat_t stat, 34781 uint32 *stat_counter_id) 34782 { 34783 return bcm_esw_l3_route_stat_id_get(unit, info, stat, stat_counter_id); 34784 } 34785 #endif 34786 #endif 34787 34788 #if defined(INCLUDE_L3) 34789 #ifdef BCM_TOMAHAWK3_SUPPORT 34790 int 34791 bcm_tomahawk3_l3_route_stat_multi_get( 34792 int unit, 34793 bcm_l3_route_t *info, 34794 int nstat, 34795 bcm_l3_route_stat_t *stat_arr, 34796 uint64 *value_arr) 34797 { 34798 return bcm_esw_l3_route_stat_multi_get(unit, info, nstat, stat_arr, value_arr); 34799 } 34800 #endif 34801 #endif 34802 34803 #if defined(INCLUDE_L3) 34804 #ifdef BCM_TOMAHAWK3_SUPPORT 34805 int 34806 bcm_tomahawk3_l3_route_stat_multi_get32( 34807 int unit, 34808 bcm_l3_route_t *info, 34809 int nstat, 34810 bcm_l3_route_stat_t *stat_arr, 34811 uint32 *value_arr) 34812 { 34813 return bcm_esw_l3_route_stat_multi_get32(unit, info, nstat, stat_arr, value_arr); 34814 } 34815 #endif 34816 #endif 34817 34818 #if defined(INCLUDE_L3) 34819 #ifdef BCM_TOMAHAWK3_SUPPORT 34820 int 34821 bcm_tomahawk3_l3_route_stat_multi_set( 34822 int unit, 34823 bcm_l3_route_t *info, 34824 int nstat, 34825 bcm_l3_route_stat_t *stat_arr, 34826 uint64 *value_arr) 34827 { 34828 return bcm_esw_l3_route_stat_multi_set(unit, info, nstat, stat_arr, value_arr); 34829 } 34830 #endif 34831 #endif 34832 34833 #if defined(INCLUDE_L3) 34834 #ifdef BCM_TOMAHAWK3_SUPPORT 34835 int 34836 bcm_tomahawk3_l3_route_stat_multi_set32( 34837 int unit, 34838 bcm_l3_route_t *info, 34839 int nstat, 34840 bcm_l3_route_stat_t *stat_arr, 34841 uint32 *value_arr) 34842 { 34843 return bcm_esw_l3_route_stat_multi_set32(unit, info, nstat, stat_arr, value_arr); 34844 } 34845 #endif 34846 #endif 34847 34848 #if defined(INCLUDE_L3) 34849 #ifdef BCM_TOMAHAWK3_SUPPORT 34850 int 34851 bcm_tomahawk3_l3_route_stat_set( 34852 int unit, 34853 bcm_l3_route_t *route, 34854 bcm_l3_stat_t stat, 34855 uint64 val) 34856 { 34857 return bcm_esw_l3_route_stat_set(unit, route, stat, val); 34858 } 34859 #endif 34860 #endif 34861 34862 #if defined(INCLUDE_L3) 34863 #ifdef BCM_TOMAHAWK3_SUPPORT 34864 int 34865 bcm_tomahawk3_l3_route_stat_set32( 34866 int unit, 34867 bcm_l3_route_t *route, 34868 bcm_l3_stat_t stat, 34869 uint32 val) 34870 { 34871 return bcm_esw_l3_route_stat_set32(unit, route, stat, val); 34872 } 34873 #endif 34874 #endif 34875 34876 #if defined(INCLUDE_L3) 34877 #ifdef BCM_TOMAHAWK3_SUPPORT 34878 int 34879 bcm_tomahawk3_l3_route_traverse( 34880 int unit, 34881 uint32 flags, 34882 uint32 start, 34883 uint32 end, 34884 bcm_l3_route_traverse_cb trav_fn, 34885 void *user_data) 34886 { 34887 return bcm_esw_l3_route_traverse(unit, flags, start, end, trav_fn, user_data); 34888 } 34889 #endif 34890 #endif 34891 34892 #if defined(INCLUDE_L3) 34893 #ifdef BCM_TOMAHAWK3_SUPPORT 34894 int 34895 bcm_tomahawk3_l3_source_bind_add( 34896 int unit, 34897 bcm_l3_source_bind_t *info) 34898 { 34899 return bcm_esw_l3_source_bind_add(unit, info); 34900 } 34901 #endif 34902 #endif 34903 34904 #if defined(INCLUDE_L3) 34905 #ifdef BCM_TOMAHAWK3_SUPPORT 34906 int 34907 bcm_tomahawk3_l3_source_bind_delete( 34908 int unit, 34909 bcm_l3_source_bind_t *info) 34910 { 34911 return bcm_esw_l3_source_bind_delete(unit, info); 34912 } 34913 #endif 34914 #endif 34915 34916 #if defined(INCLUDE_L3) 34917 #ifdef BCM_TOMAHAWK3_SUPPORT 34918 int 34919 bcm_tomahawk3_l3_source_bind_delete_all( 34920 int unit) 34921 { 34922 return bcm_esw_l3_source_bind_delete_all(unit); 34923 } 34924 #endif 34925 #endif 34926 34927 #if defined(INCLUDE_L3) 34928 #ifdef BCM_TOMAHAWK3_SUPPORT 34929 int 34930 bcm_tomahawk3_l3_source_bind_enable_get( 34931 int unit, 34932 bcm_port_t port, 34933 int *enable) 34934 { 34935 return bcm_esw_l3_source_bind_enable_get(unit, port, enable); 34936 } 34937 #endif 34938 #endif 34939 34940 #if defined(INCLUDE_L3) 34941 #ifdef BCM_TOMAHAWK3_SUPPORT 34942 int 34943 bcm_tomahawk3_l3_source_bind_enable_set( 34944 int unit, 34945 bcm_port_t port, 34946 int enable) 34947 { 34948 return bcm_esw_l3_source_bind_enable_set(unit, port, enable); 34949 } 34950 #endif 34951 #endif 34952 34953 #if defined(INCLUDE_L3) 34954 #ifdef BCM_TOMAHAWK3_SUPPORT 34955 int 34956 bcm_tomahawk3_l3_source_bind_get( 34957 int unit, 34958 bcm_l3_source_bind_t *info) 34959 { 34960 return bcm_esw_l3_source_bind_get(unit, info); 34961 } 34962 #endif 34963 #endif 34964 34965 #if defined(INCLUDE_L3) 34966 #ifdef BCM_TOMAHAWK3_SUPPORT 34967 int 34968 bcm_tomahawk3_l3_source_bind_traverse( 34969 int unit, 34970 bcm_l3_source_bind_traverse_cb cb, 34971 void *user_data) 34972 { 34973 return bcm_esw_l3_source_bind_traverse(unit, cb, user_data); 34974 } 34975 #endif 34976 #endif 34977 34978 #if defined(INCLUDE_L3) 34979 #ifdef BCM_TOMAHAWK3_SUPPORT 34980 int 34981 bcm_tomahawk3_l3_subnet_route_find( 34982 int unit, 34983 bcm_l3_route_t *input, 34984 bcm_l3_route_t *route) 34985 { 34986 return bcm_esw_l3_subnet_route_find(unit, input, route); 34987 } 34988 #endif 34989 #endif 34990 34991 #if defined(INCLUDE_L3) 34992 #ifdef BCM_TOMAHAWK3_SUPPORT 34993 int 34994 bcm_tomahawk3_l3_vpbr_entry_add( 34995 int unit, 34996 bcm_l3_vpbr_entry_t *entry) 34997 { 34998 return bcm_esw_l3_vpbr_entry_add(unit, entry); 34999 } 35000 #endif 35001 #endif 35002 35003 #if defined(INCLUDE_L3) 35004 #ifdef BCM_TOMAHAWK3_SUPPORT 35005 int 35006 bcm_tomahawk3_l3_vpbr_entry_delete( 35007 int unit, 35008 bcm_l3_vpbr_entry_t *entry) 35009 { 35010 return bcm_esw_l3_vpbr_entry_delete(unit, entry); 35011 } 35012 #endif 35013 #endif 35014 35015 #if defined(INCLUDE_L3) 35016 #ifdef BCM_TOMAHAWK3_SUPPORT 35017 int 35018 bcm_tomahawk3_l3_vpbr_entry_delete_all( 35019 int unit, 35020 bcm_l3_vpbr_entry_t *entry) 35021 { 35022 return bcm_esw_l3_vpbr_entry_delete_all(unit, entry); 35023 } 35024 #endif 35025 #endif 35026 35027 #if defined(INCLUDE_L3) 35028 #ifdef BCM_TOMAHAWK3_SUPPORT 35029 int 35030 bcm_tomahawk3_l3_vpbr_entry_get( 35031 int unit, 35032 bcm_l3_vpbr_entry_t *entry) 35033 { 35034 return bcm_esw_l3_vpbr_entry_get(unit, entry); 35035 } 35036 #endif 35037 #endif 35038 35039 #if defined(INCLUDE_L3) 35040 #ifdef BCM_TOMAHAWK3_SUPPORT 35041 int 35042 bcm_tomahawk3_l3_vpbr_traverse( 35043 int unit, 35044 uint32 flags, 35045 bcm_l3_vpbr_traverse_cb cb, 35046 void *user_data) 35047 { 35048 return bcm_esw_l3_vpbr_traverse(unit, flags, cb, user_data); 35049 } 35050 #endif 35051 #endif 35052 35053 #if defined(INCLUDE_L3) 35054 #ifdef BCM_TOMAHAWK3_SUPPORT 35055 int 35056 bcm_tomahawk3_l3_vrf_route_data_mode_get( 35057 int unit, 35058 bcm_vrf_t vrf, 35059 uint32 flags, 35060 bcm_l3_vrf_route_data_mode_t *mode) 35061 { 35062 return bcm_esw_l3_vrf_route_data_mode_get(unit, vrf, flags, mode); 35063 } 35064 #endif 35065 #endif 35066 35067 #if defined(INCLUDE_L3) 35068 #ifdef BCM_TOMAHAWK3_SUPPORT 35069 int 35070 bcm_tomahawk3_l3_vrf_route_data_mode_set( 35071 int unit, 35072 bcm_vrf_t vrf, 35073 uint32 flags, 35074 bcm_l3_vrf_route_data_mode_t mode) 35075 { 35076 return bcm_esw_l3_vrf_route_data_mode_set(unit, vrf, flags, mode); 35077 } 35078 #endif 35079 #endif 35080 35081 #if defined(INCLUDE_L3) 35082 #ifdef BCM_TOMAHAWK3_SUPPORT 35083 int 35084 bcm_tomahawk3_l3_vrf_stat_attach( 35085 int unit, 35086 bcm_vrf_t vrf, 35087 uint32 stat_counter_id) 35088 { 35089 return bcm_esw_l3_vrf_stat_attach(unit, vrf, stat_counter_id); 35090 } 35091 #endif 35092 #endif 35093 35094 #if defined(INCLUDE_L3) 35095 #ifdef BCM_TOMAHAWK3_SUPPORT 35096 int 35097 bcm_tomahawk3_l3_vrf_stat_counter_get( 35098 int unit, 35099 bcm_vrf_t vrf, 35100 bcm_l3_vrf_stat_t stat, 35101 uint32 num_entries, 35102 uint32 *counter_indexes, 35103 bcm_stat_value_t *counter_values) 35104 { 35105 return bcm_esw_l3_vrf_stat_counter_get(unit, vrf, stat, num_entries, counter_indexes, counter_values); 35106 } 35107 #endif 35108 #endif 35109 35110 #if defined(INCLUDE_L3) 35111 #ifdef BCM_TOMAHAWK3_SUPPORT 35112 int 35113 bcm_tomahawk3_l3_vrf_stat_counter_set( 35114 int unit, 35115 bcm_vrf_t vrf, 35116 bcm_l3_vrf_stat_t stat, 35117 uint32 num_entries, 35118 uint32 *counter_indexes, 35119 bcm_stat_value_t *counter_values) 35120 { 35121 return bcm_esw_l3_vrf_stat_counter_set(unit, vrf, stat, num_entries, counter_indexes, counter_values); 35122 } 35123 #endif 35124 #endif 35125 35126 #if defined(INCLUDE_L3) 35127 #ifdef BCM_TOMAHAWK3_SUPPORT 35128 int 35129 bcm_tomahawk3_l3_vrf_stat_counter_sync_get( 35130 int unit, 35131 bcm_vrf_t vrf, 35132 bcm_l3_vrf_stat_t stat, 35133 uint32 num_entries, 35134 uint32 *counter_indexes, 35135 bcm_stat_value_t *counter_values) 35136 { 35137 return bcm_esw_l3_vrf_stat_counter_sync_get(unit, vrf, stat, num_entries, counter_indexes, counter_values); 35138 } 35139 #endif 35140 #endif 35141 35142 #if defined(INCLUDE_L3) 35143 #ifdef BCM_TOMAHAWK3_SUPPORT 35144 int 35145 bcm_tomahawk3_l3_vrf_stat_detach( 35146 int unit, 35147 bcm_vrf_t vrf) 35148 { 35149 return bcm_esw_l3_vrf_stat_detach(unit, vrf); 35150 } 35151 #endif 35152 #endif 35153 35154 #if defined(INCLUDE_L3) 35155 #ifdef BCM_TOMAHAWK3_SUPPORT 35156 int 35157 bcm_tomahawk3_l3_vrf_stat_enable_set( 35158 int unit, 35159 bcm_vrf_t vrf, 35160 int enable) 35161 { 35162 return bcm_esw_l3_vrf_stat_enable_set(unit, vrf, enable); 35163 } 35164 #endif 35165 #endif 35166 35167 #if defined(INCLUDE_L3) 35168 #ifdef BCM_TOMAHAWK3_SUPPORT 35169 int 35170 bcm_tomahawk3_l3_vrf_stat_get( 35171 int unit, 35172 bcm_vrf_t vrf, 35173 bcm_l3_vrf_stat_t stat, 35174 uint64 *val) 35175 { 35176 return bcm_esw_l3_vrf_stat_get(unit, vrf, stat, val); 35177 } 35178 #endif 35179 #endif 35180 35181 #if defined(INCLUDE_L3) 35182 #ifdef BCM_TOMAHAWK3_SUPPORT 35183 int 35184 bcm_tomahawk3_l3_vrf_stat_get32( 35185 int unit, 35186 bcm_vrf_t vrf, 35187 bcm_l3_vrf_stat_t stat, 35188 uint32 *val) 35189 { 35190 return bcm_esw_l3_vrf_stat_get32(unit, vrf, stat, val); 35191 } 35192 #endif 35193 #endif 35194 35195 #if defined(INCLUDE_L3) 35196 #ifdef BCM_TOMAHAWK3_SUPPORT 35197 int 35198 bcm_tomahawk3_l3_vrf_stat_id_get( 35199 int unit, 35200 bcm_vrf_t vrf, 35201 bcm_l3_vrf_stat_t stat, 35202 uint32 *stat_counter_id) 35203 { 35204 return bcm_esw_l3_vrf_stat_id_get(unit, vrf, stat, stat_counter_id); 35205 } 35206 #endif 35207 #endif 35208 35209 #if defined(INCLUDE_L3) 35210 #ifdef BCM_TOMAHAWK3_SUPPORT 35211 int 35212 bcm_tomahawk3_l3_vrf_stat_multi_get( 35213 int unit, 35214 bcm_vrf_t vrf, 35215 int nstat, 35216 bcm_l3_vrf_stat_t *stat_arr, 35217 uint64 *value_arr) 35218 { 35219 return bcm_esw_l3_vrf_stat_multi_get(unit, vrf, nstat, stat_arr, value_arr); 35220 } 35221 #endif 35222 #endif 35223 35224 #if defined(INCLUDE_L3) 35225 #ifdef BCM_TOMAHAWK3_SUPPORT 35226 int 35227 bcm_tomahawk3_l3_vrf_stat_multi_get32( 35228 int unit, 35229 bcm_vrf_t vrf, 35230 int nstat, 35231 bcm_l3_vrf_stat_t *stat_arr, 35232 uint32 *value_arr) 35233 { 35234 return bcm_esw_l3_vrf_stat_multi_get32(unit, vrf, nstat, stat_arr, value_arr); 35235 } 35236 #endif 35237 #endif 35238 35239 #if defined(INCLUDE_L3) 35240 #ifdef BCM_TOMAHAWK3_SUPPORT 35241 int 35242 bcm_tomahawk3_l3_vrf_stat_multi_set( 35243 int unit, 35244 bcm_vrf_t vrf, 35245 int nstat, 35246 bcm_l3_vrf_stat_t *stat_arr, 35247 uint64 *value_arr) 35248 { 35249 return bcm_esw_l3_vrf_stat_multi_set(unit, vrf, nstat, stat_arr, value_arr); 35250 } 35251 #endif 35252 #endif 35253 35254 #if defined(INCLUDE_L3) 35255 #ifdef BCM_TOMAHAWK3_SUPPORT 35256 int 35257 bcm_tomahawk3_l3_vrf_stat_multi_set32( 35258 int unit, 35259 bcm_vrf_t vrf, 35260 int nstat, 35261 bcm_l3_vrf_stat_t *stat_arr, 35262 uint32 *value_arr) 35263 { 35264 return bcm_esw_l3_vrf_stat_multi_set32(unit, vrf, nstat, stat_arr, value_arr); 35265 } 35266 #endif 35267 #endif 35268 35269 #if defined(INCLUDE_L3) 35270 #ifdef BCM_TOMAHAWK3_SUPPORT 35271 int 35272 bcm_tomahawk3_l3_vrf_stat_set( 35273 int unit, 35274 bcm_vrf_t vrf, 35275 bcm_l3_vrf_stat_t stat, 35276 uint64 val) 35277 { 35278 return bcm_esw_l3_vrf_stat_set(unit, vrf, stat, val); 35279 } 35280 #endif 35281 #endif 35282 35283 #if defined(INCLUDE_L3) 35284 #ifdef BCM_TOMAHAWK3_SUPPORT 35285 int 35286 bcm_tomahawk3_l3_vrf_stat_set32( 35287 int unit, 35288 bcm_vrf_t vrf, 35289 bcm_l3_vrf_stat_t stat, 35290 uint32 val) 35291 { 35292 return bcm_esw_l3_vrf_stat_set32(unit, vrf, stat, val); 35293 } 35294 #endif 35295 #endif 35296 35297 #if defined(INCLUDE_L3) 35298 #ifdef BCM_TOMAHAWK3_SUPPORT 35299 int 35300 bcm_tomahawk3_l3_vrf_stat_sync_get( 35301 int unit, 35302 bcm_vrf_t vrf, 35303 bcm_l3_vrf_stat_t stat, 35304 uint64 *val) 35305 { 35306 return bcm_esw_l3_vrf_stat_sync_get(unit, vrf, stat, val); 35307 } 35308 #endif 35309 #endif 35310 35311 #if defined(INCLUDE_L3) 35312 #ifdef BCM_TOMAHAWK3_SUPPORT 35313 int 35314 bcm_tomahawk3_l3_vrf_stat_sync_get32( 35315 int unit, 35316 bcm_vrf_t vrf, 35317 bcm_l3_vrf_stat_t stat, 35318 uint32 *val) 35319 { 35320 return bcm_esw_l3_vrf_stat_sync_get32(unit, vrf, stat, val); 35321 } 35322 #endif 35323 #endif 35324 35325 #if defined(INCLUDE_L3) 35326 #ifdef BCM_TOMAHAWK3_SUPPORT 35327 int 35328 bcm_tomahawk3_l3_vrrp_add( 35329 int unit, 35330 bcm_vlan_t vlan, 35331 uint32 vrid) 35332 { 35333 return bcm_esw_l3_vrrp_add(unit, vlan, vrid); 35334 } 35335 #endif 35336 #endif 35337 35338 #if defined(INCLUDE_L3) 35339 #ifdef BCM_TOMAHAWK3_SUPPORT 35340 int 35341 bcm_tomahawk3_l3_vrrp_config_add( 35342 int unit, 35343 uint32 flags, 35344 bcm_vlan_t vlan, 35345 uint32 vrid) 35346 { 35347 return bcm_esw_l3_vrrp_config_add(unit, flags, vlan, vrid); 35348 } 35349 #endif 35350 #endif 35351 35352 #if defined(INCLUDE_L3) 35353 #ifdef BCM_TOMAHAWK3_SUPPORT 35354 int 35355 bcm_tomahawk3_l3_vrrp_config_delete( 35356 int unit, 35357 uint32 flags, 35358 bcm_vlan_t vlan, 35359 uint32 vrid) 35360 { 35361 return bcm_esw_l3_vrrp_config_delete(unit, flags, vlan, vrid); 35362 } 35363 #endif 35364 #endif 35365 35366 #if defined(INCLUDE_L3) 35367 #ifdef BCM_TOMAHAWK3_SUPPORT 35368 int 35369 bcm_tomahawk3_l3_vrrp_config_delete_all( 35370 int unit, 35371 uint32 flags, 35372 bcm_vlan_t vlan) 35373 { 35374 return bcm_esw_l3_vrrp_config_delete_all(unit, flags, vlan); 35375 } 35376 #endif 35377 #endif 35378 35379 #if defined(INCLUDE_L3) 35380 #ifdef BCM_TOMAHAWK3_SUPPORT 35381 int 35382 bcm_tomahawk3_l3_vrrp_config_get( 35383 int unit, 35384 uint32 flags, 35385 bcm_vlan_t vlan, 35386 uint32 alloc_size, 35387 uint32 *vrid_array, 35388 uint32 *count) 35389 { 35390 return bcm_esw_l3_vrrp_config_get(unit, flags, vlan, alloc_size, vrid_array, count); 35391 } 35392 #endif 35393 #endif 35394 35395 #if defined(INCLUDE_L3) 35396 #ifdef BCM_TOMAHAWK3_SUPPORT 35397 int 35398 bcm_tomahawk3_l3_vrrp_delete( 35399 int unit, 35400 bcm_vlan_t vlan, 35401 uint32 vrid) 35402 { 35403 return bcm_esw_l3_vrrp_delete(unit, vlan, vrid); 35404 } 35405 #endif 35406 #endif 35407 35408 #if defined(INCLUDE_L3) 35409 #ifdef BCM_TOMAHAWK3_SUPPORT 35410 int 35411 bcm_tomahawk3_l3_vrrp_delete_all( 35412 int unit, 35413 bcm_vlan_t vlan) 35414 { 35415 return bcm_esw_l3_vrrp_delete_all(unit, vlan); 35416 } 35417 #endif 35418 #endif 35419 35420 #if defined(INCLUDE_L3) 35421 #ifdef BCM_TOMAHAWK3_SUPPORT 35422 int 35423 bcm_tomahawk3_l3_vrrp_get( 35424 int unit, 35425 bcm_vlan_t vlan, 35426 int alloc_size, 35427 int *vrid_array, 35428 int *count) 35429 { 35430 return bcm_esw_l3_vrrp_get(unit, vlan, alloc_size, vrid_array, count); 35431 } 35432 #endif 35433 #endif 35434 35435 int 35436 bcm_tomahawk3_lb_control_get( 35437 int unit, 35438 bcm_lbg_t lbg_id, 35439 bcm_lb_direction_type_t direction, 35440 uint32 flags, 35441 bcm_lb_control_t lb_control, 35442 int *arg) 35443 { 35444 return BCM_E_UNAVAIL; 35445 } 35446 35447 int 35448 bcm_tomahawk3_lb_control_set( 35449 int unit, 35450 bcm_lbg_t lbg_id, 35451 bcm_lb_direction_type_t direction, 35452 uint32 flags, 35453 bcm_lb_control_t lb_control, 35454 int arg) 35455 { 35456 return BCM_E_UNAVAIL; 35457 } 35458 35459 int 35460 bcm_tomahawk3_lb_enable_get( 35461 int unit, 35462 bcm_lbg_t lbg_id, 35463 uint32 flags, 35464 uint32 *enable) 35465 { 35466 return BCM_E_UNAVAIL; 35467 } 35468 35469 int 35470 bcm_tomahawk3_lb_enable_set( 35471 int unit, 35472 bcm_lbg_t lbg_id, 35473 uint32 flags, 35474 uint32 enable) 35475 { 35476 return BCM_E_UNAVAIL; 35477 } 35478 35479 int 35480 bcm_tomahawk3_lb_flush_configure_get( 35481 int unit, 35482 bcm_lbg_t lbg_id, 35483 uint32 flags, 35484 bcm_lb_flush_type_t type, 35485 int *arg) 35486 { 35487 return BCM_E_UNAVAIL; 35488 } 35489 35490 int 35491 bcm_tomahawk3_lb_flush_configure_set( 35492 int unit, 35493 bcm_lbg_t lbg_id, 35494 uint32 flags, 35495 bcm_lb_flush_type_t type, 35496 int arg) 35497 { 35498 return BCM_E_UNAVAIL; 35499 } 35500 35501 int 35502 bcm_tomahawk3_lb_modem_control_get( 35503 int unit, 35504 bcm_modem_t modem_id, 35505 bcm_lb_direction_type_t direction, 35506 uint32 flags, 35507 bcm_lb_modem_control_t modem_control, 35508 int *arg) 35509 { 35510 return BCM_E_UNAVAIL; 35511 } 35512 35513 int 35514 bcm_tomahawk3_lb_modem_control_set( 35515 int unit, 35516 bcm_modem_t modem_id, 35517 bcm_lb_direction_type_t direction, 35518 uint32 flags, 35519 bcm_lb_modem_control_t modem_control, 35520 int arg) 35521 { 35522 return BCM_E_UNAVAIL; 35523 } 35524 35525 int 35526 bcm_tomahawk3_lb_modem_packet_config_get( 35527 int unit, 35528 bcm_modem_t modem_id, 35529 uint32 flags, 35530 bcm_lb_modem_packet_config_t *packet_config) 35531 { 35532 return BCM_E_UNAVAIL; 35533 } 35534 35535 int 35536 bcm_tomahawk3_lb_modem_packet_config_set( 35537 int unit, 35538 bcm_modem_t modem_id, 35539 uint32 flags, 35540 bcm_lb_modem_packet_config_t *packet_config) 35541 { 35542 return BCM_E_UNAVAIL; 35543 } 35544 35545 int 35546 bcm_tomahawk3_lb_modem_shaper_get( 35547 int unit, 35548 bcm_modem_t modem_id, 35549 uint32 flags, 35550 bcm_lb_modem_shaper_config_t *shaper) 35551 { 35552 return BCM_E_UNAVAIL; 35553 } 35554 35555 int 35556 bcm_tomahawk3_lb_modem_shaper_set( 35557 int unit, 35558 bcm_modem_t modem_id, 35559 uint32 flags, 35560 bcm_lb_modem_shaper_config_t *shaper) 35561 { 35562 return BCM_E_UNAVAIL; 35563 } 35564 35565 int 35566 bcm_tomahawk3_lb_modem_stat_get( 35567 int unit, 35568 bcm_modem_t modem_id, 35569 bcm_lb_direction_type_t direction, 35570 uint32 flags, 35571 bcm_lb_modem_stat_val_t type, 35572 uint64 *value) 35573 { 35574 return BCM_E_UNAVAIL; 35575 } 35576 35577 int 35578 bcm_tomahawk3_lb_modem_status_get( 35579 int unit, 35580 bcm_modem_t modem_id, 35581 bcm_lb_direction_type_t direction, 35582 uint32 flags, 35583 bcm_lb_modem_status_type_t status_type, 35584 int *value) 35585 { 35586 return BCM_E_UNAVAIL; 35587 } 35588 35589 int 35590 bcm_tomahawk3_lb_modem_to_lbg_map_get( 35591 int unit, 35592 bcm_modem_t modem_id, 35593 bcm_lb_direction_type_t direction, 35594 uint32 flags, 35595 bcm_lbg_t *lbg_id) 35596 { 35597 return BCM_E_UNAVAIL; 35598 } 35599 35600 int 35601 bcm_tomahawk3_lb_modem_to_lbg_map_set( 35602 int unit, 35603 bcm_modem_t modem_id, 35604 bcm_lb_direction_type_t direction, 35605 uint32 flags, 35606 bcm_lbg_t lbg_id) 35607 { 35608 return BCM_E_UNAVAIL; 35609 } 35610 35611 int 35612 bcm_tomahawk3_lb_modem_to_port_map_get( 35613 int unit, 35614 bcm_modem_t modem_id, 35615 uint32 flags, 35616 bcm_gport_t *port) 35617 { 35618 return BCM_E_UNAVAIL; 35619 } 35620 35621 int 35622 bcm_tomahawk3_lb_modem_to_port_map_set( 35623 int unit, 35624 bcm_modem_t modem_id, 35625 uint32 flags, 35626 bcm_gport_t port) 35627 { 35628 return BCM_E_UNAVAIL; 35629 } 35630 35631 int 35632 bcm_tomahawk3_lb_packet_config_get( 35633 int unit, 35634 uint32 flags, 35635 bcm_lb_packet_config_t *packet_config) 35636 { 35637 return BCM_E_UNAVAIL; 35638 } 35639 35640 int 35641 bcm_tomahawk3_lb_packet_config_set( 35642 int unit, 35643 uint32 flags, 35644 bcm_lb_packet_config_t *packet_config) 35645 { 35646 return BCM_E_UNAVAIL; 35647 } 35648 35649 int 35650 bcm_tomahawk3_lb_rx_modem_map_get( 35651 int unit, 35652 bcm_lb_rx_modem_map_index_t *map_index, 35653 uint32 flags, 35654 bcm_lb_rx_modem_map_config_t *map_config) 35655 { 35656 return BCM_E_UNAVAIL; 35657 } 35658 35659 int 35660 bcm_tomahawk3_lb_rx_modem_map_set( 35661 int unit, 35662 bcm_lb_rx_modem_map_index_t *map_index, 35663 uint32 flags, 35664 bcm_lb_rx_modem_map_config_t *map_config) 35665 { 35666 return BCM_E_UNAVAIL; 35667 } 35668 35669 int 35670 bcm_tomahawk3_lb_sequence_number_width_get( 35671 int unit, 35672 bcm_lbg_t lbg_id, 35673 bcm_lb_direction_type_t direction, 35674 uint32 flags, 35675 int *number_width) 35676 { 35677 return BCM_E_UNAVAIL; 35678 } 35679 35680 int 35681 bcm_tomahawk3_lb_sequence_number_width_set( 35682 int unit, 35683 bcm_lbg_t lbg_id, 35684 bcm_lb_direction_type_t direction, 35685 uint32 flags, 35686 int number_width) 35687 { 35688 return BCM_E_UNAVAIL; 35689 } 35690 35691 int 35692 bcm_tomahawk3_lb_stat_get( 35693 int unit, 35694 bcm_lbg_t lbg_id, 35695 bcm_lb_direction_type_t direction, 35696 uint32 flags, 35697 bcm_lb_stat_val_t type, 35698 uint64 *value) 35699 { 35700 return BCM_E_UNAVAIL; 35701 } 35702 35703 int 35704 bcm_tomahawk3_lb_status_get( 35705 int unit, 35706 bcm_lbg_t lbg_id, 35707 bcm_lb_direction_type_t direction, 35708 uint32 flags, 35709 bcm_lb_status_type_t status_type, 35710 int *value) 35711 { 35712 return BCM_E_UNAVAIL; 35713 } 35714 35715 int 35716 bcm_tomahawk3_lb_tc_dp_to_priority_config_get( 35717 int unit, 35718 uint32 flags, 35719 bcm_lb_tc_dp_t *tc_dp, 35720 bcm_lb_pkt_pri_t *pkt_pri) 35721 { 35722 return BCM_E_UNAVAIL; 35723 } 35724 35725 int 35726 bcm_tomahawk3_lb_tc_dp_to_priority_config_set( 35727 int unit, 35728 uint32 flags, 35729 bcm_lb_tc_dp_t *tc_dp, 35730 bcm_lb_pkt_pri_t *pkt_pri) 35731 { 35732 return BCM_E_UNAVAIL; 35733 } 35734 35735 int 35736 bcm_tomahawk3_lb_tx_sched_get( 35737 int unit, 35738 uint32 flags, 35739 int max_lbg_count, 35740 bcm_lb_lbg_weight_t *lbg_weights, 35741 int *lbg_count) 35742 { 35743 return BCM_E_UNAVAIL; 35744 } 35745 35746 int 35747 bcm_tomahawk3_lb_tx_sched_set( 35748 int unit, 35749 uint32 flags, 35750 int lbg_count, 35751 bcm_lb_lbg_weight_t *lbg_weights) 35752 { 35753 return BCM_E_UNAVAIL; 35754 } 35755 35756 #ifdef BCM_TOMAHAWK3_SUPPORT 35757 int 35758 bcm_tomahawk3_link_change( 35759 int unit, 35760 bcm_pbmp_t pbmp) 35761 { 35762 return bcm_esw_link_change(unit, pbmp); 35763 } 35764 #endif 35765 35766 #ifdef BCM_TOMAHAWK3_SUPPORT 35767 int 35768 bcm_tomahawk3_link_wait( 35769 int unit, 35770 bcm_pbmp_t *pbm, 35771 int us) 35772 { 35773 return bcm_esw_link_wait(unit, pbm, us); 35774 } 35775 #endif 35776 35777 #ifdef BCM_TOMAHAWK3_SUPPORT 35778 int 35779 bcm_tomahawk3_linkscan_detach( 35780 int unit) 35781 { 35782 return bcm_esw_linkscan_detach(unit); 35783 } 35784 #endif 35785 35786 #if defined(BROADCOM_DEBUG) 35787 #ifdef BCM_TOMAHAWK3_SUPPORT 35788 int 35789 bcm_tomahawk3_linkscan_dump( 35790 int unit) 35791 { 35792 return bcm_esw_linkscan_dump(unit); 35793 } 35794 #endif 35795 #endif 35796 35797 #ifdef BCM_TOMAHAWK3_SUPPORT 35798 int 35799 bcm_tomahawk3_linkscan_enable_get( 35800 int unit, 35801 int *us) 35802 { 35803 return bcm_esw_linkscan_enable_get(unit, us); 35804 } 35805 #endif 35806 35807 #ifdef BCM_TOMAHAWK3_SUPPORT 35808 int 35809 bcm_tomahawk3_linkscan_enable_port_get( 35810 int unit, 35811 bcm_port_t port) 35812 { 35813 return bcm_esw_linkscan_enable_port_get(unit, port); 35814 } 35815 #endif 35816 35817 #ifdef BCM_TOMAHAWK3_SUPPORT 35818 int 35819 bcm_tomahawk3_linkscan_enable_set( 35820 int unit, 35821 int us) 35822 { 35823 return bcm_esw_linkscan_enable_set(unit, us); 35824 } 35825 #endif 35826 35827 #ifdef BCM_TOMAHAWK3_SUPPORT 35828 int 35829 bcm_tomahawk3_linkscan_init( 35830 int unit) 35831 { 35832 return bcm_esw_linkscan_init(unit); 35833 } 35834 #endif 35835 35836 #ifdef BCM_TOMAHAWK3_SUPPORT 35837 int 35838 bcm_tomahawk3_linkscan_mode_get( 35839 int unit, 35840 bcm_port_t port, 35841 int *mode) 35842 { 35843 return bcm_esw_linkscan_mode_get(unit, port, mode); 35844 } 35845 #endif 35846 35847 #ifdef BCM_TOMAHAWK3_SUPPORT 35848 int 35849 bcm_tomahawk3_linkscan_mode_set( 35850 int unit, 35851 bcm_port_t port, 35852 int mode) 35853 { 35854 return bcm_esw_linkscan_mode_set(unit, port, mode); 35855 } 35856 #endif 35857 35858 #ifdef BCM_TOMAHAWK3_SUPPORT 35859 int 35860 bcm_tomahawk3_linkscan_mode_set_pbm( 35861 int unit, 35862 bcm_pbmp_t pbm, 35863 int mode) 35864 { 35865 return bcm_esw_linkscan_mode_set_pbm(unit, pbm, mode); 35866 } 35867 #endif 35868 35869 #ifdef BCM_TOMAHAWK3_SUPPORT 35870 int 35871 bcm_tomahawk3_linkscan_port_register( 35872 int unit, 35873 bcm_port_t port, 35874 bcm_linkscan_port_handler_t f) 35875 { 35876 return bcm_esw_linkscan_port_register(unit, port, f); 35877 } 35878 #endif 35879 35880 #ifdef BCM_TOMAHAWK3_SUPPORT 35881 int 35882 bcm_tomahawk3_linkscan_port_unregister( 35883 int unit, 35884 bcm_port_t port, 35885 bcm_linkscan_port_handler_t f) 35886 { 35887 return bcm_esw_linkscan_port_unregister(unit, port, f); 35888 } 35889 #endif 35890 35891 #ifdef BCM_TOMAHAWK3_SUPPORT 35892 int 35893 bcm_tomahawk3_linkscan_register( 35894 int unit, 35895 bcm_linkscan_handler_t f) 35896 { 35897 return bcm_esw_linkscan_register(unit, f); 35898 } 35899 #endif 35900 35901 #ifdef BCM_TOMAHAWK3_SUPPORT 35902 int 35903 bcm_tomahawk3_linkscan_trigger_event_get( 35904 int unit, 35905 bcm_port_t port, 35906 uint32 flags, 35907 bcm_linkscan_trigger_event_t trigger_event, 35908 int *enable) 35909 { 35910 return bcm_esw_linkscan_trigger_event_get(unit, port, flags, trigger_event, enable); 35911 } 35912 #endif 35913 35914 #ifdef BCM_TOMAHAWK3_SUPPORT 35915 int 35916 bcm_tomahawk3_linkscan_trigger_event_set( 35917 int unit, 35918 bcm_port_t port, 35919 uint32 flags, 35920 bcm_linkscan_trigger_event_t trigger_event, 35921 int enable) 35922 { 35923 return bcm_esw_linkscan_trigger_event_set(unit, port, flags, trigger_event, enable); 35924 } 35925 #endif 35926 35927 #ifdef BCM_TOMAHAWK3_SUPPORT 35928 int 35929 bcm_tomahawk3_linkscan_unregister( 35930 int unit, 35931 bcm_linkscan_handler_t f) 35932 { 35933 return bcm_esw_linkscan_unregister(unit, f); 35934 } 35935 #endif 35936 35937 #ifdef BCM_TOMAHAWK3_SUPPORT 35938 int 35939 bcm_tomahawk3_linkscan_update( 35940 int unit, 35941 bcm_pbmp_t pbm) 35942 { 35943 return bcm_esw_linkscan_update(unit, pbm); 35944 } 35945 #endif 35946 35947 #if defined(INCLUDE_MACSEC) 35948 #ifdef BCM_TOMAHAWK3_SUPPORT 35949 int 35950 bcm_tomahawk3_macsec_event_enable_get( 35951 int unit, 35952 bcm_macsec_event_t t, 35953 int *enable) 35954 { 35955 return bcm_common_macsec_event_enable_get(unit, t, enable); 35956 } 35957 #endif 35958 #endif 35959 35960 #if defined(INCLUDE_MACSEC) 35961 #ifdef BCM_TOMAHAWK3_SUPPORT 35962 int 35963 bcm_tomahawk3_macsec_event_enable_set( 35964 int unit, 35965 bcm_macsec_event_t t, 35966 int enable) 35967 { 35968 return bcm_common_macsec_event_enable_set(unit, t, enable); 35969 } 35970 #endif 35971 #endif 35972 35973 #if defined(INCLUDE_MACSEC) 35974 #ifdef BCM_TOMAHAWK3_SUPPORT 35975 int 35976 bcm_tomahawk3_macsec_event_register( 35977 int unit, 35978 bcm_macsec_event_cb cb, 35979 void *user_data) 35980 { 35981 return bcm_common_macsec_event_register(unit, cb, user_data); 35982 } 35983 #endif 35984 #endif 35985 35986 #if defined(INCLUDE_MACSEC) 35987 #ifdef BCM_TOMAHAWK3_SUPPORT 35988 int 35989 bcm_tomahawk3_macsec_event_unregister( 35990 int unit, 35991 bcm_macsec_event_cb cb) 35992 { 35993 return bcm_common_macsec_event_unregister(unit, cb); 35994 } 35995 #endif 35996 #endif 35997 35998 #if defined(INCLUDE_MACSEC) 35999 #ifdef BCM_TOMAHAWK3_SUPPORT 36000 int 36001 bcm_tomahawk3_macsec_flow_create( 36002 int unit, 36003 bcm_port_t port, 36004 uint32 flags, 36005 bcm_macsec_flow_match_t *flow, 36006 bcm_macsec_flow_action_t *action, 36007 int *flowId) 36008 { 36009 return bcm_common_macsec_flow_create(unit, port, flags, flow, action, flowId); 36010 } 36011 #endif 36012 #endif 36013 36014 #if defined(INCLUDE_MACSEC) 36015 #ifdef BCM_TOMAHAWK3_SUPPORT 36016 int 36017 bcm_tomahawk3_macsec_flow_destroy( 36018 int unit, 36019 bcm_port_t port, 36020 int flowId) 36021 { 36022 return bcm_common_macsec_flow_destroy(unit, port, flowId); 36023 } 36024 #endif 36025 #endif 36026 36027 #if defined(INCLUDE_MACSEC) 36028 #ifdef BCM_TOMAHAWK3_SUPPORT 36029 int 36030 bcm_tomahawk3_macsec_flow_get( 36031 int unit, 36032 bcm_port_t port, 36033 int flowId, 36034 bcm_macsec_flow_match_t *flow, 36035 bcm_macsec_flow_action_t *a) 36036 { 36037 return bcm_common_macsec_flow_get(unit, port, flowId, flow, a); 36038 } 36039 #endif 36040 #endif 36041 36042 #if defined(INCLUDE_MACSEC) 36043 #ifdef BCM_TOMAHAWK3_SUPPORT 36044 int 36045 bcm_tomahawk3_macsec_flow_traverse( 36046 int unit, 36047 bcm_port_t port, 36048 bcm_macsec_flow_traverse_cb callbk, 36049 void *user_data) 36050 { 36051 return bcm_common_macsec_flow_traverse(unit, port, callbk, user_data); 36052 } 36053 #endif 36054 #endif 36055 36056 #if defined(INCLUDE_MACSEC) 36057 #ifdef BCM_TOMAHAWK3_SUPPORT 36058 int 36059 bcm_tomahawk3_macsec_port_capability_get( 36060 int unit, 36061 bcm_port_t port, 36062 bcm_macsec_port_capability_t *cap) 36063 { 36064 return bcm_common_macsec_port_capability_get(unit, port, cap); 36065 } 36066 #endif 36067 #endif 36068 36069 #if defined(INCLUDE_MACSEC) 36070 #ifdef BCM_TOMAHAWK3_SUPPORT 36071 int 36072 bcm_tomahawk3_macsec_port_config_get( 36073 int unit, 36074 bcm_port_t port, 36075 bcm_macsec_port_config_t *cfg) 36076 { 36077 return bcm_common_macsec_port_config_get(unit, port, cfg); 36078 } 36079 #endif 36080 #endif 36081 36082 #if defined(INCLUDE_MACSEC) 36083 #ifdef BCM_TOMAHAWK3_SUPPORT 36084 int 36085 bcm_tomahawk3_macsec_port_config_set( 36086 int unit, 36087 bcm_port_t port, 36088 bcm_macsec_port_config_t *cfg) 36089 { 36090 return bcm_common_macsec_port_config_set(unit, port, cfg); 36091 } 36092 #endif 36093 #endif 36094 36095 #if defined(INCLUDE_MACSEC) 36096 #ifdef BCM_TOMAHAWK3_SUPPORT 36097 int 36098 bcm_tomahawk3_macsec_port_traverse( 36099 int unit, 36100 bcm_macsec_port_traverse_cb callbk, 36101 void *user_data) 36102 { 36103 return bcm_common_macsec_port_traverse(unit, callbk, user_data); 36104 } 36105 #endif 36106 #endif 36107 36108 #if defined(INCLUDE_MACSEC) 36109 #ifdef BCM_TOMAHAWK3_SUPPORT 36110 int 36111 bcm_tomahawk3_macsec_secure_assoc_create( 36112 int unit, 36113 bcm_port_t port, 36114 uint32 flags, 36115 int chanId, 36116 bcm_macsec_secure_assoc_t *assoc, 36117 int *assocId) 36118 { 36119 return bcm_common_macsec_secure_assoc_create(unit, port, flags, chanId, assoc, assocId); 36120 } 36121 #endif 36122 #endif 36123 36124 #if defined(INCLUDE_MACSEC) 36125 #ifdef BCM_TOMAHAWK3_SUPPORT 36126 int 36127 bcm_tomahawk3_macsec_secure_assoc_destroy( 36128 int unit, 36129 bcm_port_t port, 36130 int assocId) 36131 { 36132 return bcm_common_macsec_secure_assoc_destroy(unit, port, assocId); 36133 } 36134 #endif 36135 #endif 36136 36137 #if defined(INCLUDE_MACSEC) 36138 #ifdef BCM_TOMAHAWK3_SUPPORT 36139 int 36140 bcm_tomahawk3_macsec_secure_assoc_get( 36141 int unit, 36142 bcm_port_t port, 36143 int assocId, 36144 bcm_macsec_secure_assoc_t *assoc, 36145 int *chanId) 36146 { 36147 return bcm_common_macsec_secure_assoc_get(unit, port, assocId, assoc, chanId); 36148 } 36149 #endif 36150 #endif 36151 36152 #if defined(INCLUDE_MACSEC) 36153 #ifdef BCM_TOMAHAWK3_SUPPORT 36154 int 36155 bcm_tomahawk3_macsec_secure_assoc_traverse( 36156 int unit, 36157 bcm_port_t port, 36158 int chanId, 36159 bcm_macsec_secure_assoc_traverse_cb cb, 36160 void *user_data) 36161 { 36162 return bcm_common_macsec_secure_assoc_traverse(unit, port, chanId, cb, user_data); 36163 } 36164 #endif 36165 #endif 36166 36167 #if defined(INCLUDE_MACSEC) 36168 #ifdef BCM_TOMAHAWK3_SUPPORT 36169 int 36170 bcm_tomahawk3_macsec_secure_chan_create( 36171 int unit, 36172 bcm_port_t port, 36173 uint32 flags, 36174 bcm_macsec_secure_chan_t *chan, 36175 int *chanId) 36176 { 36177 return bcm_common_macsec_secure_chan_create(unit, port, flags, chan, chanId); 36178 } 36179 #endif 36180 #endif 36181 36182 #if defined(INCLUDE_MACSEC) 36183 #ifdef BCM_TOMAHAWK3_SUPPORT 36184 int 36185 bcm_tomahawk3_macsec_secure_chan_destroy( 36186 int unit, 36187 bcm_port_t port, 36188 int chanId) 36189 { 36190 return bcm_common_macsec_secure_chan_destroy(unit, port, chanId); 36191 } 36192 #endif 36193 #endif 36194 36195 #if defined(INCLUDE_MACSEC) 36196 #ifdef BCM_TOMAHAWK3_SUPPORT 36197 int 36198 bcm_tomahawk3_macsec_secure_chan_get( 36199 int unit, 36200 bcm_port_t port, 36201 int chanId, 36202 bcm_macsec_secure_chan_t *chan) 36203 { 36204 return bcm_common_macsec_secure_chan_get(unit, port, chanId, chan); 36205 } 36206 #endif 36207 #endif 36208 36209 #if defined(INCLUDE_MACSEC) 36210 #ifdef BCM_TOMAHAWK3_SUPPORT 36211 int 36212 bcm_tomahawk3_macsec_secure_chan_traverse( 36213 int unit, 36214 bcm_port_t port, 36215 bcm_macsec_chan_traverse_cb calback, 36216 void *user_data) 36217 { 36218 return bcm_common_macsec_secure_chan_traverse(unit, port, calback, user_data); 36219 } 36220 #endif 36221 #endif 36222 36223 #if defined(INCLUDE_MACSEC) 36224 #ifdef BCM_TOMAHAWK3_SUPPORT 36225 int 36226 bcm_tomahawk3_macsec_stat_clear( 36227 int unit, 36228 bcm_port_t port) 36229 { 36230 return bcm_common_macsec_stat_clear(unit, port); 36231 } 36232 #endif 36233 #endif 36234 36235 #if defined(INCLUDE_MACSEC) 36236 #ifdef BCM_TOMAHAWK3_SUPPORT 36237 int 36238 bcm_tomahawk3_macsec_stat_get( 36239 int unit, 36240 bcm_port_t port, 36241 bcm_macsec_stat_t stat, 36242 int chanId, 36243 int assocId, 36244 uint64 *val) 36245 { 36246 return bcm_common_macsec_stat_get(unit, port, stat, chanId, assocId, val); 36247 } 36248 #endif 36249 #endif 36250 36251 #if defined(INCLUDE_MACSEC) 36252 #ifdef BCM_TOMAHAWK3_SUPPORT 36253 int 36254 bcm_tomahawk3_macsec_stat_get32( 36255 int unit, 36256 bcm_port_t port, 36257 bcm_macsec_stat_t stat, 36258 int chanId, 36259 int assocId, 36260 uint32 *val) 36261 { 36262 return bcm_common_macsec_stat_get32(unit, port, stat, chanId, assocId, val); 36263 } 36264 #endif 36265 #endif 36266 36267 #if defined(INCLUDE_MACSEC) 36268 #ifdef BCM_TOMAHAWK3_SUPPORT 36269 int 36270 bcm_tomahawk3_macsec_stat_set( 36271 int unit, 36272 bcm_port_t port, 36273 bcm_macsec_stat_t stat, 36274 int chanId, 36275 int assocId, 36276 uint64 val) 36277 { 36278 return bcm_common_macsec_stat_set(unit, port, stat, chanId, assocId, val); 36279 } 36280 #endif 36281 #endif 36282 36283 #if defined(INCLUDE_MACSEC) 36284 #ifdef BCM_TOMAHAWK3_SUPPORT 36285 int 36286 bcm_tomahawk3_macsec_stat_set32( 36287 int unit, 36288 bcm_port_t port, 36289 bcm_macsec_stat_t stat, 36290 int chanId, 36291 int assocId, 36292 uint32 val) 36293 { 36294 return bcm_common_macsec_stat_set32(unit, port, stat, chanId, assocId, val); 36295 } 36296 #endif 36297 #endif 36298 36299 #ifdef BCM_TOMAHAWK3_SUPPORT 36300 int 36301 bcm_tomahawk3_mcast_addr_add( 36302 int unit, 36303 bcm_mcast_addr_t *mcaddr) 36304 { 36305 return bcm_esw_mcast_addr_add(unit, mcaddr); 36306 } 36307 #endif 36308 36309 #ifdef BCM_TOMAHAWK3_SUPPORT 36310 int 36311 bcm_tomahawk3_mcast_addr_add_w_l2mcindex( 36312 int unit, 36313 bcm_mcast_addr_t *mcaddr) 36314 { 36315 return bcm_esw_mcast_addr_add_w_l2mcindex(unit, mcaddr); 36316 } 36317 #endif 36318 36319 #ifdef BCM_TOMAHAWK3_SUPPORT 36320 int 36321 bcm_tomahawk3_mcast_addr_remove( 36322 int unit, 36323 bcm_mac_t mac, 36324 bcm_vlan_t vid) 36325 { 36326 return bcm_esw_mcast_addr_remove(unit, mac, vid); 36327 } 36328 #endif 36329 36330 #ifdef BCM_TOMAHAWK3_SUPPORT 36331 int 36332 bcm_tomahawk3_mcast_addr_remove_w_l2mcindex( 36333 int unit, 36334 bcm_mcast_addr_t *mcaddr) 36335 { 36336 return bcm_esw_mcast_addr_remove_w_l2mcindex(unit, mcaddr); 36337 } 36338 #endif 36339 36340 #ifdef BCM_TOMAHAWK3_SUPPORT 36341 int 36342 bcm_tomahawk3_mcast_bitmap_del( 36343 int unit, 36344 int mc_idx, 36345 bcm_port_t in_port, 36346 bcm_pbmp_t pbmp) 36347 { 36348 return bcm_esw_mcast_bitmap_del(unit, mc_idx, in_port, pbmp); 36349 } 36350 #endif 36351 36352 #ifdef BCM_TOMAHAWK3_SUPPORT 36353 int 36354 bcm_tomahawk3_mcast_bitmap_get( 36355 int unit, 36356 int mc_idx, 36357 bcm_port_t in_port, 36358 bcm_pbmp_t *pbmp) 36359 { 36360 return bcm_esw_mcast_bitmap_get(unit, mc_idx, in_port, pbmp); 36361 } 36362 #endif 36363 36364 #ifdef BCM_TOMAHAWK3_SUPPORT 36365 int 36366 bcm_tomahawk3_mcast_bitmap_max_get( 36367 int unit, 36368 int *max_index) 36369 { 36370 return bcm_esw_mcast_bitmap_max_get(unit, max_index); 36371 } 36372 #endif 36373 36374 #ifdef BCM_TOMAHAWK3_SUPPORT 36375 int 36376 bcm_tomahawk3_mcast_bitmap_set( 36377 int unit, 36378 int mc_idx, 36379 bcm_port_t in_port, 36380 bcm_pbmp_t pbmp) 36381 { 36382 return bcm_esw_mcast_bitmap_set(unit, mc_idx, in_port, pbmp); 36383 } 36384 #endif 36385 36386 #ifdef BCM_TOMAHAWK3_SUPPORT 36387 int 36388 bcm_tomahawk3_mcast_init( 36389 int unit) 36390 { 36391 return bcm_esw_mcast_init(unit); 36392 } 36393 #endif 36394 36395 #ifdef BCM_TOMAHAWK3_SUPPORT 36396 int 36397 bcm_tomahawk3_mcast_join( 36398 int unit, 36399 bcm_mac_t mcMacAddr, 36400 bcm_vlan_t vlanId, 36401 int srcPort, 36402 bcm_mcast_addr_t *mcaddr, 36403 bcm_pbmp_t *allRouterBmp) 36404 { 36405 return bcm_esw_mcast_join(unit, mcMacAddr, vlanId, srcPort, mcaddr, allRouterBmp); 36406 } 36407 #endif 36408 36409 #ifdef BCM_TOMAHAWK3_SUPPORT 36410 int 36411 bcm_tomahawk3_mcast_leave( 36412 int unit, 36413 bcm_mac_t mcMacAddr, 36414 bcm_vlan_t vlanId, 36415 int srcPort) 36416 { 36417 return bcm_esw_mcast_leave(unit, mcMacAddr, vlanId, srcPort); 36418 } 36419 #endif 36420 36421 #ifdef BCM_TOMAHAWK3_SUPPORT 36422 int 36423 bcm_tomahawk3_mcast_port_add( 36424 int unit, 36425 bcm_mcast_addr_t *mcaddr) 36426 { 36427 return bcm_esw_mcast_port_add(unit, mcaddr); 36428 } 36429 #endif 36430 36431 #ifdef BCM_TOMAHAWK3_SUPPORT 36432 int 36433 bcm_tomahawk3_mcast_port_get( 36434 int unit, 36435 bcm_mac_t mac, 36436 bcm_vlan_t vid, 36437 bcm_mcast_addr_t *mcaddr) 36438 { 36439 return bcm_esw_mcast_port_get(unit, mac, vid, mcaddr); 36440 } 36441 #endif 36442 36443 #ifdef BCM_TOMAHAWK3_SUPPORT 36444 int 36445 bcm_tomahawk3_mcast_port_remove( 36446 int unit, 36447 bcm_mcast_addr_t *mcaddr) 36448 { 36449 return bcm_esw_mcast_port_remove(unit, mcaddr); 36450 } 36451 #endif 36452 36453 #if defined(INCLUDE_L3) 36454 #ifdef BCM_TOMAHAWK3_SUPPORT 36455 int 36456 bcm_tomahawk3_mim_detach( 36457 int unit) 36458 { 36459 return bcm_esw_mim_detach(unit); 36460 } 36461 #endif 36462 #endif 36463 36464 #if defined(INCLUDE_L3) 36465 #ifdef BCM_TOMAHAWK3_SUPPORT 36466 int 36467 bcm_tomahawk3_mim_init( 36468 int unit) 36469 { 36470 return bcm_esw_mim_init(unit); 36471 } 36472 #endif 36473 #endif 36474 36475 #if defined(INCLUDE_L3) 36476 #ifdef BCM_TOMAHAWK3_SUPPORT 36477 int 36478 bcm_tomahawk3_mim_lookup_id_stat_attach( 36479 int unit, 36480 int lookup_id, 36481 uint32 stat_counter_id) 36482 { 36483 return bcm_esw_mim_lookup_id_stat_attach(unit, lookup_id, stat_counter_id); 36484 } 36485 #endif 36486 #endif 36487 36488 #if defined(INCLUDE_L3) 36489 #ifdef BCM_TOMAHAWK3_SUPPORT 36490 int 36491 bcm_tomahawk3_mim_lookup_id_stat_counter_get( 36492 int unit, 36493 int lookup_id, 36494 bcm_mim_stat_t stat, 36495 uint32 num_entries, 36496 uint32 *counter_indexes, 36497 bcm_stat_value_t *counter_values) 36498 { 36499 return bcm_esw_mim_lookup_id_stat_counter_get(unit, lookup_id, stat, num_entries, counter_indexes, counter_values); 36500 } 36501 #endif 36502 #endif 36503 36504 #if defined(INCLUDE_L3) 36505 #ifdef BCM_TOMAHAWK3_SUPPORT 36506 int 36507 bcm_tomahawk3_mim_lookup_id_stat_counter_set( 36508 int unit, 36509 int lookup_id, 36510 bcm_mim_stat_t stat, 36511 uint32 num_entries, 36512 uint32 *counter_indexes, 36513 bcm_stat_value_t *counter_values) 36514 { 36515 return bcm_esw_mim_lookup_id_stat_counter_set(unit, lookup_id, stat, num_entries, counter_indexes, counter_values); 36516 } 36517 #endif 36518 #endif 36519 36520 #if defined(INCLUDE_L3) 36521 #ifdef BCM_TOMAHAWK3_SUPPORT 36522 int 36523 bcm_tomahawk3_mim_lookup_id_stat_counter_sync_get( 36524 int unit, 36525 int lookup_id, 36526 bcm_mim_stat_t stat, 36527 uint32 num_entries, 36528 uint32 *counter_indexes, 36529 bcm_stat_value_t *counter_values) 36530 { 36531 return bcm_esw_mim_lookup_id_stat_counter_sync_get(unit, lookup_id, stat, num_entries, counter_indexes, counter_values); 36532 } 36533 #endif 36534 #endif 36535 36536 #if defined(INCLUDE_L3) 36537 #ifdef BCM_TOMAHAWK3_SUPPORT 36538 int 36539 bcm_tomahawk3_mim_lookup_id_stat_detach( 36540 int unit, 36541 int lookup_id) 36542 { 36543 return bcm_esw_mim_lookup_id_stat_detach(unit, lookup_id); 36544 } 36545 #endif 36546 #endif 36547 36548 #if defined(INCLUDE_L3) 36549 #ifdef BCM_TOMAHAWK3_SUPPORT 36550 int 36551 bcm_tomahawk3_mim_lookup_id_stat_id_get( 36552 int unit, 36553 int lookup_id, 36554 bcm_mim_stat_t stat, 36555 uint32 *stat_counter_id) 36556 { 36557 return bcm_esw_mim_lookup_id_stat_id_get(unit, lookup_id, stat, stat_counter_id); 36558 } 36559 #endif 36560 #endif 36561 36562 #if defined(INCLUDE_L3) 36563 #ifdef BCM_TOMAHAWK3_SUPPORT 36564 int 36565 bcm_tomahawk3_mim_port_add( 36566 int unit, 36567 bcm_mim_vpn_t vpn, 36568 bcm_mim_port_t *mim_port) 36569 { 36570 return bcm_esw_mim_port_add(unit, vpn, mim_port); 36571 } 36572 #endif 36573 #endif 36574 36575 #if defined(INCLUDE_L3) 36576 #ifdef BCM_TOMAHAWK3_SUPPORT 36577 int 36578 bcm_tomahawk3_mim_port_delete( 36579 int unit, 36580 bcm_mim_vpn_t vpn, 36581 bcm_gport_t mim_port_id) 36582 { 36583 return bcm_esw_mim_port_delete(unit, vpn, mim_port_id); 36584 } 36585 #endif 36586 #endif 36587 36588 #if defined(INCLUDE_L3) 36589 #ifdef BCM_TOMAHAWK3_SUPPORT 36590 int 36591 bcm_tomahawk3_mim_port_delete_all( 36592 int unit, 36593 bcm_mim_vpn_t vpn) 36594 { 36595 return bcm_esw_mim_port_delete_all(unit, vpn); 36596 } 36597 #endif 36598 #endif 36599 36600 #if defined(INCLUDE_L3) 36601 #ifdef BCM_TOMAHAWK3_SUPPORT 36602 int 36603 bcm_tomahawk3_mim_port_get( 36604 int unit, 36605 bcm_mim_vpn_t vpn, 36606 bcm_mim_port_t *mim_port) 36607 { 36608 return bcm_esw_mim_port_get(unit, vpn, mim_port); 36609 } 36610 #endif 36611 #endif 36612 36613 #if defined(INCLUDE_L3) 36614 #ifdef BCM_TOMAHAWK3_SUPPORT 36615 int 36616 bcm_tomahawk3_mim_port_get_all( 36617 int unit, 36618 bcm_mim_vpn_t vpn, 36619 int port_max, 36620 bcm_mim_port_t *port_array, 36621 int *port_count) 36622 { 36623 return bcm_esw_mim_port_get_all(unit, vpn, port_max, port_array, port_count); 36624 } 36625 #endif 36626 #endif 36627 36628 #if defined(INCLUDE_L3) 36629 #ifdef BCM_TOMAHAWK3_SUPPORT 36630 int 36631 bcm_tomahawk3_mim_vpn_create( 36632 int unit, 36633 bcm_mim_vpn_config_t *info) 36634 { 36635 return bcm_esw_mim_vpn_create(unit, info); 36636 } 36637 #endif 36638 #endif 36639 36640 #if defined(INCLUDE_L3) 36641 #ifdef BCM_TOMAHAWK3_SUPPORT 36642 int 36643 bcm_tomahawk3_mim_vpn_destroy( 36644 int unit, 36645 bcm_mim_vpn_t vpn) 36646 { 36647 return bcm_esw_mim_vpn_destroy(unit, vpn); 36648 } 36649 #endif 36650 #endif 36651 36652 #if defined(INCLUDE_L3) 36653 #ifdef BCM_TOMAHAWK3_SUPPORT 36654 int 36655 bcm_tomahawk3_mim_vpn_destroy_all( 36656 int unit) 36657 { 36658 return bcm_esw_mim_vpn_destroy_all(unit); 36659 } 36660 #endif 36661 #endif 36662 36663 #if defined(INCLUDE_L3) 36664 #ifdef BCM_TOMAHAWK3_SUPPORT 36665 int 36666 bcm_tomahawk3_mim_vpn_get( 36667 int unit, 36668 bcm_mim_vpn_t vpn, 36669 bcm_mim_vpn_config_t *info) 36670 { 36671 return bcm_esw_mim_vpn_get(unit, vpn, info); 36672 } 36673 #endif 36674 #endif 36675 36676 #if defined(INCLUDE_L3) 36677 #ifdef BCM_TOMAHAWK3_SUPPORT 36678 int 36679 bcm_tomahawk3_mim_vpn_stat_attach( 36680 int unit, 36681 bcm_mim_vpn_t vpn, 36682 uint32 stat_counter_id) 36683 { 36684 return bcm_esw_mim_vpn_stat_attach(unit, vpn, stat_counter_id); 36685 } 36686 #endif 36687 #endif 36688 36689 #if defined(INCLUDE_L3) 36690 #ifdef BCM_TOMAHAWK3_SUPPORT 36691 int 36692 bcm_tomahawk3_mim_vpn_stat_counter_get( 36693 int unit, 36694 bcm_mim_vpn_t vpn, 36695 bcm_mim_stat_t stat, 36696 uint32 num_entries, 36697 uint32 *counter_indexes, 36698 bcm_stat_value_t *counter_values) 36699 { 36700 return bcm_esw_mim_vpn_stat_counter_get(unit, vpn, stat, num_entries, counter_indexes, counter_values); 36701 } 36702 #endif 36703 #endif 36704 36705 #if defined(INCLUDE_L3) 36706 #ifdef BCM_TOMAHAWK3_SUPPORT 36707 int 36708 bcm_tomahawk3_mim_vpn_stat_counter_set( 36709 int unit, 36710 bcm_mim_vpn_t vpn, 36711 bcm_mim_stat_t stat, 36712 uint32 num_entries, 36713 uint32 *counter_indexes, 36714 bcm_stat_value_t *counter_values) 36715 { 36716 return bcm_esw_mim_vpn_stat_counter_set(unit, vpn, stat, num_entries, counter_indexes, counter_values); 36717 } 36718 #endif 36719 #endif 36720 36721 #if defined(INCLUDE_L3) 36722 #ifdef BCM_TOMAHAWK3_SUPPORT 36723 int 36724 bcm_tomahawk3_mim_vpn_stat_counter_sync_get( 36725 int unit, 36726 bcm_mim_vpn_t vpn, 36727 bcm_mim_stat_t stat, 36728 uint32 num_entries, 36729 uint32 *counter_indexes, 36730 bcm_stat_value_t *counter_values) 36731 { 36732 return bcm_esw_mim_vpn_stat_counter_sync_get(unit, vpn, stat, num_entries, counter_indexes, counter_values); 36733 } 36734 #endif 36735 #endif 36736 36737 #if defined(INCLUDE_L3) 36738 #ifdef BCM_TOMAHAWK3_SUPPORT 36739 int 36740 bcm_tomahawk3_mim_vpn_stat_detach( 36741 int unit, 36742 bcm_mim_vpn_t vpn) 36743 { 36744 return bcm_esw_mim_vpn_stat_detach(unit, vpn); 36745 } 36746 #endif 36747 #endif 36748 36749 #if defined(INCLUDE_L3) 36750 #ifdef BCM_TOMAHAWK3_SUPPORT 36751 int 36752 bcm_tomahawk3_mim_vpn_stat_id_get( 36753 int unit, 36754 bcm_mim_vpn_t vpn, 36755 bcm_mim_stat_t stat, 36756 uint32 *stat_counter_id) 36757 { 36758 return bcm_esw_mim_vpn_stat_id_get(unit, vpn, stat, stat_counter_id); 36759 } 36760 #endif 36761 #endif 36762 36763 #if defined(INCLUDE_L3) 36764 #ifdef BCM_TOMAHAWK3_SUPPORT 36765 int 36766 bcm_tomahawk3_mim_vpn_traverse( 36767 int unit, 36768 bcm_mim_vpn_traverse_cb cb, 36769 void *user_data) 36770 { 36771 return bcm_esw_mim_vpn_traverse(unit, cb, user_data); 36772 } 36773 #endif 36774 #endif 36775 36776 #ifdef BCM_TOMAHAWK3_SUPPORT 36777 int 36778 bcm_tomahawk3_mirror_destination_count_command_get( 36779 int unit, 36780 bcm_core_t core_id, 36781 bcm_gport_t mirror_dest_id, 36782 int counter_cmd_id, 36783 uint32 flags, 36784 bcm_mirror_profile_cmd_count_t *mirror_count_info) 36785 { 36786 return bcm_esw_mirror_destination_count_command_get(unit, core_id, mirror_dest_id, counter_cmd_id, flags, mirror_count_info); 36787 } 36788 #endif 36789 36790 #ifdef BCM_TOMAHAWK3_SUPPORT 36791 int 36792 bcm_tomahawk3_mirror_destination_count_command_set( 36793 int unit, 36794 bcm_core_t core_id, 36795 bcm_gport_t mirror_dest_id, 36796 int counter_cmd_id, 36797 uint32 flags, 36798 bcm_mirror_profile_cmd_count_t *mirror_count_info) 36799 { 36800 return bcm_esw_mirror_destination_count_command_set(unit, core_id, mirror_dest_id, counter_cmd_id, flags, mirror_count_info); 36801 } 36802 #endif 36803 36804 #ifdef BCM_TOMAHAWK3_SUPPORT 36805 int 36806 bcm_tomahawk3_mirror_destination_create( 36807 int unit, 36808 bcm_mirror_destination_t *mirror_dest) 36809 { 36810 return bcm_esw_mirror_destination_create(unit, mirror_dest); 36811 } 36812 #endif 36813 36814 #ifdef BCM_TOMAHAWK3_SUPPORT 36815 int 36816 bcm_tomahawk3_mirror_destination_destroy( 36817 int unit, 36818 bcm_gport_t mirror_dest_id) 36819 { 36820 return bcm_esw_mirror_destination_destroy(unit, mirror_dest_id); 36821 } 36822 #endif 36823 36824 #ifdef BCM_TOMAHAWK3_SUPPORT 36825 int 36826 bcm_tomahawk3_mirror_destination_get( 36827 int unit, 36828 bcm_gport_t mirror_dest_id, 36829 bcm_mirror_destination_t *mirror_dest) 36830 { 36831 return bcm_esw_mirror_destination_get(unit, mirror_dest_id, mirror_dest); 36832 } 36833 #endif 36834 36835 #ifdef BCM_TOMAHAWK3_SUPPORT 36836 int 36837 bcm_tomahawk3_mirror_destination_traverse( 36838 int unit, 36839 bcm_mirror_destination_traverse_cb cb, 36840 void *user_data) 36841 { 36842 return bcm_esw_mirror_destination_traverse(unit, cb, user_data); 36843 } 36844 #endif 36845 36846 #ifdef BCM_TOMAHAWK3_SUPPORT 36847 int 36848 bcm_tomahawk3_mirror_egress_get( 36849 int unit, 36850 bcm_port_t port, 36851 int *val) 36852 { 36853 return bcm_esw_mirror_egress_get(unit, port, val); 36854 } 36855 #endif 36856 36857 #ifdef BCM_TOMAHAWK3_SUPPORT 36858 int 36859 bcm_tomahawk3_mirror_egress_set( 36860 int unit, 36861 bcm_port_t port, 36862 int val) 36863 { 36864 return bcm_esw_mirror_egress_set(unit, port, val); 36865 } 36866 #endif 36867 36868 int 36869 bcm_tomahawk3_mirror_header_info_get( 36870 int unit, 36871 bcm_gport_t mirror_dest_id, 36872 uint32 *flags, 36873 bcm_mirror_header_info_t *mirror_header_info) 36874 { 36875 return BCM_E_UNAVAIL; 36876 } 36877 36878 int 36879 bcm_tomahawk3_mirror_header_info_set( 36880 int unit, 36881 uint32 flags, 36882 bcm_gport_t mirror_dest_id, 36883 bcm_mirror_header_info_t *mirror_header_info) 36884 { 36885 return BCM_E_UNAVAIL; 36886 } 36887 36888 #ifdef BCM_TOMAHAWK3_SUPPORT 36889 int 36890 bcm_tomahawk3_mirror_ingress_get( 36891 int unit, 36892 bcm_port_t port, 36893 int *val) 36894 { 36895 return bcm_esw_mirror_ingress_get(unit, port, val); 36896 } 36897 #endif 36898 36899 #ifdef BCM_TOMAHAWK3_SUPPORT 36900 int 36901 bcm_tomahawk3_mirror_ingress_set( 36902 int unit, 36903 bcm_port_t port, 36904 int val) 36905 { 36906 return bcm_esw_mirror_ingress_set(unit, port, val); 36907 } 36908 #endif 36909 36910 #ifdef BCM_TOMAHAWK3_SUPPORT 36911 int 36912 bcm_tomahawk3_mirror_init( 36913 int unit) 36914 { 36915 return bcm_esw_mirror_init(unit); 36916 } 36917 #endif 36918 36919 #ifdef BCM_TOMAHAWK3_SUPPORT 36920 int 36921 bcm_tomahawk3_mirror_mode_get( 36922 int unit, 36923 int *mode) 36924 { 36925 return bcm_esw_mirror_mode_get(unit, mode); 36926 } 36927 #endif 36928 36929 #ifdef BCM_TOMAHAWK3_SUPPORT 36930 int 36931 bcm_tomahawk3_mirror_mode_set( 36932 int unit, 36933 int mode) 36934 { 36935 return bcm_esw_mirror_mode_set(unit, mode); 36936 } 36937 #endif 36938 36939 #ifdef BCM_TOMAHAWK3_SUPPORT 36940 int 36941 bcm_tomahawk3_mirror_payload_zero_control_multi_get( 36942 int unit, 36943 bcm_mirror_payload_zero_info_t *payload_zero_config_array, 36944 int num_configs) 36945 { 36946 return bcm_esw_mirror_payload_zero_control_multi_get(unit, payload_zero_config_array, num_configs); 36947 } 36948 #endif 36949 36950 #ifdef BCM_TOMAHAWK3_SUPPORT 36951 int 36952 bcm_tomahawk3_mirror_payload_zero_control_multi_set( 36953 int unit, 36954 bcm_mirror_payload_zero_info_t *payload_zero_config_array, 36955 int num_configs) 36956 { 36957 return bcm_esw_mirror_payload_zero_control_multi_set(unit, payload_zero_config_array, num_configs); 36958 } 36959 #endif 36960 36961 #ifdef BCM_TOMAHAWK3_SUPPORT 36962 int 36963 bcm_tomahawk3_mirror_payload_zero_profile_create( 36964 int unit, 36965 bcm_mirror_payload_zero_offsets_t *mirror_payload_offset_info, 36966 uint32 flags, 36967 uint32 *profile_index) 36968 { 36969 return bcm_esw_mirror_payload_zero_profile_create(unit, mirror_payload_offset_info, flags, profile_index); 36970 } 36971 #endif 36972 36973 #ifdef BCM_TOMAHAWK3_SUPPORT 36974 int 36975 bcm_tomahawk3_mirror_payload_zero_profile_destroy( 36976 int unit, 36977 uint32 flags, 36978 uint32 profile_index) 36979 { 36980 return bcm_esw_mirror_payload_zero_profile_destroy(unit, flags, profile_index); 36981 } 36982 #endif 36983 36984 #ifdef BCM_TOMAHAWK3_SUPPORT 36985 int 36986 bcm_tomahawk3_mirror_port_dest_add( 36987 int unit, 36988 bcm_port_t port, 36989 uint32 flags, 36990 bcm_gport_t mirror_dest_id) 36991 { 36992 return bcm_esw_mirror_port_dest_add(unit, port, flags, mirror_dest_id); 36993 } 36994 #endif 36995 36996 #ifdef BCM_TOMAHAWK3_SUPPORT 36997 int 36998 bcm_tomahawk3_mirror_port_dest_delete( 36999 int unit, 37000 bcm_port_t port, 37001 uint32 flags, 37002 bcm_gport_t mirror_dest_id) 37003 { 37004 return bcm_esw_mirror_port_dest_delete(unit, port, flags, mirror_dest_id); 37005 } 37006 #endif 37007 37008 #ifdef BCM_TOMAHAWK3_SUPPORT 37009 int 37010 bcm_tomahawk3_mirror_port_dest_delete_all( 37011 int unit, 37012 bcm_port_t port, 37013 uint32 flags) 37014 { 37015 return bcm_esw_mirror_port_dest_delete_all(unit, port, flags); 37016 } 37017 #endif 37018 37019 #ifdef BCM_TOMAHAWK3_SUPPORT 37020 int 37021 bcm_tomahawk3_mirror_port_dest_get( 37022 int unit, 37023 bcm_port_t port, 37024 uint32 flags, 37025 int mirror_dest_size, 37026 bcm_gport_t *mirror_dest, 37027 int *mirror_dest_count) 37028 { 37029 return bcm_esw_mirror_port_dest_get(unit, port, flags, mirror_dest_size, mirror_dest, mirror_dest_count); 37030 } 37031 #endif 37032 37033 int 37034 bcm_tomahawk3_mirror_port_destination_add( 37035 int unit, 37036 bcm_port_t port, 37037 uint32 flags, 37038 bcm_gport_t mirror_dest, 37039 bcm_mirror_options_t options) 37040 { 37041 return BCM_E_UNAVAIL; 37042 } 37043 37044 int 37045 bcm_tomahawk3_mirror_port_destination_get( 37046 int unit, 37047 bcm_port_t port, 37048 uint32 flags, 37049 int mirror_dest_size, 37050 bcm_gport_t *mirror_dest, 37051 int *mirror_dest_count, 37052 bcm_mirror_options_t *options) 37053 { 37054 return BCM_E_UNAVAIL; 37055 } 37056 37057 #ifdef BCM_TOMAHAWK3_SUPPORT 37058 int 37059 bcm_tomahawk3_mirror_port_get( 37060 int unit, 37061 bcm_port_t port, 37062 bcm_module_t *dest_mod, 37063 bcm_port_t *dest_port, 37064 uint32 *flags) 37065 { 37066 return bcm_esw_mirror_port_get(unit, port, dest_mod, dest_port, flags); 37067 } 37068 #endif 37069 37070 int 37071 bcm_tomahawk3_mirror_port_info_get( 37072 int unit, 37073 bcm_port_t port, 37074 uint32 flags, 37075 bcm_mirror_port_info_t *info) 37076 { 37077 return BCM_E_UNAVAIL; 37078 } 37079 37080 int 37081 bcm_tomahawk3_mirror_port_info_set( 37082 int unit, 37083 bcm_port_t port, 37084 uint32 flags, 37085 bcm_mirror_port_info_t *info) 37086 { 37087 return BCM_E_UNAVAIL; 37088 } 37089 37090 #ifdef BCM_TOMAHAWK3_SUPPORT 37091 int 37092 bcm_tomahawk3_mirror_port_set( 37093 int unit, 37094 bcm_port_t port, 37095 bcm_module_t dest_mod, 37096 bcm_port_t dest_port, 37097 uint32 flags) 37098 { 37099 return bcm_esw_mirror_port_set(unit, port, dest_mod, dest_port, flags); 37100 } 37101 #endif 37102 37103 int 37104 bcm_tomahawk3_mirror_port_to_rcy_port_map_get( 37105 int unit, 37106 uint32 flags, 37107 bcm_port_t forward_port, 37108 bcm_mirror_port_to_rcy_map_info_t *rcy_map_info) 37109 { 37110 return BCM_E_UNAVAIL; 37111 } 37112 37113 int 37114 bcm_tomahawk3_mirror_port_to_rcy_port_map_set( 37115 int unit, 37116 uint32 flags, 37117 bcm_port_t forward_port, 37118 bcm_mirror_port_to_rcy_map_info_t *rcy_map_info) 37119 { 37120 return BCM_E_UNAVAIL; 37121 } 37122 37123 #ifdef BCM_TOMAHAWK3_SUPPORT 37124 int 37125 bcm_tomahawk3_mirror_port_vlan_dest_add( 37126 int unit, 37127 bcm_port_t port, 37128 bcm_vlan_t vlan, 37129 uint32 flags, 37130 bcm_gport_t destid) 37131 { 37132 return bcm_esw_mirror_port_vlan_dest_add(unit, port, vlan, flags, destid); 37133 } 37134 #endif 37135 37136 #ifdef BCM_TOMAHAWK3_SUPPORT 37137 int 37138 bcm_tomahawk3_mirror_port_vlan_dest_delete( 37139 int unit, 37140 bcm_port_t port, 37141 bcm_vlan_t vlan, 37142 uint32 flags, 37143 bcm_gport_t destid) 37144 { 37145 return bcm_esw_mirror_port_vlan_dest_delete(unit, port, vlan, flags, destid); 37146 } 37147 #endif 37148 37149 #ifdef BCM_TOMAHAWK3_SUPPORT 37150 int 37151 bcm_tomahawk3_mirror_port_vlan_dest_delete_all( 37152 int unit, 37153 bcm_port_t port, 37154 bcm_vlan_t vlan, 37155 uint32 flags) 37156 { 37157 return bcm_esw_mirror_port_vlan_dest_delete_all(unit, port, vlan, flags); 37158 } 37159 #endif 37160 37161 #ifdef BCM_TOMAHAWK3_SUPPORT 37162 int 37163 bcm_tomahawk3_mirror_port_vlan_dest_get( 37164 int unit, 37165 bcm_port_t port, 37166 bcm_vlan_t vlan, 37167 uint32 flags, 37168 uint32 mirror_dest_size, 37169 bcm_gport_t *destid, 37170 uint32 *destcount) 37171 { 37172 return bcm_esw_mirror_port_vlan_dest_get(unit, port, vlan, flags, mirror_dest_size, destid, destcount); 37173 } 37174 #endif 37175 37176 #ifdef BCM_TOMAHAWK3_SUPPORT 37177 int 37178 bcm_tomahawk3_mirror_port_vlan_destination_add( 37179 int unit, 37180 bcm_port_t port, 37181 bcm_vlan_t vlan, 37182 uint32 flags, 37183 bcm_gport_t destid, 37184 bcm_mirror_options_t options) 37185 { 37186 return bcm_esw_mirror_port_vlan_destination_add(unit, port, vlan, flags, destid, options); 37187 } 37188 #endif 37189 37190 #ifdef BCM_TOMAHAWK3_SUPPORT 37191 int 37192 bcm_tomahawk3_mirror_port_vlan_destination_get( 37193 int unit, 37194 bcm_port_t port, 37195 bcm_vlan_t vlan, 37196 uint32 flags, 37197 uint32 mirror_dest_size, 37198 bcm_gport_t *destid, 37199 uint32 *destcount, 37200 bcm_mirror_options_t *options) 37201 { 37202 return bcm_esw_mirror_port_vlan_destination_get(unit, port, vlan, flags, mirror_dest_size, destid, destcount, options); 37203 } 37204 #endif 37205 37206 #ifdef BCM_TOMAHAWK3_SUPPORT 37207 int 37208 bcm_tomahawk3_mirror_port_vlan_get( 37209 int unit, 37210 bcm_port_t port, 37211 bcm_vlan_t vlan, 37212 bcm_gport_t *dest_port, 37213 uint32 *flags) 37214 { 37215 return bcm_esw_mirror_port_vlan_get(unit, port, vlan, dest_port, flags); 37216 } 37217 #endif 37218 37219 #ifdef BCM_TOMAHAWK3_SUPPORT 37220 int 37221 bcm_tomahawk3_mirror_port_vlan_set( 37222 int unit, 37223 bcm_port_t port, 37224 bcm_vlan_t vlan, 37225 bcm_gport_t destport, 37226 uint32 flags) 37227 { 37228 return bcm_esw_mirror_port_vlan_set(unit, port, vlan, destport, flags); 37229 } 37230 #endif 37231 37232 #ifdef BCM_TOMAHAWK3_SUPPORT 37233 int 37234 bcm_tomahawk3_mirror_to_get( 37235 int unit, 37236 bcm_port_t *port) 37237 { 37238 return bcm_esw_mirror_to_get(unit, port); 37239 } 37240 #endif 37241 37242 #ifdef BCM_TOMAHAWK3_SUPPORT 37243 int 37244 bcm_tomahawk3_mirror_to_pbmp_get( 37245 int unit, 37246 bcm_port_t port, 37247 bcm_pbmp_t *pbmp) 37248 { 37249 return bcm_esw_mirror_to_pbmp_get(unit, port, pbmp); 37250 } 37251 #endif 37252 37253 #ifdef BCM_TOMAHAWK3_SUPPORT 37254 int 37255 bcm_tomahawk3_mirror_to_pbmp_set( 37256 int unit, 37257 bcm_port_t port, 37258 bcm_pbmp_t pbmp) 37259 { 37260 return bcm_esw_mirror_to_pbmp_set(unit, port, pbmp); 37261 } 37262 #endif 37263 37264 #ifdef BCM_TOMAHAWK3_SUPPORT 37265 int 37266 bcm_tomahawk3_mirror_to_set( 37267 int unit, 37268 bcm_port_t port) 37269 { 37270 return bcm_esw_mirror_to_set(unit, port); 37271 } 37272 #endif 37273 37274 #ifdef BCM_TOMAHAWK3_SUPPORT 37275 int 37276 bcm_tomahawk3_mirror_vlan_get( 37277 int unit, 37278 bcm_port_t port, 37279 uint16 *tpid, 37280 uint16 *vlan) 37281 { 37282 return bcm_esw_mirror_vlan_get(unit, port, tpid, vlan); 37283 } 37284 #endif 37285 37286 #ifdef BCM_TOMAHAWK3_SUPPORT 37287 int 37288 bcm_tomahawk3_mirror_vlan_set( 37289 int unit, 37290 bcm_port_t port, 37291 uint16 tpid, 37292 uint16 vlan) 37293 { 37294 return bcm_esw_mirror_vlan_set(unit, port, tpid, vlan); 37295 } 37296 #endif 37297 37298 #if defined(INCLUDE_L3) 37299 #ifdef BCM_TOMAHAWK3_SUPPORT 37300 int 37301 bcm_tomahawk3_mpls_cleanup( 37302 int unit) 37303 { 37304 return bcm_esw_mpls_cleanup(unit); 37305 } 37306 #endif 37307 #endif 37308 37309 #if defined(INCLUDE_L3) 37310 #ifdef BCM_TOMAHAWK3_SUPPORT 37311 int 37312 bcm_tomahawk3_mpls_entropy_identifier_add( 37313 int unit, 37314 uint32 options, 37315 bcm_mpls_entropy_identifier_t *info) 37316 { 37317 return bcm_esw_mpls_entropy_identifier_add(unit, options, info); 37318 } 37319 #endif 37320 #endif 37321 37322 #if defined(INCLUDE_L3) 37323 #ifdef BCM_TOMAHAWK3_SUPPORT 37324 int 37325 bcm_tomahawk3_mpls_entropy_identifier_delete( 37326 int unit, 37327 bcm_mpls_entropy_identifier_t *info) 37328 { 37329 return bcm_esw_mpls_entropy_identifier_delete(unit, info); 37330 } 37331 #endif 37332 #endif 37333 37334 #if defined(INCLUDE_L3) 37335 #ifdef BCM_TOMAHAWK3_SUPPORT 37336 int 37337 bcm_tomahawk3_mpls_entropy_identifier_delete_all( 37338 int unit) 37339 { 37340 return bcm_esw_mpls_entropy_identifier_delete_all(unit); 37341 } 37342 #endif 37343 #endif 37344 37345 #if defined(INCLUDE_L3) 37346 #ifdef BCM_TOMAHAWK3_SUPPORT 37347 int 37348 bcm_tomahawk3_mpls_entropy_identifier_get( 37349 int unit, 37350 bcm_mpls_entropy_identifier_t *info) 37351 { 37352 return bcm_esw_mpls_entropy_identifier_get(unit, info); 37353 } 37354 #endif 37355 #endif 37356 37357 #if defined(INCLUDE_L3) 37358 #ifdef BCM_TOMAHAWK3_SUPPORT 37359 int 37360 bcm_tomahawk3_mpls_entropy_identifier_traverse( 37361 int unit, 37362 bcm_mpls_entropy_identifier_traverse_cb cb, 37363 void *user_data) 37364 { 37365 return bcm_esw_mpls_entropy_identifier_traverse(unit, cb, user_data); 37366 } 37367 #endif 37368 #endif 37369 37370 #if defined(INCLUDE_L3) 37371 #ifdef BCM_TOMAHAWK3_SUPPORT 37372 int 37373 bcm_tomahawk3_mpls_esi_encap_add( 37374 int unit, 37375 bcm_mpls_esi_info_t *esi_info) 37376 { 37377 return bcm_esw_mpls_esi_encap_add(unit, esi_info); 37378 } 37379 #endif 37380 #endif 37381 37382 #if defined(INCLUDE_L3) 37383 #ifdef BCM_TOMAHAWK3_SUPPORT 37384 int 37385 bcm_tomahawk3_mpls_esi_encap_delete( 37386 int unit, 37387 bcm_mpls_esi_info_t *esi_info) 37388 { 37389 return bcm_esw_mpls_esi_encap_delete(unit, esi_info); 37390 } 37391 #endif 37392 #endif 37393 37394 #if defined(INCLUDE_L3) 37395 #ifdef BCM_TOMAHAWK3_SUPPORT 37396 int 37397 bcm_tomahawk3_mpls_esi_encap_get( 37398 int unit, 37399 bcm_mpls_esi_info_t *esi_info) 37400 { 37401 return bcm_esw_mpls_esi_encap_get(unit, esi_info); 37402 } 37403 #endif 37404 #endif 37405 37406 #if defined(INCLUDE_L3) 37407 #ifdef BCM_TOMAHAWK3_SUPPORT 37408 int 37409 bcm_tomahawk3_mpls_esi_encap_traverse( 37410 int unit, 37411 bcm_mpls_esi_encap_traverse_cb cb, 37412 void *user_data) 37413 { 37414 return bcm_esw_mpls_esi_encap_traverse(unit, cb, user_data); 37415 } 37416 #endif 37417 #endif 37418 37419 #if defined(INCLUDE_L3) 37420 #ifdef BCM_TOMAHAWK3_SUPPORT 37421 int 37422 bcm_tomahawk3_mpls_exp_map_create( 37423 int unit, 37424 uint32 flags, 37425 int *exp_map_id) 37426 { 37427 return bcm_esw_mpls_exp_map_create(unit, flags, exp_map_id); 37428 } 37429 #endif 37430 #endif 37431 37432 #if defined(INCLUDE_L3) 37433 #ifdef BCM_TOMAHAWK3_SUPPORT 37434 int 37435 bcm_tomahawk3_mpls_exp_map_destroy( 37436 int unit, 37437 int exp_map_id) 37438 { 37439 return bcm_esw_mpls_exp_map_destroy(unit, exp_map_id); 37440 } 37441 #endif 37442 #endif 37443 37444 #if defined(INCLUDE_L3) 37445 #ifdef BCM_TOMAHAWK3_SUPPORT 37446 int 37447 bcm_tomahawk3_mpls_exp_map_get( 37448 int unit, 37449 int exp_map_id, 37450 bcm_mpls_exp_map_t *exp_map) 37451 { 37452 return bcm_esw_mpls_exp_map_get(unit, exp_map_id, exp_map); 37453 } 37454 #endif 37455 #endif 37456 37457 #if defined(INCLUDE_L3) 37458 #ifdef BCM_TOMAHAWK3_SUPPORT 37459 int 37460 bcm_tomahawk3_mpls_exp_map_set( 37461 int unit, 37462 int exp_map_id, 37463 bcm_mpls_exp_map_t *exp_map) 37464 { 37465 return bcm_esw_mpls_exp_map_set(unit, exp_map_id, exp_map); 37466 } 37467 #endif 37468 #endif 37469 37470 #if defined(INCLUDE_L3) 37471 #ifdef BCM_TOMAHAWK3_SUPPORT 37472 int 37473 bcm_tomahawk3_mpls_init( 37474 int unit) 37475 { 37476 return bcm_esw_mpls_init(unit); 37477 } 37478 #endif 37479 #endif 37480 37481 #if defined(INCLUDE_L3) 37482 #ifdef BCM_TOMAHAWK3_SUPPORT 37483 int 37484 bcm_tomahawk3_mpls_label_stat_attach( 37485 int unit, 37486 bcm_mpls_label_t label, 37487 bcm_gport_t port, 37488 uint32 stat_counter_id) 37489 { 37490 return bcm_esw_mpls_label_stat_attach(unit, label, port, stat_counter_id); 37491 } 37492 #endif 37493 #endif 37494 37495 #if defined(INCLUDE_L3) 37496 #ifdef BCM_TOMAHAWK3_SUPPORT 37497 int 37498 bcm_tomahawk3_mpls_label_stat_clear( 37499 int unit, 37500 bcm_mpls_label_t label, 37501 bcm_gport_t port, 37502 bcm_mpls_stat_t stat) 37503 { 37504 return bcm_esw_mpls_label_stat_clear(unit, label, port, stat); 37505 } 37506 #endif 37507 #endif 37508 37509 #if defined(INCLUDE_L3) 37510 #ifdef BCM_TOMAHAWK3_SUPPORT 37511 int 37512 bcm_tomahawk3_mpls_label_stat_counter_get( 37513 int unit, 37514 bcm_mpls_label_t label, 37515 bcm_gport_t port, 37516 bcm_mpls_stat_t stat, 37517 uint32 num_entries, 37518 uint32 *counter_indexes, 37519 bcm_stat_value_t *counter_values) 37520 { 37521 return bcm_esw_mpls_label_stat_counter_get(unit, label, port, stat, num_entries, counter_indexes, counter_values); 37522 } 37523 #endif 37524 #endif 37525 37526 #if defined(INCLUDE_L3) 37527 #ifdef BCM_TOMAHAWK3_SUPPORT 37528 int 37529 bcm_tomahawk3_mpls_label_stat_counter_set( 37530 int unit, 37531 bcm_mpls_label_t label, 37532 bcm_gport_t port, 37533 bcm_mpls_stat_t stat, 37534 uint32 num_entries, 37535 uint32 *counter_indexes, 37536 bcm_stat_value_t *counter_values) 37537 { 37538 return bcm_esw_mpls_label_stat_counter_set(unit, label, port, stat, num_entries, counter_indexes, counter_values); 37539 } 37540 #endif 37541 #endif 37542 37543 #if defined(INCLUDE_L3) 37544 #ifdef BCM_TOMAHAWK3_SUPPORT 37545 int 37546 bcm_tomahawk3_mpls_label_stat_counter_sync_get( 37547 int unit, 37548 bcm_mpls_label_t label, 37549 bcm_gport_t port, 37550 bcm_mpls_stat_t stat, 37551 uint32 num_entries, 37552 uint32 *counter_indexes, 37553 bcm_stat_value_t *counter_values) 37554 { 37555 return bcm_esw_mpls_label_stat_counter_sync_get(unit, label, port, stat, num_entries, counter_indexes, counter_values); 37556 } 37557 #endif 37558 #endif 37559 37560 #if defined(INCLUDE_L3) 37561 #ifdef BCM_TOMAHAWK3_SUPPORT 37562 int 37563 bcm_tomahawk3_mpls_label_stat_detach( 37564 int unit, 37565 bcm_mpls_label_t label, 37566 bcm_gport_t port) 37567 { 37568 return bcm_esw_mpls_label_stat_detach(unit, label, port); 37569 } 37570 #endif 37571 #endif 37572 37573 #if defined(INCLUDE_L3) 37574 #ifdef BCM_TOMAHAWK3_SUPPORT 37575 int 37576 bcm_tomahawk3_mpls_label_stat_enable_set( 37577 int unit, 37578 bcm_mpls_label_t label, 37579 bcm_gport_t port, 37580 int enable) 37581 { 37582 return bcm_esw_mpls_label_stat_enable_set(unit, label, port, enable); 37583 } 37584 #endif 37585 #endif 37586 37587 #if defined(INCLUDE_L3) 37588 #ifdef BCM_TOMAHAWK3_SUPPORT 37589 int 37590 bcm_tomahawk3_mpls_label_stat_get( 37591 int unit, 37592 bcm_mpls_label_t label, 37593 bcm_gport_t port, 37594 bcm_mpls_stat_t stat, 37595 uint64 *val) 37596 { 37597 return bcm_esw_mpls_label_stat_get(unit, label, port, stat, val); 37598 } 37599 #endif 37600 #endif 37601 37602 #if defined(INCLUDE_L3) 37603 #ifdef BCM_TOMAHAWK3_SUPPORT 37604 int 37605 bcm_tomahawk3_mpls_label_stat_get32( 37606 int unit, 37607 bcm_mpls_label_t label, 37608 bcm_gport_t port, 37609 bcm_mpls_stat_t stat, 37610 uint32 *val) 37611 { 37612 return bcm_esw_mpls_label_stat_get32(unit, label, port, stat, val); 37613 } 37614 #endif 37615 #endif 37616 37617 #if defined(INCLUDE_L3) 37618 #ifdef BCM_TOMAHAWK3_SUPPORT 37619 int 37620 bcm_tomahawk3_mpls_label_stat_id_get( 37621 int unit, 37622 bcm_mpls_label_t label, 37623 bcm_gport_t port, 37624 bcm_mpls_stat_t stat, 37625 uint32 *stat_counter_id) 37626 { 37627 return bcm_esw_mpls_label_stat_id_get(unit, label, port, stat, stat_counter_id); 37628 } 37629 #endif 37630 #endif 37631 37632 #if defined(INCLUDE_L3) 37633 #ifdef BCM_TOMAHAWK3_SUPPORT 37634 int 37635 bcm_tomahawk3_mpls_label_stat_sync_get( 37636 int unit, 37637 bcm_mpls_label_t label, 37638 bcm_gport_t port, 37639 bcm_mpls_stat_t stat, 37640 uint64 *val) 37641 { 37642 return bcm_esw_mpls_label_stat_sync_get(unit, label, port, stat, val); 37643 } 37644 #endif 37645 #endif 37646 37647 #if defined(INCLUDE_L3) 37648 #ifdef BCM_TOMAHAWK3_SUPPORT 37649 int 37650 bcm_tomahawk3_mpls_label_stat_sync_get32( 37651 int unit, 37652 bcm_mpls_label_t label, 37653 bcm_gport_t port, 37654 bcm_mpls_stat_t stat, 37655 uint32 *val) 37656 { 37657 return bcm_esw_mpls_label_stat_sync_get32(unit, label, port, stat, val); 37658 } 37659 #endif 37660 #endif 37661 37662 #if defined(INCLUDE_L3) 37663 #ifdef BCM_TOMAHAWK3_SUPPORT 37664 int 37665 bcm_tomahawk3_mpls_port_add( 37666 int unit, 37667 bcm_vpn_t vpn, 37668 bcm_mpls_port_t *mpls_port) 37669 { 37670 return bcm_esw_mpls_port_add(unit, vpn, mpls_port); 37671 } 37672 #endif 37673 #endif 37674 37675 #if defined(INCLUDE_L3) 37676 #ifdef BCM_TOMAHAWK3_SUPPORT 37677 int 37678 bcm_tomahawk3_mpls_port_delete( 37679 int unit, 37680 bcm_vpn_t vpn, 37681 bcm_gport_t mpls_port_id) 37682 { 37683 return bcm_esw_mpls_port_delete(unit, vpn, mpls_port_id); 37684 } 37685 #endif 37686 #endif 37687 37688 #if defined(INCLUDE_L3) 37689 #ifdef BCM_TOMAHAWK3_SUPPORT 37690 int 37691 bcm_tomahawk3_mpls_port_delete_all( 37692 int unit, 37693 bcm_vpn_t vpn) 37694 { 37695 return bcm_esw_mpls_port_delete_all(unit, vpn); 37696 } 37697 #endif 37698 #endif 37699 37700 #if defined(INCLUDE_L3) 37701 #ifdef BCM_TOMAHAWK3_SUPPORT 37702 int 37703 bcm_tomahawk3_mpls_port_get( 37704 int unit, 37705 bcm_vpn_t vpn, 37706 bcm_mpls_port_t *mpls_port) 37707 { 37708 return bcm_esw_mpls_port_get(unit, vpn, mpls_port); 37709 } 37710 #endif 37711 #endif 37712 37713 #if defined(INCLUDE_L3) 37714 #ifdef BCM_TOMAHAWK3_SUPPORT 37715 int 37716 bcm_tomahawk3_mpls_port_get_all( 37717 int unit, 37718 bcm_vpn_t vpn, 37719 int port_max, 37720 bcm_mpls_port_t *port_array, 37721 int *port_count) 37722 { 37723 return bcm_esw_mpls_port_get_all(unit, vpn, port_max, port_array, port_count); 37724 } 37725 #endif 37726 #endif 37727 37728 #if defined(INCLUDE_L3) 37729 #ifdef BCM_TOMAHAWK3_SUPPORT 37730 int 37731 bcm_tomahawk3_mpls_port_stat_attach( 37732 int unit, 37733 bcm_vpn_t vpn, 37734 bcm_gport_t port, 37735 uint32 stat_counter_id) 37736 { 37737 return bcm_esw_mpls_port_stat_attach(unit, vpn, port, stat_counter_id); 37738 } 37739 #endif 37740 #endif 37741 37742 #if defined(INCLUDE_L3) 37743 #ifdef BCM_TOMAHAWK3_SUPPORT 37744 int 37745 bcm_tomahawk3_mpls_port_stat_counter_get( 37746 int unit, 37747 bcm_vpn_t vpn, 37748 bcm_gport_t port, 37749 bcm_mpls_stat_t stat, 37750 uint32 num_entries, 37751 uint32 *counter_indexes, 37752 bcm_stat_value_t *counter_values) 37753 { 37754 return bcm_esw_mpls_port_stat_counter_get(unit, vpn, port, stat, num_entries, counter_indexes, counter_values); 37755 } 37756 #endif 37757 #endif 37758 37759 #if defined(INCLUDE_L3) 37760 #ifdef BCM_TOMAHAWK3_SUPPORT 37761 int 37762 bcm_tomahawk3_mpls_port_stat_counter_set( 37763 int unit, 37764 bcm_vpn_t vpn, 37765 bcm_gport_t port, 37766 bcm_mpls_stat_t stat, 37767 uint32 num_entries, 37768 uint32 *counter_indexes, 37769 bcm_stat_value_t *counter_values) 37770 { 37771 return bcm_esw_mpls_port_stat_counter_set(unit, vpn, port, stat, num_entries, counter_indexes, counter_values); 37772 } 37773 #endif 37774 #endif 37775 37776 #if defined(INCLUDE_L3) 37777 #ifdef BCM_TOMAHAWK3_SUPPORT 37778 int 37779 bcm_tomahawk3_mpls_port_stat_counter_sync_get( 37780 int unit, 37781 bcm_vpn_t vpn, 37782 bcm_gport_t port, 37783 bcm_mpls_stat_t stat, 37784 uint32 num_entries, 37785 uint32 *counter_indexes, 37786 bcm_stat_value_t *counter_values) 37787 { 37788 return bcm_esw_mpls_port_stat_counter_sync_get(unit, vpn, port, stat, num_entries, counter_indexes, counter_values); 37789 } 37790 #endif 37791 #endif 37792 37793 #if defined(INCLUDE_L3) 37794 #ifdef BCM_TOMAHAWK3_SUPPORT 37795 int 37796 bcm_tomahawk3_mpls_port_stat_detach( 37797 int unit, 37798 bcm_vpn_t vpn, 37799 bcm_gport_t port) 37800 { 37801 return bcm_esw_mpls_port_stat_detach(unit, vpn, port); 37802 } 37803 #endif 37804 #endif 37805 37806 #if defined(INCLUDE_L3) 37807 int 37808 bcm_tomahawk3_mpls_port_stat_enable_set( 37809 int unit, 37810 bcm_gport_t mpls_port, 37811 int enable) 37812 { 37813 return BCM_E_UNAVAIL; 37814 } 37815 #endif 37816 37817 #if defined(INCLUDE_L3) 37818 int 37819 bcm_tomahawk3_mpls_port_stat_get( 37820 int unit, 37821 bcm_gport_t mpls_port, 37822 bcm_cos_t cos, 37823 bcm_mpls_port_stat_t stat, 37824 uint64 *val) 37825 { 37826 return BCM_E_UNAVAIL; 37827 } 37828 #endif 37829 37830 #if defined(INCLUDE_L3) 37831 int 37832 bcm_tomahawk3_mpls_port_stat_get32( 37833 int unit, 37834 bcm_gport_t mpls_port, 37835 bcm_cos_t cos, 37836 bcm_mpls_port_stat_t stat, 37837 uint32 *val) 37838 { 37839 return BCM_E_UNAVAIL; 37840 } 37841 #endif 37842 37843 #if defined(INCLUDE_L3) 37844 #ifdef BCM_TOMAHAWK3_SUPPORT 37845 int 37846 bcm_tomahawk3_mpls_port_stat_id_get( 37847 int unit, 37848 bcm_vpn_t vpn, 37849 bcm_gport_t port, 37850 bcm_mpls_stat_t stat, 37851 uint32 *stat_counter_id) 37852 { 37853 return bcm_esw_mpls_port_stat_id_get(unit, vpn, port, stat, stat_counter_id); 37854 } 37855 #endif 37856 #endif 37857 37858 #if defined(INCLUDE_L3) 37859 int 37860 bcm_tomahawk3_mpls_port_stat_set( 37861 int unit, 37862 bcm_gport_t mpls_port, 37863 bcm_cos_t cos, 37864 bcm_mpls_port_stat_t stat, 37865 uint64 val) 37866 { 37867 return BCM_E_UNAVAIL; 37868 } 37869 #endif 37870 37871 #if defined(INCLUDE_L3) 37872 int 37873 bcm_tomahawk3_mpls_port_stat_set32( 37874 int unit, 37875 bcm_gport_t mpls_port, 37876 bcm_cos_t cos, 37877 bcm_mpls_port_stat_t stat, 37878 uint32 val) 37879 { 37880 return BCM_E_UNAVAIL; 37881 } 37882 #endif 37883 37884 #if defined(INCLUDE_L3) 37885 #ifdef BCM_TOMAHAWK3_SUPPORT 37886 int 37887 bcm_tomahawk3_mpls_port_traverse( 37888 int unit, 37889 bcm_mpls_port_traverse_info_t additional_info, 37890 bcm_mpls_port_traverse_cb trav_fn, 37891 void *user_data) 37892 { 37893 return bcm_esw_mpls_port_traverse(unit, additional_info, trav_fn, user_data); 37894 } 37895 #endif 37896 #endif 37897 37898 #if defined(INCLUDE_L3) 37899 int 37900 bcm_tomahawk3_mpls_range_action_add( 37901 int unit, 37902 bcm_mpls_label_t label_low, 37903 bcm_mpls_label_t label_high, 37904 bcm_mpls_range_action_t *action) 37905 { 37906 return BCM_E_UNAVAIL; 37907 } 37908 #endif 37909 37910 #if defined(INCLUDE_L3) 37911 int 37912 bcm_tomahawk3_mpls_range_action_get( 37913 int unit, 37914 bcm_mpls_label_t label_low, 37915 bcm_mpls_label_t label_high, 37916 bcm_mpls_range_action_t *action) 37917 { 37918 return BCM_E_UNAVAIL; 37919 } 37920 #endif 37921 37922 #if defined(INCLUDE_L3) 37923 int 37924 bcm_tomahawk3_mpls_range_action_remove( 37925 int unit, 37926 bcm_mpls_label_t label_low, 37927 bcm_mpls_label_t label_high) 37928 { 37929 return BCM_E_UNAVAIL; 37930 } 37931 #endif 37932 37933 #if defined(INCLUDE_L3) 37934 #ifdef BCM_TOMAHAWK3_SUPPORT 37935 int 37936 bcm_tomahawk3_mpls_special_label_egress_add( 37937 int unit, 37938 bcm_mpls_special_label_type_t label_type, 37939 bcm_mpls_special_label_t label_info) 37940 { 37941 return bcm_esw_mpls_special_label_egress_add(unit, label_type, label_info); 37942 } 37943 #endif 37944 #endif 37945 37946 #if defined(INCLUDE_L3) 37947 #ifdef BCM_TOMAHAWK3_SUPPORT 37948 int 37949 bcm_tomahawk3_mpls_special_label_egress_delete( 37950 int unit, 37951 bcm_mpls_special_label_type_t label_type, 37952 bcm_mpls_special_label_t label_info) 37953 { 37954 return bcm_esw_mpls_special_label_egress_delete(unit, label_type, label_info); 37955 } 37956 #endif 37957 #endif 37958 37959 #if defined(INCLUDE_L3) 37960 #ifdef BCM_TOMAHAWK3_SUPPORT 37961 int 37962 bcm_tomahawk3_mpls_special_label_egress_delete_all( 37963 int unit) 37964 { 37965 return bcm_esw_mpls_special_label_egress_delete_all(unit); 37966 } 37967 #endif 37968 #endif 37969 37970 #if defined(INCLUDE_L3) 37971 #ifdef BCM_TOMAHAWK3_SUPPORT 37972 int 37973 bcm_tomahawk3_mpls_special_label_egress_get( 37974 int unit, 37975 bcm_mpls_special_label_type_t label_type, 37976 bcm_mpls_special_label_t *label_info) 37977 { 37978 return bcm_esw_mpls_special_label_egress_get(unit, label_type, label_info); 37979 } 37980 #endif 37981 #endif 37982 37983 #if defined(INCLUDE_L3) 37984 #ifdef BCM_TOMAHAWK3_SUPPORT 37985 int 37986 bcm_tomahawk3_mpls_special_label_egress_traverse( 37987 int unit, 37988 bcm_mpls_special_label_egress_traverse_cb cb, 37989 void *user_data) 37990 { 37991 return bcm_esw_mpls_special_label_egress_traverse(unit, cb, user_data); 37992 } 37993 #endif 37994 #endif 37995 37996 #if defined(INCLUDE_L3) 37997 #ifdef BCM_TOMAHAWK3_SUPPORT 37998 int 37999 bcm_tomahawk3_mpls_special_label_identifier_add( 38000 int unit, 38001 bcm_mpls_special_label_type_t label_type, 38002 bcm_mpls_special_label_t label_info) 38003 { 38004 return bcm_esw_mpls_special_label_identifier_add(unit, label_type, label_info); 38005 } 38006 #endif 38007 #endif 38008 38009 #if defined(INCLUDE_L3) 38010 #ifdef BCM_TOMAHAWK3_SUPPORT 38011 int 38012 bcm_tomahawk3_mpls_special_label_identifier_delete( 38013 int unit, 38014 bcm_mpls_special_label_type_t label_type, 38015 bcm_mpls_special_label_t label_info) 38016 { 38017 return bcm_esw_mpls_special_label_identifier_delete(unit, label_type, label_info); 38018 } 38019 #endif 38020 #endif 38021 38022 #if defined(INCLUDE_L3) 38023 #ifdef BCM_TOMAHAWK3_SUPPORT 38024 int 38025 bcm_tomahawk3_mpls_special_label_identifier_delete_all( 38026 int unit) 38027 { 38028 return bcm_esw_mpls_special_label_identifier_delete_all(unit); 38029 } 38030 #endif 38031 #endif 38032 38033 #if defined(INCLUDE_L3) 38034 #ifdef BCM_TOMAHAWK3_SUPPORT 38035 int 38036 bcm_tomahawk3_mpls_special_label_identifier_get( 38037 int unit, 38038 bcm_mpls_special_label_type_t label_type, 38039 bcm_mpls_special_label_t *label_info) 38040 { 38041 return bcm_esw_mpls_special_label_identifier_get(unit, label_type, label_info); 38042 } 38043 #endif 38044 #endif 38045 38046 #if defined(INCLUDE_L3) 38047 #ifdef BCM_TOMAHAWK3_SUPPORT 38048 int 38049 bcm_tomahawk3_mpls_special_label_identifier_traverse( 38050 int unit, 38051 bcm_mpls_special_label_identifier_traverse_cb cb, 38052 void *user_data) 38053 { 38054 return bcm_esw_mpls_special_label_identifier_traverse(unit, cb, user_data); 38055 } 38056 #endif 38057 #endif 38058 38059 #if defined(INCLUDE_L3) 38060 #ifdef BCM_TOMAHAWK3_SUPPORT 38061 int 38062 bcm_tomahawk3_mpls_special_label_push_action_get( 38063 int unit, 38064 bcm_mpls_special_label_push_element_t *element, 38065 int *push_action) 38066 { 38067 return bcm_esw_mpls_special_label_push_action_get(unit, element, push_action); 38068 } 38069 #endif 38070 #endif 38071 38072 #if defined(INCLUDE_L3) 38073 #ifdef BCM_TOMAHAWK3_SUPPORT 38074 int 38075 bcm_tomahawk3_mpls_special_label_push_action_set( 38076 int unit, 38077 bcm_mpls_special_label_push_element_t *element, 38078 int push_action) 38079 { 38080 return bcm_esw_mpls_special_label_push_action_set(unit, element, push_action); 38081 } 38082 #endif 38083 #endif 38084 38085 #if defined(INCLUDE_L3) 38086 #ifdef BCM_TOMAHAWK3_SUPPORT 38087 int 38088 bcm_tomahawk3_mpls_tunnel_initiator_clear( 38089 int unit, 38090 bcm_if_t intf) 38091 { 38092 return bcm_esw_mpls_tunnel_initiator_clear(unit, intf); 38093 } 38094 #endif 38095 #endif 38096 38097 #if defined(INCLUDE_L3) 38098 #ifdef BCM_TOMAHAWK3_SUPPORT 38099 int 38100 bcm_tomahawk3_mpls_tunnel_initiator_clear_all( 38101 int unit) 38102 { 38103 return bcm_esw_mpls_tunnel_initiator_clear_all(unit); 38104 } 38105 #endif 38106 #endif 38107 38108 #if defined(INCLUDE_L3) 38109 int 38110 bcm_tomahawk3_mpls_tunnel_initiator_create( 38111 int unit, 38112 bcm_if_t intf, 38113 int num_labels, 38114 bcm_mpls_egress_label_t *label_array) 38115 { 38116 return BCM_E_UNAVAIL; 38117 } 38118 #endif 38119 38120 #if defined(INCLUDE_L3) 38121 #ifdef BCM_TOMAHAWK3_SUPPORT 38122 int 38123 bcm_tomahawk3_mpls_tunnel_initiator_get( 38124 int unit, 38125 bcm_if_t intf, 38126 int label_max, 38127 bcm_mpls_egress_label_t *label_array, 38128 int *label_count) 38129 { 38130 return bcm_esw_mpls_tunnel_initiator_get(unit, intf, label_max, label_array, label_count); 38131 } 38132 #endif 38133 #endif 38134 38135 #if defined(INCLUDE_L3) 38136 #ifdef BCM_TOMAHAWK3_SUPPORT 38137 int 38138 bcm_tomahawk3_mpls_tunnel_initiator_set( 38139 int unit, 38140 bcm_if_t intf, 38141 int num_labels, 38142 bcm_mpls_egress_label_t *label_array) 38143 { 38144 return bcm_esw_mpls_tunnel_initiator_set(unit, intf, num_labels, label_array); 38145 } 38146 #endif 38147 #endif 38148 38149 #if defined(INCLUDE_L3) 38150 int 38151 bcm_tomahawk3_mpls_tunnel_initiator_traverse( 38152 int unit, 38153 bcm_mpls_tunnel_initiator_traverse_info_t *additional_info, 38154 bcm_mpls_tunnel_initiator_traverse_cb cb, 38155 void *user_data) 38156 { 38157 return BCM_E_UNAVAIL; 38158 } 38159 #endif 38160 38161 #if defined(INCLUDE_L3) 38162 #ifdef BCM_TOMAHAWK3_SUPPORT 38163 int 38164 bcm_tomahawk3_mpls_tunnel_label_counter_id_detach( 38165 int unit, 38166 bcm_if_t intf_id, 38167 uint32 stat_counter_id) 38168 { 38169 return bcm_esw_mpls_tunnel_label_counter_id_detach(unit, intf_id, stat_counter_id); 38170 } 38171 #endif 38172 #endif 38173 38174 #if defined(INCLUDE_L3) 38175 #ifdef BCM_TOMAHAWK3_SUPPORT 38176 int 38177 bcm_tomahawk3_mpls_tunnel_label_counter_id_num_get( 38178 int unit, 38179 bcm_if_t intf_id, 38180 int *num_counters, 38181 uint32 *stat_counter_id) 38182 { 38183 return bcm_esw_mpls_tunnel_label_counter_id_num_get(unit, intf_id, num_counters, stat_counter_id); 38184 } 38185 #endif 38186 #endif 38187 38188 #if defined(INCLUDE_L3) 38189 #ifdef BCM_TOMAHAWK3_SUPPORT 38190 int 38191 bcm_tomahawk3_mpls_tunnel_label_counter_id_stat_get( 38192 int unit, 38193 bcm_if_t intf_id, 38194 uint32 stat_counter_id, 38195 bcm_mpls_stat_info_t *stat_info) 38196 { 38197 return bcm_esw_mpls_tunnel_label_counter_id_stat_get(unit, intf_id, stat_counter_id, stat_info); 38198 } 38199 #endif 38200 #endif 38201 38202 #if defined(INCLUDE_L3) 38203 #ifdef BCM_TOMAHAWK3_SUPPORT 38204 int 38205 bcm_tomahawk3_mpls_tunnel_label_counter_id_stat_set( 38206 int unit, 38207 bcm_if_t intf_id, 38208 uint32 stat_counter_id, 38209 bcm_mpls_stat_info_t *stat_info) 38210 { 38211 return bcm_esw_mpls_tunnel_label_counter_id_stat_set(unit, intf_id, stat_counter_id, stat_info); 38212 } 38213 #endif 38214 #endif 38215 38216 #if defined(INCLUDE_L3) 38217 #ifdef BCM_TOMAHAWK3_SUPPORT 38218 int 38219 bcm_tomahawk3_mpls_tunnel_label_counter_id_stat_sync_get( 38220 int unit, 38221 bcm_if_t intf_id, 38222 uint32 stat_counter_id, 38223 bcm_mpls_stat_info_t *stat_info) 38224 { 38225 return bcm_esw_mpls_tunnel_label_counter_id_stat_sync_get(unit, intf_id, stat_counter_id, stat_info); 38226 } 38227 #endif 38228 #endif 38229 38230 #if defined(INCLUDE_L3) 38231 #ifdef BCM_TOMAHAWK3_SUPPORT 38232 int 38233 bcm_tomahawk3_mpls_tunnel_stat_attach( 38234 int unit, 38235 bcm_if_t intf_id, 38236 uint32 stat_counter_id) 38237 { 38238 return bcm_esw_mpls_tunnel_stat_attach(unit, intf_id, stat_counter_id); 38239 } 38240 #endif 38241 #endif 38242 38243 #if defined(INCLUDE_L3) 38244 #ifdef BCM_TOMAHAWK3_SUPPORT 38245 int 38246 bcm_tomahawk3_mpls_tunnel_stat_counter_get( 38247 int unit, 38248 bcm_if_t intf_id, 38249 bcm_mpls_stat_t stat, 38250 uint32 num_entries, 38251 uint32 *counter_indexes, 38252 bcm_stat_value_t *counter_values) 38253 { 38254 return bcm_esw_mpls_tunnel_stat_counter_get(unit, intf_id, stat, num_entries, counter_indexes, counter_values); 38255 } 38256 #endif 38257 #endif 38258 38259 #if defined(INCLUDE_L3) 38260 #ifdef BCM_TOMAHAWK3_SUPPORT 38261 int 38262 bcm_tomahawk3_mpls_tunnel_stat_counter_set( 38263 int unit, 38264 bcm_if_t intf_id, 38265 bcm_mpls_stat_t stat, 38266 uint32 num_entries, 38267 uint32 *counter_indexes, 38268 bcm_stat_value_t *counter_values) 38269 { 38270 return bcm_esw_mpls_tunnel_stat_counter_set(unit, intf_id, stat, num_entries, counter_indexes, counter_values); 38271 } 38272 #endif 38273 #endif 38274 38275 #if defined(INCLUDE_L3) 38276 #ifdef BCM_TOMAHAWK3_SUPPORT 38277 int 38278 bcm_tomahawk3_mpls_tunnel_stat_counter_sync_get( 38279 int unit, 38280 bcm_if_t intf_id, 38281 bcm_mpls_stat_t stat, 38282 uint32 num_entries, 38283 uint32 *counter_indexes, 38284 bcm_stat_value_t *counter_values) 38285 { 38286 return bcm_esw_mpls_tunnel_stat_counter_sync_get(unit, intf_id, stat, num_entries, counter_indexes, counter_values); 38287 } 38288 #endif 38289 #endif 38290 38291 #if defined(INCLUDE_L3) 38292 #ifdef BCM_TOMAHAWK3_SUPPORT 38293 int 38294 bcm_tomahawk3_mpls_tunnel_stat_detach( 38295 int unit, 38296 bcm_if_t intf_id) 38297 { 38298 return bcm_esw_mpls_tunnel_stat_detach(unit, intf_id); 38299 } 38300 #endif 38301 #endif 38302 38303 #if defined(INCLUDE_L3) 38304 #ifdef BCM_TOMAHAWK3_SUPPORT 38305 int 38306 bcm_tomahawk3_mpls_tunnel_stat_id_get( 38307 int unit, 38308 bcm_if_t intf_id, 38309 bcm_mpls_stat_t stat, 38310 uint32 *stat_counter_id) 38311 { 38312 return bcm_esw_mpls_tunnel_stat_id_get(unit, intf_id, stat, stat_counter_id); 38313 } 38314 #endif 38315 #endif 38316 38317 #if defined(INCLUDE_L3) 38318 #ifdef BCM_TOMAHAWK3_SUPPORT 38319 int 38320 bcm_tomahawk3_mpls_tunnel_switch_add( 38321 int unit, 38322 bcm_mpls_tunnel_switch_t *info) 38323 { 38324 return bcm_esw_mpls_tunnel_switch_add(unit, info); 38325 } 38326 #endif 38327 #endif 38328 38329 #if defined(INCLUDE_L3) 38330 int 38331 bcm_tomahawk3_mpls_tunnel_switch_create( 38332 int unit, 38333 bcm_mpls_tunnel_switch_t *info) 38334 { 38335 return BCM_E_UNAVAIL; 38336 } 38337 #endif 38338 38339 #if defined(INCLUDE_L3) 38340 #ifdef BCM_TOMAHAWK3_SUPPORT 38341 int 38342 bcm_tomahawk3_mpls_tunnel_switch_delete( 38343 int unit, 38344 bcm_mpls_tunnel_switch_t *info) 38345 { 38346 return bcm_esw_mpls_tunnel_switch_delete(unit, info); 38347 } 38348 #endif 38349 #endif 38350 38351 #if defined(INCLUDE_L3) 38352 #ifdef BCM_TOMAHAWK3_SUPPORT 38353 int 38354 bcm_tomahawk3_mpls_tunnel_switch_delete_all( 38355 int unit) 38356 { 38357 return bcm_esw_mpls_tunnel_switch_delete_all(unit); 38358 } 38359 #endif 38360 #endif 38361 38362 #if defined(INCLUDE_L3) 38363 #ifdef BCM_TOMAHAWK3_SUPPORT 38364 int 38365 bcm_tomahawk3_mpls_tunnel_switch_get( 38366 int unit, 38367 bcm_mpls_tunnel_switch_t *info) 38368 { 38369 return bcm_esw_mpls_tunnel_switch_get(unit, info); 38370 } 38371 #endif 38372 #endif 38373 38374 #if defined(INCLUDE_L3) 38375 #ifdef BCM_TOMAHAWK3_SUPPORT 38376 int 38377 bcm_tomahawk3_mpls_tunnel_switch_traverse( 38378 int unit, 38379 bcm_mpls_tunnel_switch_traverse_cb cb, 38380 void *user_data) 38381 { 38382 return bcm_esw_mpls_tunnel_switch_traverse(unit, cb, user_data); 38383 } 38384 #endif 38385 #endif 38386 38387 #if defined(INCLUDE_L3) 38388 #ifdef BCM_TOMAHAWK3_SUPPORT 38389 int 38390 bcm_tomahawk3_mpls_vpn_id_create( 38391 int unit, 38392 bcm_mpls_vpn_config_t *info) 38393 { 38394 return bcm_esw_mpls_vpn_id_create(unit, info); 38395 } 38396 #endif 38397 #endif 38398 38399 #if defined(INCLUDE_L3) 38400 #ifdef BCM_TOMAHAWK3_SUPPORT 38401 int 38402 bcm_tomahawk3_mpls_vpn_id_destroy( 38403 int unit, 38404 bcm_vpn_t vpn) 38405 { 38406 return bcm_esw_mpls_vpn_id_destroy(unit, vpn); 38407 } 38408 #endif 38409 #endif 38410 38411 #if defined(INCLUDE_L3) 38412 #ifdef BCM_TOMAHAWK3_SUPPORT 38413 int 38414 bcm_tomahawk3_mpls_vpn_id_destroy_all( 38415 int unit) 38416 { 38417 return bcm_esw_mpls_vpn_id_destroy_all(unit); 38418 } 38419 #endif 38420 #endif 38421 38422 #if defined(INCLUDE_L3) 38423 #ifdef BCM_TOMAHAWK3_SUPPORT 38424 int 38425 bcm_tomahawk3_mpls_vpn_id_get( 38426 int unit, 38427 bcm_vpn_t vpn, 38428 bcm_mpls_vpn_config_t *info) 38429 { 38430 return bcm_esw_mpls_vpn_id_get(unit, vpn, info); 38431 } 38432 #endif 38433 #endif 38434 38435 #if defined(INCLUDE_L3) 38436 #ifdef BCM_TOMAHAWK3_SUPPORT 38437 int 38438 bcm_tomahawk3_mpls_vpn_traverse( 38439 int unit, 38440 bcm_mpls_vpn_traverse_cb cb, 38441 void *user_data) 38442 { 38443 return bcm_esw_mpls_vpn_traverse(unit, cb, user_data); 38444 } 38445 #endif 38446 #endif 38447 38448 int 38449 bcm_tomahawk3_multicast_add( 38450 int unit, 38451 bcm_multicast_t group, 38452 uint32 flags, 38453 int nof_replications, 38454 bcm_multicast_replication_t *rep_array) 38455 { 38456 return BCM_E_UNAVAIL; 38457 } 38458 38459 #ifdef BCM_TOMAHAWK3_SUPPORT 38460 int 38461 bcm_tomahawk3_multicast_control_get( 38462 int unit, 38463 bcm_multicast_t group, 38464 bcm_multicast_control_t type, 38465 int *arg) 38466 { 38467 return bcm_esw_multicast_control_get(unit, group, type, arg); 38468 } 38469 #endif 38470 38471 #ifdef BCM_TOMAHAWK3_SUPPORT 38472 int 38473 bcm_tomahawk3_multicast_control_set( 38474 int unit, 38475 bcm_multicast_t group, 38476 bcm_multicast_control_t type, 38477 int arg) 38478 { 38479 return bcm_esw_multicast_control_set(unit, group, type, arg); 38480 } 38481 #endif 38482 38483 #ifdef BCM_TOMAHAWK3_SUPPORT 38484 int 38485 bcm_tomahawk3_multicast_create( 38486 int unit, 38487 uint32 flags, 38488 bcm_multicast_t *group) 38489 { 38490 return bcm_esw_multicast_create(unit, flags, group); 38491 } 38492 #endif 38493 38494 int 38495 bcm_tomahawk3_multicast_delete( 38496 int unit, 38497 bcm_multicast_t group, 38498 uint32 flags, 38499 int nof_replications, 38500 bcm_multicast_replication_t *rep_array) 38501 { 38502 return BCM_E_UNAVAIL; 38503 } 38504 38505 #ifdef BCM_TOMAHAWK3_SUPPORT 38506 int 38507 bcm_tomahawk3_multicast_destroy( 38508 int unit, 38509 bcm_multicast_t group) 38510 { 38511 return bcm_esw_multicast_destroy(unit, group); 38512 } 38513 #endif 38514 38515 #ifdef BCM_TOMAHAWK3_SUPPORT 38516 int 38517 bcm_tomahawk3_multicast_detach( 38518 int unit) 38519 { 38520 return bcm_esw_multicast_detach(unit); 38521 } 38522 #endif 38523 38524 #ifdef BCM_TOMAHAWK3_SUPPORT 38525 int 38526 bcm_tomahawk3_multicast_egress_add( 38527 int unit, 38528 bcm_multicast_t group, 38529 bcm_gport_t port, 38530 bcm_if_t encap_id) 38531 { 38532 return bcm_esw_multicast_egress_add(unit, group, port, encap_id); 38533 } 38534 #endif 38535 38536 #ifdef BCM_TOMAHAWK3_SUPPORT 38537 int 38538 bcm_tomahawk3_multicast_egress_delete( 38539 int unit, 38540 bcm_multicast_t group, 38541 bcm_gport_t port, 38542 bcm_if_t encap_id) 38543 { 38544 return bcm_esw_multicast_egress_delete(unit, group, port, encap_id); 38545 } 38546 #endif 38547 38548 #ifdef BCM_TOMAHAWK3_SUPPORT 38549 int 38550 bcm_tomahawk3_multicast_egress_delete_all( 38551 int unit, 38552 bcm_multicast_t group) 38553 { 38554 return bcm_esw_multicast_egress_delete_all(unit, group); 38555 } 38556 #endif 38557 38558 #ifdef BCM_TOMAHAWK3_SUPPORT 38559 int 38560 bcm_tomahawk3_multicast_egress_get( 38561 int unit, 38562 bcm_multicast_t group, 38563 int port_max, 38564 bcm_gport_t *port_array, 38565 bcm_if_t *encap_id_array, 38566 int *port_count) 38567 { 38568 return bcm_esw_multicast_egress_get(unit, group, port_max, port_array, encap_id_array, port_count); 38569 } 38570 #endif 38571 38572 #ifdef BCM_TOMAHAWK3_SUPPORT 38573 int 38574 bcm_tomahawk3_multicast_egress_object_encap_get( 38575 int unit, 38576 bcm_multicast_t group, 38577 bcm_if_t intf, 38578 bcm_if_t *encap_id) 38579 { 38580 return bcm_esw_multicast_egress_object_encap_get(unit, group, intf, encap_id); 38581 } 38582 #endif 38583 38584 #ifdef BCM_TOMAHAWK3_SUPPORT 38585 int 38586 bcm_tomahawk3_multicast_egress_set( 38587 int unit, 38588 bcm_multicast_t group, 38589 int port_count, 38590 bcm_gport_t *port_array, 38591 bcm_if_t *encap_id_array) 38592 { 38593 return bcm_esw_multicast_egress_set(unit, group, port_count, port_array, encap_id_array); 38594 } 38595 #endif 38596 38597 #ifdef BCM_TOMAHAWK3_SUPPORT 38598 int 38599 bcm_tomahawk3_multicast_egress_subscriber_add( 38600 int unit, 38601 bcm_multicast_t group, 38602 bcm_gport_t port, 38603 bcm_if_t encap_id, 38604 bcm_gport_t subscriber_queue) 38605 { 38606 return bcm_esw_multicast_egress_subscriber_add(unit, group, port, encap_id, subscriber_queue); 38607 } 38608 #endif 38609 38610 #ifdef BCM_TOMAHAWK3_SUPPORT 38611 int 38612 bcm_tomahawk3_multicast_egress_subscriber_delete( 38613 int unit, 38614 bcm_multicast_t group, 38615 bcm_gport_t port, 38616 bcm_if_t encap_id, 38617 bcm_gport_t subscriber_queue) 38618 { 38619 return bcm_esw_multicast_egress_subscriber_delete(unit, group, port, encap_id, subscriber_queue); 38620 } 38621 #endif 38622 38623 #ifdef BCM_TOMAHAWK3_SUPPORT 38624 int 38625 bcm_tomahawk3_multicast_egress_subscriber_get( 38626 int unit, 38627 bcm_multicast_t group, 38628 int port_max, 38629 bcm_gport_t *port_array, 38630 bcm_if_t *encap_id_array, 38631 bcm_gport_t *subscriber_queue_array, 38632 int *port_count) 38633 { 38634 return bcm_esw_multicast_egress_subscriber_get(unit, group, port_max, port_array, encap_id_array, subscriber_queue_array, port_count); 38635 } 38636 #endif 38637 38638 #ifdef BCM_TOMAHAWK3_SUPPORT 38639 int 38640 bcm_tomahawk3_multicast_egress_subscriber_qos_map_get( 38641 int unit, 38642 bcm_multicast_t group, 38643 bcm_gport_t port, 38644 bcm_gport_t subscriber_queue, 38645 int *qos_map_id) 38646 { 38647 return bcm_esw_multicast_egress_subscriber_qos_map_get(unit, group, port, subscriber_queue, qos_map_id); 38648 } 38649 #endif 38650 38651 #ifdef BCM_TOMAHAWK3_SUPPORT 38652 int 38653 bcm_tomahawk3_multicast_egress_subscriber_qos_map_set( 38654 int unit, 38655 bcm_multicast_t group, 38656 bcm_gport_t port, 38657 bcm_gport_t subscriber_queue, 38658 int qos_map_id) 38659 { 38660 return bcm_esw_multicast_egress_subscriber_qos_map_set(unit, group, port, subscriber_queue, qos_map_id); 38661 } 38662 #endif 38663 38664 #ifdef BCM_TOMAHAWK3_SUPPORT 38665 int 38666 bcm_tomahawk3_multicast_egress_subscriber_set( 38667 int unit, 38668 bcm_multicast_t group, 38669 int port_count, 38670 bcm_gport_t *port_array, 38671 bcm_if_t *encap_id_array, 38672 bcm_gport_t *subscriber_queue_array) 38673 { 38674 return bcm_esw_multicast_egress_subscriber_set(unit, group, port_count, port_array, encap_id_array, subscriber_queue_array); 38675 } 38676 #endif 38677 38678 #ifdef BCM_TOMAHAWK3_SUPPORT 38679 int 38680 bcm_tomahawk3_multicast_encap_extension_create( 38681 int unit, 38682 uint32 flags, 38683 bcm_if_t *multicast_replication_index, 38684 int encap_extension_count, 38685 bcm_if_t *encap_extension_array) 38686 { 38687 return bcm_esw_multicast_encap_extension_create(unit, flags, multicast_replication_index, encap_extension_count, encap_extension_array); 38688 } 38689 #endif 38690 38691 #ifdef BCM_TOMAHAWK3_SUPPORT 38692 int 38693 bcm_tomahawk3_multicast_encap_extension_delete_all( 38694 int unit) 38695 { 38696 return bcm_esw_multicast_encap_extension_delete_all(unit); 38697 } 38698 #endif 38699 38700 #ifdef BCM_TOMAHAWK3_SUPPORT 38701 int 38702 bcm_tomahawk3_multicast_encap_extension_destroy( 38703 int unit, 38704 uint32 flags, 38705 bcm_if_t multicast_replication_index) 38706 { 38707 return bcm_esw_multicast_encap_extension_destroy(unit, flags, multicast_replication_index); 38708 } 38709 #endif 38710 38711 #ifdef BCM_TOMAHAWK3_SUPPORT 38712 int 38713 bcm_tomahawk3_multicast_encap_extension_get( 38714 int unit, 38715 uint32 flags, 38716 bcm_if_t multicast_replication_index, 38717 int encap_max, 38718 bcm_if_t *encap_extension_array, 38719 int *encap_extension_count) 38720 { 38721 return bcm_esw_multicast_encap_extension_get(unit, flags, multicast_replication_index, encap_max, encap_extension_array, encap_extension_count); 38722 } 38723 #endif 38724 38725 #ifdef BCM_TOMAHAWK3_SUPPORT 38726 int 38727 bcm_tomahawk3_multicast_encap_extension_traverse( 38728 int unit, 38729 bcm_multicast_encap_extension_traverse_cb trav_fn, 38730 void *user_data) 38731 { 38732 return bcm_esw_multicast_encap_extension_traverse(unit, trav_fn, user_data); 38733 } 38734 #endif 38735 38736 #ifdef BCM_TOMAHAWK3_SUPPORT 38737 int 38738 bcm_tomahawk3_multicast_extender_encap_get( 38739 int unit, 38740 bcm_multicast_t group, 38741 bcm_gport_t port, 38742 bcm_gport_t extender_port_id, 38743 bcm_if_t *encap_id) 38744 { 38745 return bcm_esw_multicast_extender_encap_get(unit, group, port, extender_port_id, encap_id); 38746 } 38747 #endif 38748 38749 int 38750 bcm_tomahawk3_multicast_fabric_distribution_get( 38751 int unit, 38752 bcm_multicast_t group, 38753 bcm_fabric_distribution_t *ds_id) 38754 { 38755 return BCM_E_UNAVAIL; 38756 } 38757 38758 int 38759 bcm_tomahawk3_multicast_fabric_distribution_set( 38760 int unit, 38761 bcm_multicast_t group, 38762 bcm_fabric_distribution_t ds_id) 38763 { 38764 return BCM_E_UNAVAIL; 38765 } 38766 38767 int 38768 bcm_tomahawk3_multicast_get( 38769 int unit, 38770 bcm_multicast_t group, 38771 uint32 flags, 38772 int replication_max, 38773 bcm_multicast_replication_t *out_rep_array, 38774 int *rep_count) 38775 { 38776 return BCM_E_UNAVAIL; 38777 } 38778 38779 #ifdef BCM_TOMAHAWK3_SUPPORT 38780 int 38781 bcm_tomahawk3_multicast_group_free_range_get( 38782 int unit, 38783 uint32 type_flag, 38784 bcm_multicast_t *group_min, 38785 bcm_multicast_t *group_max) 38786 { 38787 return bcm_esw_multicast_group_free_range_get(unit, type_flag, group_min, group_max); 38788 } 38789 #endif 38790 38791 #ifdef BCM_TOMAHAWK3_SUPPORT 38792 int 38793 bcm_tomahawk3_multicast_group_get( 38794 int unit, 38795 bcm_multicast_t group, 38796 uint32 *flags) 38797 { 38798 return bcm_esw_multicast_group_get(unit, group, flags); 38799 } 38800 #endif 38801 38802 #ifdef BCM_TOMAHAWK3_SUPPORT 38803 int 38804 bcm_tomahawk3_multicast_group_is_free( 38805 int unit, 38806 bcm_multicast_t group) 38807 { 38808 return bcm_esw_multicast_group_is_free(unit, group); 38809 } 38810 #endif 38811 38812 #ifdef BCM_TOMAHAWK3_SUPPORT 38813 int 38814 bcm_tomahawk3_multicast_group_traverse( 38815 int unit, 38816 bcm_multicast_group_traverse_cb_t trav_fn, 38817 uint32 flags, 38818 void *user_data) 38819 { 38820 return bcm_esw_multicast_group_traverse(unit, trav_fn, flags, user_data); 38821 } 38822 #endif 38823 38824 #ifdef BCM_TOMAHAWK3_SUPPORT 38825 int 38826 bcm_tomahawk3_multicast_ingress_add( 38827 int unit, 38828 bcm_multicast_t group, 38829 bcm_gport_t port, 38830 bcm_if_t encap_id) 38831 { 38832 return bcm_esw_multicast_ingress_add(unit, group, port, encap_id); 38833 } 38834 #endif 38835 38836 #ifdef BCM_TOMAHAWK3_SUPPORT 38837 int 38838 bcm_tomahawk3_multicast_ingress_delete( 38839 int unit, 38840 bcm_multicast_t group, 38841 bcm_gport_t port, 38842 bcm_if_t encap_id) 38843 { 38844 return bcm_esw_multicast_ingress_delete(unit, group, port, encap_id); 38845 } 38846 #endif 38847 38848 #ifdef BCM_TOMAHAWK3_SUPPORT 38849 int 38850 bcm_tomahawk3_multicast_ingress_delete_all( 38851 int unit, 38852 bcm_multicast_t group) 38853 { 38854 return bcm_esw_multicast_ingress_delete_all(unit, group); 38855 } 38856 #endif 38857 38858 #ifdef BCM_TOMAHAWK3_SUPPORT 38859 int 38860 bcm_tomahawk3_multicast_ingress_get( 38861 int unit, 38862 bcm_multicast_t group, 38863 int port_max, 38864 bcm_gport_t *port_array, 38865 bcm_if_t *encap_id_array, 38866 int *port_count) 38867 { 38868 return bcm_esw_multicast_ingress_get(unit, group, port_max, port_array, encap_id_array, port_count); 38869 } 38870 #endif 38871 38872 #ifdef BCM_TOMAHAWK3_SUPPORT 38873 int 38874 bcm_tomahawk3_multicast_ingress_set( 38875 int unit, 38876 bcm_multicast_t group, 38877 int port_count, 38878 bcm_gport_t *port_array, 38879 bcm_if_t *encap_id_array) 38880 { 38881 return bcm_esw_multicast_ingress_set(unit, group, port_count, port_array, encap_id_array); 38882 } 38883 #endif 38884 38885 #ifdef BCM_TOMAHAWK3_SUPPORT 38886 int 38887 bcm_tomahawk3_multicast_init( 38888 int unit) 38889 { 38890 return bcm_esw_multicast_init(unit); 38891 } 38892 #endif 38893 38894 #ifdef BCM_TOMAHAWK3_SUPPORT 38895 int 38896 bcm_tomahawk3_multicast_l2_encap_get( 38897 int unit, 38898 bcm_multicast_t group, 38899 bcm_gport_t port, 38900 bcm_vlan_t vlan, 38901 bcm_if_t *encap_id) 38902 { 38903 return bcm_esw_multicast_l2_encap_get(unit, group, port, vlan, encap_id); 38904 } 38905 #endif 38906 38907 #ifdef BCM_TOMAHAWK3_SUPPORT 38908 int 38909 bcm_tomahawk3_multicast_l2gre_encap_get( 38910 int unit, 38911 bcm_multicast_t group, 38912 bcm_gport_t port, 38913 bcm_gport_t l2gre_port_id, 38914 bcm_if_t *encap_id) 38915 { 38916 return bcm_esw_multicast_l2gre_encap_get(unit, group, port, l2gre_port_id, encap_id); 38917 } 38918 #endif 38919 38920 #ifdef BCM_TOMAHAWK3_SUPPORT 38921 int 38922 bcm_tomahawk3_multicast_l3_encap_get( 38923 int unit, 38924 bcm_multicast_t group, 38925 bcm_gport_t port, 38926 bcm_if_t intf, 38927 bcm_if_t *encap_id) 38928 { 38929 return bcm_esw_multicast_l3_encap_get(unit, group, port, intf, encap_id); 38930 } 38931 #endif 38932 38933 #ifdef BCM_TOMAHAWK3_SUPPORT 38934 int 38935 bcm_tomahawk3_multicast_mac_encap_get( 38936 int unit, 38937 bcm_multicast_t group, 38938 bcm_gport_t port, 38939 bcm_gport_t mac_port_id, 38940 bcm_if_t *encap_id) 38941 { 38942 return bcm_esw_multicast_mac_encap_get(unit, group, port, mac_port_id, encap_id); 38943 } 38944 #endif 38945 38946 #ifdef BCM_TOMAHAWK3_SUPPORT 38947 int 38948 bcm_tomahawk3_multicast_mim_encap_get( 38949 int unit, 38950 bcm_multicast_t group, 38951 bcm_gport_t port, 38952 bcm_gport_t mim_port_id, 38953 bcm_if_t *encap_id) 38954 { 38955 return bcm_esw_multicast_mim_encap_get(unit, group, port, mim_port_id, encap_id); 38956 } 38957 #endif 38958 38959 #ifdef BCM_TOMAHAWK3_SUPPORT 38960 int 38961 bcm_tomahawk3_multicast_multi_alloc( 38962 int unit, 38963 bcm_multicast_multi_info_t mc_multi_info, 38964 bcm_multicast_t *base_mc_group) 38965 { 38966 return bcm_esw_multicast_multi_alloc(unit, mc_multi_info, base_mc_group); 38967 } 38968 #endif 38969 38970 #ifdef BCM_TOMAHAWK3_SUPPORT 38971 int 38972 bcm_tomahawk3_multicast_multi_free( 38973 int unit, 38974 bcm_multicast_t base_mc_group) 38975 { 38976 return bcm_esw_multicast_multi_free(unit, base_mc_group); 38977 } 38978 #endif 38979 38980 #ifdef BCM_TOMAHAWK3_SUPPORT 38981 int 38982 bcm_tomahawk3_multicast_niv_encap_get( 38983 int unit, 38984 bcm_multicast_t group, 38985 bcm_gport_t port, 38986 bcm_gport_t niv_port_id, 38987 bcm_if_t *encap_id) 38988 { 38989 return bcm_esw_multicast_niv_encap_get(unit, group, port, niv_port_id, encap_id); 38990 } 38991 #endif 38992 38993 #ifdef BCM_TOMAHAWK3_SUPPORT 38994 int 38995 bcm_tomahawk3_multicast_repl_get( 38996 int unit, 38997 int index, 38998 bcm_port_t port, 38999 bcm_vlan_vector_t vlan_vec) 39000 { 39001 return bcm_esw_multicast_repl_get(unit, index, port, vlan_vec); 39002 } 39003 #endif 39004 39005 #ifdef BCM_TOMAHAWK3_SUPPORT 39006 int 39007 bcm_tomahawk3_multicast_repl_set( 39008 int unit, 39009 int mc_index, 39010 bcm_port_t port, 39011 bcm_vlan_vector_t vlan_vec) 39012 { 39013 return bcm_esw_multicast_repl_set(unit, mc_index, port, vlan_vec); 39014 } 39015 #endif 39016 39017 int 39018 bcm_tomahawk3_multicast_set( 39019 int unit, 39020 bcm_multicast_t group, 39021 uint32 flags, 39022 int nof_replications, 39023 bcm_multicast_replication_t *rep_array) 39024 { 39025 return BCM_E_UNAVAIL; 39026 } 39027 39028 #ifdef BCM_TOMAHAWK3_SUPPORT 39029 int 39030 bcm_tomahawk3_multicast_stat_control_get( 39031 int unit, 39032 bcm_core_t core_id, 39033 uint32 flags, 39034 int command_id, 39035 bcm_multicast_stat_control_type_t type, 39036 int *arg) 39037 { 39038 return bcm_esw_multicast_stat_control_get(unit, core_id, flags, command_id, type, arg); 39039 } 39040 #endif 39041 39042 #ifdef BCM_TOMAHAWK3_SUPPORT 39043 int 39044 bcm_tomahawk3_multicast_stat_control_set( 39045 int unit, 39046 bcm_core_t core_id, 39047 uint32 flags, 39048 int command_id, 39049 bcm_multicast_stat_control_type_t type, 39050 int arg) 39051 { 39052 return bcm_esw_multicast_stat_control_set(unit, core_id, flags, command_id, type, arg); 39053 } 39054 #endif 39055 39056 #ifdef BCM_TOMAHAWK3_SUPPORT 39057 int 39058 bcm_tomahawk3_multicast_subport_encap_get( 39059 int unit, 39060 bcm_multicast_t group, 39061 bcm_gport_t port, 39062 bcm_gport_t subport, 39063 bcm_if_t *encap_id) 39064 { 39065 return bcm_esw_multicast_subport_encap_get(unit, group, port, subport, encap_id); 39066 } 39067 #endif 39068 39069 #ifdef BCM_TOMAHAWK3_SUPPORT 39070 int 39071 bcm_tomahawk3_multicast_trill_encap_get( 39072 int unit, 39073 bcm_multicast_t group, 39074 bcm_gport_t port, 39075 bcm_if_t intf, 39076 bcm_if_t *encap_id) 39077 { 39078 return bcm_esw_multicast_trill_encap_get(unit, group, port, intf, encap_id); 39079 } 39080 #endif 39081 39082 #ifdef BCM_TOMAHAWK3_SUPPORT 39083 int 39084 bcm_tomahawk3_multicast_vlan_encap_get( 39085 int unit, 39086 bcm_multicast_t group, 39087 bcm_gport_t port, 39088 bcm_gport_t vlan_port_id, 39089 bcm_if_t *encap_id) 39090 { 39091 return bcm_esw_multicast_vlan_encap_get(unit, group, port, vlan_port_id, encap_id); 39092 } 39093 #endif 39094 39095 #ifdef BCM_TOMAHAWK3_SUPPORT 39096 int 39097 bcm_tomahawk3_multicast_vpls_encap_get( 39098 int unit, 39099 bcm_multicast_t group, 39100 bcm_gport_t port, 39101 bcm_gport_t mpls_port_id, 39102 bcm_if_t *encap_id) 39103 { 39104 return bcm_esw_multicast_vpls_encap_get(unit, group, port, mpls_port_id, encap_id); 39105 } 39106 #endif 39107 39108 #ifdef BCM_TOMAHAWK3_SUPPORT 39109 int 39110 bcm_tomahawk3_multicast_vxlan_encap_get( 39111 int unit, 39112 bcm_multicast_t group, 39113 bcm_gport_t port, 39114 bcm_gport_t vxlan_port_id, 39115 bcm_if_t *encap_id) 39116 { 39117 return bcm_esw_multicast_vxlan_encap_get(unit, group, port, vxlan_port_id, encap_id); 39118 } 39119 #endif 39120 39121 #ifdef BCM_TOMAHAWK3_SUPPORT 39122 int 39123 bcm_tomahawk3_multicast_wlan_encap_get( 39124 int unit, 39125 bcm_multicast_t group, 39126 bcm_gport_t port, 39127 bcm_gport_t wlan_port_id, 39128 bcm_if_t *encap_id) 39129 { 39130 return bcm_esw_multicast_wlan_encap_get(unit, group, port, wlan_port_id, encap_id); 39131 } 39132 #endif 39133 39134 #if defined(INCLUDE_L3) 39135 #ifdef BCM_TOMAHAWK3_SUPPORT 39136 int 39137 bcm_tomahawk3_niv_cleanup( 39138 int unit) 39139 { 39140 return bcm_esw_niv_cleanup(unit); 39141 } 39142 #endif 39143 #endif 39144 39145 #if defined(INCLUDE_L3) 39146 #ifdef BCM_TOMAHAWK3_SUPPORT 39147 int 39148 bcm_tomahawk3_niv_egress_add( 39149 int unit, 39150 bcm_gport_t niv_port, 39151 bcm_niv_egress_t *niv_egress) 39152 { 39153 return bcm_esw_niv_egress_add(unit, niv_port, niv_egress); 39154 } 39155 #endif 39156 #endif 39157 39158 #if defined(INCLUDE_L3) 39159 #ifdef BCM_TOMAHAWK3_SUPPORT 39160 int 39161 bcm_tomahawk3_niv_egress_delete( 39162 int unit, 39163 bcm_gport_t niv_port, 39164 bcm_niv_egress_t *niv_egress) 39165 { 39166 return bcm_esw_niv_egress_delete(unit, niv_port, niv_egress); 39167 } 39168 #endif 39169 #endif 39170 39171 #if defined(INCLUDE_L3) 39172 #ifdef BCM_TOMAHAWK3_SUPPORT 39173 int 39174 bcm_tomahawk3_niv_egress_delete_all( 39175 int unit, 39176 bcm_gport_t niv_port) 39177 { 39178 return bcm_esw_niv_egress_delete_all(unit, niv_port); 39179 } 39180 #endif 39181 #endif 39182 39183 #if defined(INCLUDE_L3) 39184 #ifdef BCM_TOMAHAWK3_SUPPORT 39185 int 39186 bcm_tomahawk3_niv_egress_get( 39187 int unit, 39188 bcm_gport_t niv_port, 39189 int array_size, 39190 bcm_niv_egress_t *niv_egress_array, 39191 int *count) 39192 { 39193 return bcm_esw_niv_egress_get(unit, niv_port, array_size, niv_egress_array, count); 39194 } 39195 #endif 39196 #endif 39197 39198 #if defined(INCLUDE_L3) 39199 #ifdef BCM_TOMAHAWK3_SUPPORT 39200 int 39201 bcm_tomahawk3_niv_egress_set( 39202 int unit, 39203 bcm_gport_t niv_port, 39204 int array_size, 39205 bcm_niv_egress_t *niv_egress_array) 39206 { 39207 return bcm_esw_niv_egress_set(unit, niv_port, array_size, niv_egress_array); 39208 } 39209 #endif 39210 #endif 39211 39212 #if defined(INCLUDE_L3) 39213 #ifdef BCM_TOMAHAWK3_SUPPORT 39214 int 39215 bcm_tomahawk3_niv_forward_add( 39216 int unit, 39217 bcm_niv_forward_t *iv_fwd_entry) 39218 { 39219 return bcm_esw_niv_forward_add(unit, iv_fwd_entry); 39220 } 39221 #endif 39222 #endif 39223 39224 #if defined(INCLUDE_L3) 39225 #ifdef BCM_TOMAHAWK3_SUPPORT 39226 int 39227 bcm_tomahawk3_niv_forward_delete( 39228 int unit, 39229 bcm_niv_forward_t *iv_fwd_entry) 39230 { 39231 return bcm_esw_niv_forward_delete(unit, iv_fwd_entry); 39232 } 39233 #endif 39234 #endif 39235 39236 #if defined(INCLUDE_L3) 39237 #ifdef BCM_TOMAHAWK3_SUPPORT 39238 int 39239 bcm_tomahawk3_niv_forward_delete_all( 39240 int unit) 39241 { 39242 return bcm_esw_niv_forward_delete_all(unit); 39243 } 39244 #endif 39245 #endif 39246 39247 #if defined(INCLUDE_L3) 39248 #ifdef BCM_TOMAHAWK3_SUPPORT 39249 int 39250 bcm_tomahawk3_niv_forward_get( 39251 int unit, 39252 bcm_niv_forward_t *iv_fwd_entry) 39253 { 39254 return bcm_esw_niv_forward_get(unit, iv_fwd_entry); 39255 } 39256 #endif 39257 #endif 39258 39259 #if defined(INCLUDE_L3) 39260 #ifdef BCM_TOMAHAWK3_SUPPORT 39261 int 39262 bcm_tomahawk3_niv_forward_traverse( 39263 int unit, 39264 bcm_niv_forward_traverse_cb cb, 39265 void *user_data) 39266 { 39267 return bcm_esw_niv_forward_traverse(unit, cb, user_data); 39268 } 39269 #endif 39270 #endif 39271 39272 #if defined(INCLUDE_L3) 39273 #ifdef BCM_TOMAHAWK3_SUPPORT 39274 int 39275 bcm_tomahawk3_niv_init( 39276 int unit) 39277 { 39278 return bcm_esw_niv_init(unit); 39279 } 39280 #endif 39281 #endif 39282 39283 #if defined(INCLUDE_L3) 39284 #ifdef BCM_TOMAHAWK3_SUPPORT 39285 int 39286 bcm_tomahawk3_niv_port_add( 39287 int unit, 39288 bcm_niv_port_t *niv_port) 39289 { 39290 return bcm_esw_niv_port_add(unit, niv_port); 39291 } 39292 #endif 39293 #endif 39294 39295 #if defined(INCLUDE_L3) 39296 #ifdef BCM_TOMAHAWK3_SUPPORT 39297 int 39298 bcm_tomahawk3_niv_port_delete( 39299 int unit, 39300 bcm_gport_t niv_port_id) 39301 { 39302 return bcm_esw_niv_port_delete(unit, niv_port_id); 39303 } 39304 #endif 39305 #endif 39306 39307 #if defined(INCLUDE_L3) 39308 #ifdef BCM_TOMAHAWK3_SUPPORT 39309 int 39310 bcm_tomahawk3_niv_port_delete_all( 39311 int unit) 39312 { 39313 return bcm_esw_niv_port_delete_all(unit); 39314 } 39315 #endif 39316 #endif 39317 39318 #if defined(INCLUDE_L3) 39319 #ifdef BCM_TOMAHAWK3_SUPPORT 39320 int 39321 bcm_tomahawk3_niv_port_get( 39322 int unit, 39323 bcm_niv_port_t *niv_port) 39324 { 39325 return bcm_esw_niv_port_get(unit, niv_port); 39326 } 39327 #endif 39328 #endif 39329 39330 #if defined(INCLUDE_L3) 39331 #ifdef BCM_TOMAHAWK3_SUPPORT 39332 int 39333 bcm_tomahawk3_niv_port_traverse( 39334 int unit, 39335 bcm_niv_port_traverse_cb cb, 39336 void *user_data) 39337 { 39338 return bcm_esw_niv_port_traverse(unit, cb, user_data); 39339 } 39340 #endif 39341 #endif 39342 39343 #ifdef BCM_TOMAHAWK3_SUPPORT 39344 int 39345 bcm_tomahawk3_oam_ais_add( 39346 int unit, 39347 bcm_oam_ais_t *ais_ptr) 39348 { 39349 return bcm_esw_oam_ais_add(unit, ais_ptr); 39350 } 39351 #endif 39352 39353 #ifdef BCM_TOMAHAWK3_SUPPORT 39354 int 39355 bcm_tomahawk3_oam_ais_delete( 39356 int unit, 39357 bcm_oam_ais_t *ais_ptr) 39358 { 39359 return bcm_esw_oam_ais_delete(unit, ais_ptr); 39360 } 39361 #endif 39362 39363 #ifdef BCM_TOMAHAWK3_SUPPORT 39364 int 39365 bcm_tomahawk3_oam_ais_get( 39366 int unit, 39367 bcm_oam_ais_t *ais_ptr) 39368 { 39369 return bcm_esw_oam_ais_get(unit, ais_ptr); 39370 } 39371 #endif 39372 39373 #ifdef BCM_TOMAHAWK3_SUPPORT 39374 int 39375 bcm_tomahawk3_oam_control_get( 39376 int unit, 39377 bcm_oam_control_type_t type, 39378 uint64 *arg) 39379 { 39380 return bcm_esw_oam_control_get(unit, type, arg); 39381 } 39382 #endif 39383 39384 #ifdef BCM_TOMAHAWK3_SUPPORT 39385 int 39386 bcm_tomahawk3_oam_control_indexed_get( 39387 int unit, 39388 bcm_oam_control_key_t key, 39389 uint64 *arg) 39390 { 39391 return bcm_esw_oam_control_indexed_get(unit, key, arg); 39392 } 39393 #endif 39394 39395 #ifdef BCM_TOMAHAWK3_SUPPORT 39396 int 39397 bcm_tomahawk3_oam_control_indexed_set( 39398 int unit, 39399 bcm_oam_control_key_t key, 39400 uint64 arg) 39401 { 39402 return bcm_esw_oam_control_indexed_set(unit, key, arg); 39403 } 39404 #endif 39405 39406 #ifdef BCM_TOMAHAWK3_SUPPORT 39407 int 39408 bcm_tomahawk3_oam_control_set( 39409 int unit, 39410 bcm_oam_control_type_t type, 39411 uint64 arg) 39412 { 39413 return bcm_esw_oam_control_set(unit, type, arg); 39414 } 39415 #endif 39416 39417 #ifdef BCM_TOMAHAWK3_SUPPORT 39418 int 39419 bcm_tomahawk3_oam_csf_add( 39420 int unit, 39421 bcm_oam_csf_t *csf_ptr) 39422 { 39423 return bcm_esw_oam_csf_add(unit, csf_ptr); 39424 } 39425 #endif 39426 39427 #ifdef BCM_TOMAHAWK3_SUPPORT 39428 int 39429 bcm_tomahawk3_oam_csf_delete( 39430 int unit, 39431 bcm_oam_csf_t *csf_ptr) 39432 { 39433 return bcm_esw_oam_csf_delete(unit, csf_ptr); 39434 } 39435 #endif 39436 39437 #ifdef BCM_TOMAHAWK3_SUPPORT 39438 int 39439 bcm_tomahawk3_oam_csf_get( 39440 int unit, 39441 bcm_oam_csf_t *csf_ptr) 39442 { 39443 return bcm_esw_oam_csf_get(unit, csf_ptr); 39444 } 39445 #endif 39446 39447 #ifdef BCM_TOMAHAWK3_SUPPORT 39448 int 39449 bcm_tomahawk3_oam_delay_add( 39450 int unit, 39451 bcm_oam_delay_t *delay_ptr) 39452 { 39453 return bcm_esw_oam_delay_add(unit, delay_ptr); 39454 } 39455 #endif 39456 39457 #ifdef BCM_TOMAHAWK3_SUPPORT 39458 int 39459 bcm_tomahawk3_oam_delay_delete( 39460 int unit, 39461 bcm_oam_delay_t *delay_ptr) 39462 { 39463 return bcm_esw_oam_delay_delete(unit, delay_ptr); 39464 } 39465 #endif 39466 39467 #ifdef BCM_TOMAHAWK3_SUPPORT 39468 int 39469 bcm_tomahawk3_oam_delay_get( 39470 int unit, 39471 bcm_oam_delay_t *delay_ptr) 39472 { 39473 return bcm_esw_oam_delay_get(unit, delay_ptr); 39474 } 39475 #endif 39476 39477 #ifdef BCM_TOMAHAWK3_SUPPORT 39478 int 39479 bcm_tomahawk3_oam_detach( 39480 int unit) 39481 { 39482 return bcm_esw_oam_detach(unit); 39483 } 39484 #endif 39485 39486 #ifdef BCM_TOMAHAWK3_SUPPORT 39487 int 39488 bcm_tomahawk3_oam_endpoint_action_set( 39489 int unit, 39490 bcm_oam_endpoint_t id, 39491 bcm_oam_endpoint_action_t *action) 39492 { 39493 return bcm_esw_oam_endpoint_action_set(unit, id, action); 39494 } 39495 #endif 39496 39497 #ifdef BCM_TOMAHAWK3_SUPPORT 39498 int 39499 bcm_tomahawk3_oam_endpoint_create( 39500 int unit, 39501 bcm_oam_endpoint_info_t *endpoint_info) 39502 { 39503 return bcm_esw_oam_endpoint_create(unit, endpoint_info); 39504 } 39505 #endif 39506 39507 #ifdef BCM_TOMAHAWK3_SUPPORT 39508 int 39509 bcm_tomahawk3_oam_endpoint_destroy( 39510 int unit, 39511 bcm_oam_endpoint_t endpoint) 39512 { 39513 return bcm_esw_oam_endpoint_destroy(unit, endpoint); 39514 } 39515 #endif 39516 39517 #ifdef BCM_TOMAHAWK3_SUPPORT 39518 int 39519 bcm_tomahawk3_oam_endpoint_destroy_all( 39520 int unit, 39521 bcm_oam_group_t group) 39522 { 39523 return bcm_esw_oam_endpoint_destroy_all(unit, group); 39524 } 39525 #endif 39526 39527 #ifdef BCM_TOMAHAWK3_SUPPORT 39528 int 39529 bcm_tomahawk3_oam_endpoint_egress_intf_egress_attach( 39530 int unit, 39531 bcm_oam_endpoint_t endpoint_id, 39532 bcm_if_t egress_intf) 39533 { 39534 return bcm_esw_oam_endpoint_egress_intf_egress_attach(unit, endpoint_id, egress_intf); 39535 } 39536 #endif 39537 39538 #ifdef BCM_TOMAHAWK3_SUPPORT 39539 int 39540 bcm_tomahawk3_oam_endpoint_egress_intf_egress_attach_get( 39541 int unit, 39542 bcm_oam_endpoint_t endpoint_id, 39543 int max_count, 39544 bcm_if_t *egress_intf, 39545 int *count) 39546 { 39547 return bcm_esw_oam_endpoint_egress_intf_egress_attach_get(unit, endpoint_id, max_count, egress_intf, count); 39548 } 39549 #endif 39550 39551 #ifdef BCM_TOMAHAWK3_SUPPORT 39552 int 39553 bcm_tomahawk3_oam_endpoint_egress_intf_egress_detach( 39554 int unit, 39555 bcm_oam_endpoint_t endpoint_id, 39556 bcm_if_t egress_intf) 39557 { 39558 return bcm_esw_oam_endpoint_egress_intf_egress_detach(unit, endpoint_id, egress_intf); 39559 } 39560 #endif 39561 39562 #ifdef BCM_TOMAHAWK3_SUPPORT 39563 int 39564 bcm_tomahawk3_oam_endpoint_faults_multi_get( 39565 int unit, 39566 uint32 flags, 39567 bcm_oam_protocol_type_t endpoint_protocol, 39568 uint32 max_endpoints, 39569 bcm_oam_endpoint_fault_t *faults, 39570 uint32 *endpoint_count) 39571 { 39572 return bcm_esw_oam_endpoint_faults_multi_get(unit, flags, endpoint_protocol, max_endpoints, faults, endpoint_count); 39573 } 39574 #endif 39575 39576 #ifdef BCM_TOMAHAWK3_SUPPORT 39577 int 39578 bcm_tomahawk3_oam_endpoint_get( 39579 int unit, 39580 bcm_oam_endpoint_t endpoint, 39581 bcm_oam_endpoint_info_t *endpoint_info) 39582 { 39583 return bcm_esw_oam_endpoint_get(unit, endpoint, endpoint_info); 39584 } 39585 #endif 39586 39587 #ifdef BCM_TOMAHAWK3_SUPPORT 39588 int 39589 bcm_tomahawk3_oam_endpoint_gport_egress_attach( 39590 int unit, 39591 bcm_oam_endpoint_t endpoint, 39592 bcm_gport_t gport) 39593 { 39594 return bcm_esw_oam_endpoint_gport_egress_attach(unit, endpoint, gport); 39595 } 39596 #endif 39597 39598 #ifdef BCM_TOMAHAWK3_SUPPORT 39599 int 39600 bcm_tomahawk3_oam_endpoint_gport_egress_attach_get( 39601 int unit, 39602 bcm_oam_endpoint_t endpoint, 39603 int max_count, 39604 bcm_gport_t *gport, 39605 int *count) 39606 { 39607 return bcm_esw_oam_endpoint_gport_egress_attach_get(unit, endpoint, max_count, gport, count); 39608 } 39609 #endif 39610 39611 #ifdef BCM_TOMAHAWK3_SUPPORT 39612 int 39613 bcm_tomahawk3_oam_endpoint_gport_egress_detach( 39614 int unit, 39615 bcm_oam_endpoint_t endpoint, 39616 bcm_gport_t gport) 39617 { 39618 return bcm_esw_oam_endpoint_gport_egress_detach(unit, endpoint, gport); 39619 } 39620 #endif 39621 39622 #ifdef BCM_TOMAHAWK3_SUPPORT 39623 int 39624 bcm_tomahawk3_oam_endpoint_traverse( 39625 int unit, 39626 bcm_oam_group_t group, 39627 bcm_oam_endpoint_traverse_cb cb, 39628 void *user_data) 39629 { 39630 return bcm_esw_oam_endpoint_traverse(unit, group, cb, user_data); 39631 } 39632 #endif 39633 39634 #ifdef BCM_TOMAHAWK3_SUPPORT 39635 int 39636 bcm_tomahawk3_oam_event_register( 39637 int unit, 39638 bcm_oam_event_types_t event_types, 39639 bcm_oam_event_cb cb, 39640 void *user_data) 39641 { 39642 return bcm_esw_oam_event_register(unit, event_types, cb, user_data); 39643 } 39644 #endif 39645 39646 #ifdef BCM_TOMAHAWK3_SUPPORT 39647 int 39648 bcm_tomahawk3_oam_event_unregister( 39649 int unit, 39650 bcm_oam_event_types_t event_types, 39651 bcm_oam_event_cb cb) 39652 { 39653 return bcm_esw_oam_event_unregister(unit, event_types, cb); 39654 } 39655 #endif 39656 39657 #ifdef BCM_TOMAHAWK3_SUPPORT 39658 int 39659 bcm_tomahawk3_oam_group_create( 39660 int unit, 39661 bcm_oam_group_info_t *group_info) 39662 { 39663 return bcm_esw_oam_group_create(unit, group_info); 39664 } 39665 #endif 39666 39667 #ifdef BCM_TOMAHAWK3_SUPPORT 39668 int 39669 bcm_tomahawk3_oam_group_destroy( 39670 int unit, 39671 bcm_oam_group_t group) 39672 { 39673 return bcm_esw_oam_group_destroy(unit, group); 39674 } 39675 #endif 39676 39677 #ifdef BCM_TOMAHAWK3_SUPPORT 39678 int 39679 bcm_tomahawk3_oam_group_destroy_all( 39680 int unit) 39681 { 39682 return bcm_esw_oam_group_destroy_all(unit); 39683 } 39684 #endif 39685 39686 #ifdef BCM_TOMAHAWK3_SUPPORT 39687 int 39688 bcm_tomahawk3_oam_group_get( 39689 int unit, 39690 bcm_oam_group_t group, 39691 bcm_oam_group_info_t *group_info) 39692 { 39693 return bcm_esw_oam_group_get(unit, group, group_info); 39694 } 39695 #endif 39696 39697 #ifdef BCM_TOMAHAWK3_SUPPORT 39698 int 39699 bcm_tomahawk3_oam_group_traverse( 39700 int unit, 39701 bcm_oam_group_traverse_cb cb, 39702 void *user_data) 39703 { 39704 return bcm_esw_oam_group_traverse(unit, cb, user_data); 39705 } 39706 #endif 39707 39708 #ifdef BCM_TOMAHAWK3_SUPPORT 39709 int 39710 bcm_tomahawk3_oam_init( 39711 int unit) 39712 { 39713 return bcm_esw_oam_init(unit); 39714 } 39715 #endif 39716 39717 #ifdef BCM_TOMAHAWK3_SUPPORT 39718 int 39719 bcm_tomahawk3_oam_lif_profile_get( 39720 int unit, 39721 uint32 flags, 39722 bcm_gport_t gport, 39723 bcm_oam_profile_t *ingress_oam_profile, 39724 bcm_oam_profile_t *egress_oam_profile) 39725 { 39726 return bcm_esw_oam_lif_profile_get(unit, flags, gport, ingress_oam_profile, egress_oam_profile); 39727 } 39728 #endif 39729 39730 #ifdef BCM_TOMAHAWK3_SUPPORT 39731 int 39732 bcm_tomahawk3_oam_lif_profile_set( 39733 int unit, 39734 uint32 flags, 39735 bcm_gport_t gport, 39736 bcm_oam_profile_t ingress_oam_profile, 39737 bcm_oam_profile_t egress_oam_profile) 39738 { 39739 return bcm_esw_oam_lif_profile_set(unit, flags, gport, ingress_oam_profile, egress_oam_profile); 39740 } 39741 #endif 39742 39743 #ifdef BCM_TOMAHAWK3_SUPPORT 39744 int 39745 bcm_tomahawk3_oam_lookup_enable_get( 39746 int unit, 39747 bcm_oam_lookup_type_t type, 39748 bcm_oam_conditions_t *condition) 39749 { 39750 return bcm_esw_oam_lookup_enable_get(unit, type, condition); 39751 } 39752 #endif 39753 39754 #ifdef BCM_TOMAHAWK3_SUPPORT 39755 int 39756 bcm_tomahawk3_oam_lookup_enable_multi_set( 39757 int unit, 39758 bcm_oam_lookup_types_t types, 39759 bcm_oam_conditions_t conditions, 39760 int enable) 39761 { 39762 return bcm_esw_oam_lookup_enable_multi_set(unit, types, conditions, enable); 39763 } 39764 #endif 39765 39766 #ifdef BCM_TOMAHAWK3_SUPPORT 39767 int 39768 bcm_tomahawk3_oam_lookup_enable_set( 39769 int unit, 39770 bcm_oam_lookup_type_t type, 39771 bcm_oam_condition_t condition, 39772 int enable) 39773 { 39774 return bcm_esw_oam_lookup_enable_set(unit, type, condition, enable); 39775 } 39776 #endif 39777 39778 #ifdef BCM_TOMAHAWK3_SUPPORT 39779 int 39780 bcm_tomahawk3_oam_loopback_add( 39781 int unit, 39782 bcm_oam_loopback_t *loopback_ptr) 39783 { 39784 return bcm_esw_oam_loopback_add(unit, loopback_ptr); 39785 } 39786 #endif 39787 39788 #ifdef BCM_TOMAHAWK3_SUPPORT 39789 int 39790 bcm_tomahawk3_oam_loopback_delete( 39791 int unit, 39792 bcm_oam_loopback_t *loopback_ptr) 39793 { 39794 return bcm_esw_oam_loopback_delete(unit, loopback_ptr); 39795 } 39796 #endif 39797 39798 #ifdef BCM_TOMAHAWK3_SUPPORT 39799 int 39800 bcm_tomahawk3_oam_loopback_get( 39801 int unit, 39802 bcm_oam_loopback_t *loopback_ptr) 39803 { 39804 return bcm_esw_oam_loopback_get(unit, loopback_ptr); 39805 } 39806 #endif 39807 39808 #ifdef BCM_TOMAHAWK3_SUPPORT 39809 int 39810 bcm_tomahawk3_oam_loss_add( 39811 int unit, 39812 bcm_oam_loss_t *loss_ptr) 39813 { 39814 return bcm_esw_oam_loss_add(unit, loss_ptr); 39815 } 39816 #endif 39817 39818 #ifdef BCM_TOMAHAWK3_SUPPORT 39819 int 39820 bcm_tomahawk3_oam_loss_delete( 39821 int unit, 39822 bcm_oam_loss_t *loss_ptr) 39823 { 39824 return bcm_esw_oam_loss_delete(unit, loss_ptr); 39825 } 39826 #endif 39827 39828 #ifdef BCM_TOMAHAWK3_SUPPORT 39829 int 39830 bcm_tomahawk3_oam_loss_get( 39831 int unit, 39832 bcm_oam_loss_t *loss_ptr) 39833 { 39834 return bcm_esw_oam_loss_get(unit, loss_ptr); 39835 } 39836 #endif 39837 39838 int 39839 bcm_tomahawk3_oam_mpls_tp_channel_type_rx_delete( 39840 int unit, 39841 bcm_oam_mpls_tp_channel_type_t channel_type, 39842 int num_values, 39843 int *list_of_values) 39844 { 39845 return BCM_E_UNAVAIL; 39846 } 39847 39848 int 39849 bcm_tomahawk3_oam_mpls_tp_channel_type_rx_get( 39850 int unit, 39851 bcm_oam_mpls_tp_channel_type_t channel_type, 39852 int num_values, 39853 int *list_of_values, 39854 int *value_count) 39855 { 39856 return BCM_E_UNAVAIL; 39857 } 39858 39859 int 39860 bcm_tomahawk3_oam_mpls_tp_channel_type_rx_set( 39861 int unit, 39862 bcm_oam_mpls_tp_channel_type_t channel_type, 39863 int num_values, 39864 int *list_of_values) 39865 { 39866 return BCM_E_UNAVAIL; 39867 } 39868 39869 int 39870 bcm_tomahawk3_oam_mpls_tp_channel_type_tx_delete( 39871 int unit, 39872 bcm_oam_mpls_tp_channel_type_t channel_type, 39873 int value) 39874 { 39875 return BCM_E_UNAVAIL; 39876 } 39877 39878 int 39879 bcm_tomahawk3_oam_mpls_tp_channel_type_tx_get( 39880 int unit, 39881 bcm_oam_mpls_tp_channel_type_t channel_type, 39882 int *value) 39883 { 39884 return BCM_E_UNAVAIL; 39885 } 39886 39887 int 39888 bcm_tomahawk3_oam_mpls_tp_channel_type_tx_set( 39889 int unit, 39890 bcm_oam_mpls_tp_channel_type_t channel_type, 39891 int value) 39892 { 39893 return BCM_E_UNAVAIL; 39894 } 39895 39896 #ifdef BCM_TOMAHAWK3_SUPPORT 39897 int 39898 bcm_tomahawk3_oam_opcode_group_get( 39899 int unit, 39900 bcm_oam_protocol_type_t protocol, 39901 bcm_oam_opcode_t opcode, 39902 uint8 *opcode_group) 39903 { 39904 return bcm_esw_oam_opcode_group_get(unit, protocol, opcode, opcode_group); 39905 } 39906 #endif 39907 39908 #ifdef BCM_TOMAHAWK3_SUPPORT 39909 int 39910 bcm_tomahawk3_oam_opcode_group_set( 39911 int unit, 39912 bcm_oam_protocol_type_t protocol, 39913 bcm_oam_opcodes_t opcodes, 39914 uint8 opcode_group) 39915 { 39916 return bcm_esw_oam_opcode_group_set(unit, protocol, opcodes, opcode_group); 39917 } 39918 #endif 39919 39920 int 39921 bcm_tomahawk3_oam_opcode_map_get( 39922 int unit, 39923 int opcode, 39924 int *profile) 39925 { 39926 return BCM_E_UNAVAIL; 39927 } 39928 39929 int 39930 bcm_tomahawk3_oam_opcode_map_set( 39931 int unit, 39932 int opcode, 39933 int profile) 39934 { 39935 return BCM_E_UNAVAIL; 39936 } 39937 39938 #ifdef BCM_TOMAHAWK3_SUPPORT 39939 int 39940 bcm_tomahawk3_oam_opcodes_count_profile_create( 39941 int unit, 39942 uint8 *lm_count_profile) 39943 { 39944 return bcm_esw_oam_opcodes_count_profile_create(unit, lm_count_profile); 39945 } 39946 #endif 39947 39948 #ifdef BCM_TOMAHAWK3_SUPPORT 39949 int 39950 bcm_tomahawk3_oam_opcodes_count_profile_delete( 39951 int unit, 39952 uint8 lm_count_profile) 39953 { 39954 return bcm_esw_oam_opcodes_count_profile_delete(unit, lm_count_profile); 39955 } 39956 #endif 39957 39958 #ifdef BCM_TOMAHAWK3_SUPPORT 39959 int 39960 bcm_tomahawk3_oam_opcodes_count_profile_get( 39961 int unit, 39962 uint8 lm_count_profile, 39963 uint8 count_enable, 39964 bcm_oam_opcodes_t *opcodes_bitmap) 39965 { 39966 return bcm_esw_oam_opcodes_count_profile_get(unit, lm_count_profile, count_enable, opcodes_bitmap); 39967 } 39968 #endif 39969 39970 #ifdef BCM_TOMAHAWK3_SUPPORT 39971 int 39972 bcm_tomahawk3_oam_opcodes_count_profile_set( 39973 int unit, 39974 uint8 lm_count_profile, 39975 uint8 count_enable, 39976 bcm_oam_opcodes_t *opcodes_bitmap) 39977 { 39978 return bcm_esw_oam_opcodes_count_profile_set(unit, lm_count_profile, count_enable, opcodes_bitmap); 39979 } 39980 #endif 39981 39982 #ifdef BCM_TOMAHAWK3_SUPPORT 39983 int 39984 bcm_tomahawk3_oam_performance_event_register( 39985 int unit, 39986 bcm_oam_event_types_t event_types, 39987 bcm_oam_performance_event_cb cb, 39988 void *user_data) 39989 { 39990 return bcm_esw_oam_performance_event_register(unit, event_types, cb, user_data); 39991 } 39992 #endif 39993 39994 #ifdef BCM_TOMAHAWK3_SUPPORT 39995 int 39996 bcm_tomahawk3_oam_performance_event_unregister( 39997 int unit, 39998 bcm_oam_event_types_t event_types, 39999 bcm_oam_performance_event_cb cb) 40000 { 40001 return bcm_esw_oam_performance_event_unregister(unit, event_types, cb); 40002 } 40003 #endif 40004 40005 #ifdef BCM_TOMAHAWK3_SUPPORT 40006 int 40007 bcm_tomahawk3_oam_pm_event_register( 40008 int unit, 40009 bcm_oam_event_types_t event_types, 40010 bcm_oam_pm_event_cb cb, 40011 void *user_data) 40012 { 40013 return bcm_esw_oam_pm_event_register(unit, event_types, cb, user_data); 40014 } 40015 #endif 40016 40017 #ifdef BCM_TOMAHAWK3_SUPPORT 40018 int 40019 bcm_tomahawk3_oam_pm_event_unregister( 40020 int unit, 40021 bcm_oam_event_types_t event_types, 40022 bcm_oam_pm_event_cb cb) 40023 { 40024 return bcm_esw_oam_pm_event_unregister(unit, event_types, cb); 40025 } 40026 #endif 40027 40028 #ifdef BCM_TOMAHAWK3_SUPPORT 40029 int 40030 bcm_tomahawk3_oam_pm_profile_attach( 40031 int unit, 40032 bcm_oam_endpoint_t endpoint_id, 40033 int profile_id) 40034 { 40035 return bcm_esw_oam_pm_profile_attach(unit, endpoint_id, profile_id); 40036 } 40037 #endif 40038 40039 #ifdef BCM_TOMAHAWK3_SUPPORT 40040 int 40041 bcm_tomahawk3_oam_pm_profile_attach_get( 40042 int unit, 40043 bcm_oam_endpoint_t endpoint_id, 40044 int *profile_id) 40045 { 40046 return bcm_esw_oam_pm_profile_attach_get(unit, endpoint_id, profile_id); 40047 } 40048 #endif 40049 40050 #ifdef BCM_TOMAHAWK3_SUPPORT 40051 int 40052 bcm_tomahawk3_oam_pm_profile_create( 40053 int unit, 40054 bcm_oam_pm_profile_info_t *profile_info) 40055 { 40056 return bcm_esw_oam_pm_profile_create(unit, profile_info); 40057 } 40058 #endif 40059 40060 #ifdef BCM_TOMAHAWK3_SUPPORT 40061 int 40062 bcm_tomahawk3_oam_pm_profile_delete( 40063 int unit, 40064 bcm_oam_pm_profile_t profile_id) 40065 { 40066 return bcm_esw_oam_pm_profile_delete(unit, profile_id); 40067 } 40068 #endif 40069 40070 #ifdef BCM_TOMAHAWK3_SUPPORT 40071 int 40072 bcm_tomahawk3_oam_pm_profile_delete_all( 40073 int unit) 40074 { 40075 return bcm_esw_oam_pm_profile_delete_all(unit); 40076 } 40077 #endif 40078 40079 #ifdef BCM_TOMAHAWK3_SUPPORT 40080 int 40081 bcm_tomahawk3_oam_pm_profile_detach( 40082 int unit, 40083 bcm_oam_endpoint_t endpoint_id, 40084 int profile_id) 40085 { 40086 return bcm_esw_oam_pm_profile_detach(unit, endpoint_id, profile_id); 40087 } 40088 #endif 40089 40090 #ifdef BCM_TOMAHAWK3_SUPPORT 40091 int 40092 bcm_tomahawk3_oam_pm_profile_get( 40093 int unit, 40094 bcm_oam_pm_profile_info_t *profile_info) 40095 { 40096 return bcm_esw_oam_pm_profile_get(unit, profile_info); 40097 } 40098 #endif 40099 40100 #ifdef BCM_TOMAHAWK3_SUPPORT 40101 int 40102 bcm_tomahawk3_oam_pm_profile_traverse( 40103 int unit, 40104 bcm_oam_pm_profile_traverse_cb cb, 40105 void *user_data) 40106 { 40107 return bcm_esw_oam_pm_profile_traverse(unit, cb, user_data); 40108 } 40109 #endif 40110 40111 #ifdef BCM_TOMAHAWK3_SUPPORT 40112 int 40113 bcm_tomahawk3_oam_pm_raw_data_read_done( 40114 int unit, 40115 bcm_oam_event_types_t event_types, 40116 uint32 read_index) 40117 { 40118 return bcm_esw_oam_pm_raw_data_read_done(unit, event_types, read_index); 40119 } 40120 #endif 40121 40122 #ifdef BCM_TOMAHAWK3_SUPPORT 40123 int 40124 bcm_tomahawk3_oam_pm_stats_get( 40125 int unit, 40126 bcm_oam_endpoint_t endpoint_id, 40127 bcm_oam_pm_stats_t *stats_ptr) 40128 { 40129 return bcm_esw_oam_pm_stats_get(unit, endpoint_id, stats_ptr); 40130 } 40131 #endif 40132 40133 #ifdef BCM_TOMAHAWK3_SUPPORT 40134 int 40135 bcm_tomahawk3_oam_profile_action_get( 40136 int unit, 40137 uint32 flags, 40138 bcm_oam_profile_t profile_id, 40139 bcm_oam_action_key_t *oam_action_key, 40140 bcm_oam_action_result_t *oam_action_result) 40141 { 40142 return bcm_esw_oam_profile_action_get(unit, flags, profile_id, oam_action_key, oam_action_result); 40143 } 40144 #endif 40145 40146 #ifdef BCM_TOMAHAWK3_SUPPORT 40147 int 40148 bcm_tomahawk3_oam_profile_action_set( 40149 int unit, 40150 uint32 flags, 40151 bcm_oam_profile_t profile_id, 40152 bcm_oam_action_key_t *oam_action_key, 40153 bcm_oam_action_result_t *oam_action_result) 40154 { 40155 return bcm_esw_oam_profile_action_set(unit, flags, profile_id, oam_action_key, oam_action_result); 40156 } 40157 #endif 40158 40159 #ifdef BCM_TOMAHAWK3_SUPPORT 40160 int 40161 bcm_tomahawk3_oam_profile_create( 40162 int unit, 40163 uint32 flags, 40164 bcm_oam_profile_type_t oam_profile_type, 40165 bcm_oam_profile_t *profile_id) 40166 { 40167 return bcm_esw_oam_profile_create(unit, flags, oam_profile_type, profile_id); 40168 } 40169 #endif 40170 40171 #ifdef BCM_TOMAHAWK3_SUPPORT 40172 int 40173 bcm_tomahawk3_oam_profile_delete( 40174 int unit, 40175 uint32 flags, 40176 bcm_oam_profile_t profile_id) 40177 { 40178 return bcm_esw_oam_profile_delete(unit, flags, profile_id); 40179 } 40180 #endif 40181 40182 #ifdef BCM_TOMAHAWK3_SUPPORT 40183 int 40184 bcm_tomahawk3_oam_profile_id_get_by_type( 40185 int unit, 40186 uint8 profile_id, 40187 bcm_oam_profile_type_t oam_profile_type, 40188 uint32 *flags, 40189 bcm_oam_profile_t *enc_profile_id) 40190 { 40191 return bcm_esw_oam_profile_id_get_by_type(unit, profile_id, oam_profile_type, flags, enc_profile_id); 40192 } 40193 #endif 40194 40195 int 40196 bcm_tomahawk3_oam_protection_packet_header_get( 40197 int unit, 40198 bcm_pkt_blk_t *packet_header) 40199 { 40200 return BCM_E_UNAVAIL; 40201 } 40202 40203 int 40204 bcm_tomahawk3_oam_protection_packet_header_set( 40205 int unit, 40206 bcm_pkt_blk_t *packet_header) 40207 { 40208 return BCM_E_UNAVAIL; 40209 } 40210 40211 int 40212 bcm_tomahawk3_oam_psc_add( 40213 int unit, 40214 bcm_oam_psc_t *psc_ptr) 40215 { 40216 return BCM_E_UNAVAIL; 40217 } 40218 40219 int 40220 bcm_tomahawk3_oam_psc_delete( 40221 int unit, 40222 bcm_oam_psc_t *psc_ptr) 40223 { 40224 return BCM_E_UNAVAIL; 40225 } 40226 40227 int 40228 bcm_tomahawk3_oam_psc_get( 40229 int unit, 40230 bcm_oam_psc_t *psc_ptr) 40231 { 40232 return BCM_E_UNAVAIL; 40233 } 40234 40235 int 40236 bcm_tomahawk3_oam_pw_status_add( 40237 int unit, 40238 bcm_oam_pw_status_t *pw_status_ptr) 40239 { 40240 return BCM_E_UNAVAIL; 40241 } 40242 40243 int 40244 bcm_tomahawk3_oam_pw_status_delete( 40245 int unit, 40246 bcm_oam_pw_status_t *pw_status_ptr) 40247 { 40248 return BCM_E_UNAVAIL; 40249 } 40250 40251 int 40252 bcm_tomahawk3_oam_pw_status_get( 40253 int unit, 40254 bcm_oam_pw_status_t *pw_status_ptr) 40255 { 40256 return BCM_E_UNAVAIL; 40257 } 40258 40259 #ifdef BCM_TOMAHAWK3_SUPPORT 40260 int 40261 bcm_tomahawk3_oam_reflector_encap_create( 40262 int unit, 40263 uint32 flags, 40264 bcm_if_t *encap_id) 40265 { 40266 return bcm_esw_oam_reflector_encap_create(unit, flags, encap_id); 40267 } 40268 #endif 40269 40270 #ifdef BCM_TOMAHAWK3_SUPPORT 40271 int 40272 bcm_tomahawk3_oam_reflector_encap_destroy( 40273 int unit, 40274 uint32 flags, 40275 bcm_if_t encap_id) 40276 { 40277 return bcm_esw_oam_reflector_encap_destroy(unit, flags, encap_id); 40278 } 40279 #endif 40280 40281 #ifdef BCM_TOMAHAWK3_SUPPORT 40282 int 40283 bcm_tomahawk3_oam_sd_sf_detection_add( 40284 int unit, 40285 bcm_oam_sd_sf_detection_t *sd_sf_ptr) 40286 { 40287 return bcm_esw_oam_sd_sf_detection_add(unit, sd_sf_ptr); 40288 } 40289 #endif 40290 40291 #ifdef BCM_TOMAHAWK3_SUPPORT 40292 int 40293 bcm_tomahawk3_oam_sd_sf_detection_delete( 40294 int unit, 40295 bcm_oam_sd_sf_detection_t *sd_sf_ptr) 40296 { 40297 return bcm_esw_oam_sd_sf_detection_delete(unit, sd_sf_ptr); 40298 } 40299 #endif 40300 40301 #ifdef BCM_TOMAHAWK3_SUPPORT 40302 int 40303 bcm_tomahawk3_oam_sd_sf_detection_get( 40304 int unit, 40305 bcm_oam_sd_sf_detection_t *sd_sf_ptr) 40306 { 40307 return bcm_esw_oam_sd_sf_detection_get(unit, sd_sf_ptr); 40308 } 40309 #endif 40310 40311 #ifdef BCM_TOMAHAWK3_SUPPORT 40312 int 40313 bcm_tomahawk3_oam_tod_leap_control_get( 40314 int unit, 40315 bcm_oam_timestamp_format_t ts_format, 40316 bcm_oam_tod_leap_control_t *leap_info) 40317 { 40318 return bcm_esw_oam_tod_leap_control_get(unit, ts_format, leap_info); 40319 } 40320 #endif 40321 40322 #ifdef BCM_TOMAHAWK3_SUPPORT 40323 int 40324 bcm_tomahawk3_oam_tod_leap_control_set( 40325 int unit, 40326 bcm_oam_timestamp_format_t ts_format, 40327 bcm_oam_tod_leap_control_t leap_info) 40328 { 40329 return bcm_esw_oam_tod_leap_control_set(unit, ts_format, leap_info); 40330 } 40331 #endif 40332 40333 #ifdef BCM_TOMAHAWK3_SUPPORT 40334 int 40335 bcm_tomahawk3_oam_trunk_ports_add( 40336 int unit, 40337 bcm_gport_t trunk_gport, 40338 int max_ports, 40339 bcm_gport_t *port_arr) 40340 { 40341 return bcm_esw_oam_trunk_ports_add(unit, trunk_gport, max_ports, port_arr); 40342 } 40343 #endif 40344 40345 #ifdef BCM_TOMAHAWK3_SUPPORT 40346 int 40347 bcm_tomahawk3_oam_trunk_ports_delete( 40348 int unit, 40349 bcm_gport_t trunk_gport, 40350 int max_ports, 40351 bcm_gport_t *port_arr) 40352 { 40353 return bcm_esw_oam_trunk_ports_delete(unit, trunk_gport, max_ports, port_arr); 40354 } 40355 #endif 40356 40357 #ifdef BCM_TOMAHAWK3_SUPPORT 40358 int 40359 bcm_tomahawk3_oam_trunk_ports_get( 40360 int unit, 40361 bcm_gport_t trunk_gport, 40362 int max_ports, 40363 bcm_gport_t *port_arr, 40364 int *port_count) 40365 { 40366 return bcm_esw_oam_trunk_ports_get(unit, trunk_gport, max_ports, port_arr, port_count); 40367 } 40368 #endif 40369 40370 #ifdef BCM_TOMAHAWK3_SUPPORT 40371 int 40372 bcm_tomahawk3_oam_tst_rx_add( 40373 int unit, 40374 bcm_oam_tst_rx_t *tst_ptr) 40375 { 40376 return bcm_esw_oam_tst_rx_add(unit, tst_ptr); 40377 } 40378 #endif 40379 40380 #ifdef BCM_TOMAHAWK3_SUPPORT 40381 int 40382 bcm_tomahawk3_oam_tst_rx_delete( 40383 int unit, 40384 bcm_oam_tst_rx_t *tst_ptr) 40385 { 40386 return bcm_esw_oam_tst_rx_delete(unit, tst_ptr); 40387 } 40388 #endif 40389 40390 #ifdef BCM_TOMAHAWK3_SUPPORT 40391 int 40392 bcm_tomahawk3_oam_tst_rx_get( 40393 int unit, 40394 bcm_oam_tst_rx_t *tst_ptr) 40395 { 40396 return bcm_esw_oam_tst_rx_get(unit, tst_ptr); 40397 } 40398 #endif 40399 40400 #ifdef BCM_TOMAHAWK3_SUPPORT 40401 int 40402 bcm_tomahawk3_oam_tst_tx_add( 40403 int unit, 40404 bcm_oam_tst_tx_t *tst_ptr) 40405 { 40406 return bcm_esw_oam_tst_tx_add(unit, tst_ptr); 40407 } 40408 #endif 40409 40410 #ifdef BCM_TOMAHAWK3_SUPPORT 40411 int 40412 bcm_tomahawk3_oam_tst_tx_delete( 40413 int unit, 40414 bcm_oam_tst_tx_t *tst_ptr) 40415 { 40416 return bcm_esw_oam_tst_tx_delete(unit, tst_ptr); 40417 } 40418 #endif 40419 40420 #ifdef BCM_TOMAHAWK3_SUPPORT 40421 int 40422 bcm_tomahawk3_oam_tst_tx_get( 40423 int unit, 40424 bcm_oam_tst_tx_t *tst_ptr) 40425 { 40426 return bcm_esw_oam_tst_tx_get(unit, tst_ptr); 40427 } 40428 #endif 40429 40430 int 40431 bcm_tomahawk3_oam_upmep_cosq_get( 40432 int unit, 40433 bcm_oam_upmep_pdu_type_t upmep_pdu_type, 40434 bcm_cos_queue_t *cosq) 40435 { 40436 return BCM_E_UNAVAIL; 40437 } 40438 40439 int 40440 bcm_tomahawk3_oam_upmep_cosq_set( 40441 int unit, 40442 bcm_oam_upmep_pdu_type_t upmep_pdu_type, 40443 bcm_cos_queue_t cosq) 40444 { 40445 return BCM_E_UNAVAIL; 40446 } 40447 40448 #ifdef BCM_TOMAHAWK3_SUPPORT 40449 int 40450 bcm_tomahawk3_oam_y_1711_alarm_add( 40451 int unit, 40452 bcm_oam_y_1711_alarm_t *alarm_ptr) 40453 { 40454 return bcm_esw_oam_y_1711_alarm_add(unit, alarm_ptr); 40455 } 40456 #endif 40457 40458 #ifdef BCM_TOMAHAWK3_SUPPORT 40459 int 40460 bcm_tomahawk3_oam_y_1711_alarm_delete( 40461 int unit, 40462 bcm_oam_y_1711_alarm_t *alarm_ptr) 40463 { 40464 return bcm_esw_oam_y_1711_alarm_delete(unit, alarm_ptr); 40465 } 40466 #endif 40467 40468 #ifdef BCM_TOMAHAWK3_SUPPORT 40469 int 40470 bcm_tomahawk3_oam_y_1711_alarm_get( 40471 int unit, 40472 bcm_oam_y_1711_alarm_t *alarm_ptr) 40473 { 40474 return bcm_esw_oam_y_1711_alarm_get(unit, alarm_ptr); 40475 } 40476 #endif 40477 40478 #ifdef BCM_TOMAHAWK3_SUPPORT 40479 int 40480 bcm_tomahawk3_obm_cb_register( 40481 int unit, 40482 bcm_obm_callback_fn fn, 40483 void *user_data) 40484 { 40485 return bcm_esw_obm_cb_register(unit, fn, user_data); 40486 } 40487 #endif 40488 40489 #ifdef BCM_TOMAHAWK3_SUPPORT 40490 int 40491 bcm_tomahawk3_obm_cb_unregister( 40492 int unit, 40493 bcm_obm_callback_fn fn, 40494 void *user_data) 40495 { 40496 return bcm_esw_obm_cb_unregister(unit, fn, user_data); 40497 } 40498 #endif 40499 40500 #ifdef BCM_TOMAHAWK3_SUPPORT 40501 int 40502 bcm_tomahawk3_oob_fc_rx_config_get( 40503 int unit, 40504 bcm_oob_fc_rx_intf_id_t intf_id, 40505 bcm_oob_fc_rx_config_t *config, 40506 int array_max, 40507 bcm_gport_t *gport_array, 40508 int *array_count) 40509 { 40510 return bcm_esw_oob_fc_rx_config_get(unit, intf_id, config, array_max, gport_array, array_count); 40511 } 40512 #endif 40513 40514 #ifdef BCM_TOMAHAWK3_SUPPORT 40515 int 40516 bcm_tomahawk3_oob_fc_rx_config_set( 40517 int unit, 40518 bcm_oob_fc_rx_intf_id_t intf_id, 40519 bcm_oob_fc_rx_config_t *config, 40520 int array_count, 40521 bcm_gport_t *gport_array) 40522 { 40523 return bcm_esw_oob_fc_rx_config_set(unit, intf_id, config, array_count, gport_array); 40524 } 40525 #endif 40526 40527 #ifdef BCM_TOMAHAWK3_SUPPORT 40528 int 40529 bcm_tomahawk3_oob_fc_rx_port_offset_get( 40530 int unit, 40531 bcm_oob_fc_rx_intf_id_t intf_id, 40532 bcm_gport_t gport, 40533 uint32 *offset) 40534 { 40535 return bcm_esw_oob_fc_rx_port_offset_get(unit, intf_id, gport, offset); 40536 } 40537 #endif 40538 40539 #ifdef BCM_TOMAHAWK3_SUPPORT 40540 int 40541 bcm_tomahawk3_oob_fc_rx_port_tc_mapping_get( 40542 int unit, 40543 bcm_oob_fc_rx_intf_id_t intf_id, 40544 bcm_gport_t gport, 40545 uint32 tc, 40546 uint32 *pri_bmp) 40547 { 40548 return bcm_esw_oob_fc_rx_port_tc_mapping_get(unit, intf_id, gport, tc, pri_bmp); 40549 } 40550 #endif 40551 40552 #ifdef BCM_TOMAHAWK3_SUPPORT 40553 int 40554 bcm_tomahawk3_oob_fc_rx_port_tc_mapping_multi_get( 40555 int unit, 40556 bcm_oob_fc_rx_intf_id_t intf_id, 40557 bcm_gport_t gport, 40558 int array_max, 40559 uint32 *tc, 40560 uint32 *pri_bmp, 40561 int *array_count) 40562 { 40563 return bcm_esw_oob_fc_rx_port_tc_mapping_multi_get(unit, intf_id, gport, array_max, tc, pri_bmp, array_count); 40564 } 40565 #endif 40566 40567 #ifdef BCM_TOMAHAWK3_SUPPORT 40568 int 40569 bcm_tomahawk3_oob_fc_rx_port_tc_mapping_multi_set( 40570 int unit, 40571 bcm_oob_fc_rx_intf_id_t intf_id, 40572 bcm_gport_t gport, 40573 int array_count, 40574 uint32 *tc, 40575 uint32 *pri_bmp) 40576 { 40577 return bcm_esw_oob_fc_rx_port_tc_mapping_multi_set(unit, intf_id, gport, array_count, tc, pri_bmp); 40578 } 40579 #endif 40580 40581 #ifdef BCM_TOMAHAWK3_SUPPORT 40582 int 40583 bcm_tomahawk3_oob_fc_rx_port_tc_mapping_set( 40584 int unit, 40585 bcm_oob_fc_rx_intf_id_t intf_id, 40586 bcm_gport_t gport, 40587 uint32 tc, 40588 uint32 pri_bmp) 40589 { 40590 return bcm_esw_oob_fc_rx_port_tc_mapping_set(unit, intf_id, gport, tc, pri_bmp); 40591 } 40592 #endif 40593 40594 #ifdef BCM_TOMAHAWK3_SUPPORT 40595 int 40596 bcm_tomahawk3_oob_fc_tx_config_get( 40597 int unit, 40598 bcm_oob_fc_tx_config_t *config) 40599 { 40600 return bcm_esw_oob_fc_tx_config_get(unit, config); 40601 } 40602 #endif 40603 40604 #ifdef BCM_TOMAHAWK3_SUPPORT 40605 int 40606 bcm_tomahawk3_oob_fc_tx_config_set( 40607 int unit, 40608 bcm_oob_fc_tx_config_t *config) 40609 { 40610 return bcm_esw_oob_fc_tx_config_set(unit, config); 40611 } 40612 #endif 40613 40614 #ifdef BCM_TOMAHAWK3_SUPPORT 40615 int 40616 bcm_tomahawk3_oob_fc_tx_info_get( 40617 int unit, 40618 bcm_oob_fc_tx_info_t *info) 40619 { 40620 return bcm_esw_oob_fc_tx_info_get(unit, info); 40621 } 40622 #endif 40623 40624 #ifdef BCM_TOMAHAWK3_SUPPORT 40625 int 40626 bcm_tomahawk3_oob_stats_config_get( 40627 int unit, 40628 bcm_oob_stats_config_t *config) 40629 { 40630 return bcm_esw_oob_stats_config_get(unit, config); 40631 } 40632 #endif 40633 40634 #ifdef BCM_TOMAHAWK3_SUPPORT 40635 int 40636 bcm_tomahawk3_oob_stats_config_set( 40637 int unit, 40638 bcm_oob_stats_config_t *config) 40639 { 40640 return bcm_esw_oob_stats_config_set(unit, config); 40641 } 40642 #endif 40643 40644 #ifdef BCM_TOMAHAWK3_SUPPORT 40645 int 40646 bcm_tomahawk3_oob_stats_pool_mapping_get( 40647 int unit, 40648 int offset, 40649 uint8 *dir, 40650 bcm_service_pool_id_t *pool) 40651 { 40652 return bcm_esw_oob_stats_pool_mapping_get(unit, offset, dir, pool); 40653 } 40654 #endif 40655 40656 #ifdef BCM_TOMAHAWK3_SUPPORT 40657 int 40658 bcm_tomahawk3_oob_stats_pool_mapping_multi_get( 40659 int unit, 40660 int array_max, 40661 int *offset_array, 40662 uint8 *dir_array, 40663 bcm_service_pool_id_t *pool_array, 40664 int *array_count) 40665 { 40666 return bcm_esw_oob_stats_pool_mapping_multi_get(unit, array_max, offset_array, dir_array, pool_array, array_count); 40667 } 40668 #endif 40669 40670 #ifdef BCM_TOMAHAWK3_SUPPORT 40671 int 40672 bcm_tomahawk3_oob_stats_pool_mapping_multi_set( 40673 int unit, 40674 int array_count, 40675 int *offset_array, 40676 uint8 *dir_array, 40677 bcm_service_pool_id_t *pool_array) 40678 { 40679 return bcm_esw_oob_stats_pool_mapping_multi_set(unit, array_count, offset_array, dir_array, pool_array); 40680 } 40681 #endif 40682 40683 #ifdef BCM_TOMAHAWK3_SUPPORT 40684 int 40685 bcm_tomahawk3_oob_stats_pool_mapping_set( 40686 int unit, 40687 int offset, 40688 uint8 dir, 40689 bcm_service_pool_id_t pool) 40690 { 40691 return bcm_esw_oob_stats_pool_mapping_set(unit, offset, dir, pool); 40692 } 40693 #endif 40694 40695 #ifdef BCM_TOMAHAWK3_SUPPORT 40696 int 40697 bcm_tomahawk3_oob_stats_queue_mapping_get( 40698 int unit, 40699 int offset, 40700 bcm_gport_t *gport) 40701 { 40702 return bcm_esw_oob_stats_queue_mapping_get(unit, offset, gport); 40703 } 40704 #endif 40705 40706 #ifdef BCM_TOMAHAWK3_SUPPORT 40707 int 40708 bcm_tomahawk3_oob_stats_queue_mapping_multi_get( 40709 int unit, 40710 int array_max, 40711 int *offset_array, 40712 bcm_gport_t *gport_array, 40713 int *array_count) 40714 { 40715 return bcm_esw_oob_stats_queue_mapping_multi_get(unit, array_max, offset_array, gport_array, array_count); 40716 } 40717 #endif 40718 40719 #ifdef BCM_TOMAHAWK3_SUPPORT 40720 int 40721 bcm_tomahawk3_oob_stats_queue_mapping_multi_set( 40722 int unit, 40723 int array_count, 40724 int *offset_array, 40725 bcm_gport_t *gport_array) 40726 { 40727 return bcm_esw_oob_stats_queue_mapping_multi_set(unit, array_count, offset_array, gport_array); 40728 } 40729 #endif 40730 40731 #ifdef BCM_TOMAHAWK3_SUPPORT 40732 int 40733 bcm_tomahawk3_oob_stats_queue_mapping_set( 40734 int unit, 40735 int offset, 40736 bcm_gport_t gport) 40737 { 40738 return bcm_esw_oob_stats_queue_mapping_set(unit, offset, gport); 40739 } 40740 #endif 40741 40742 #ifdef BCM_TOMAHAWK3_SUPPORT 40743 int 40744 bcm_tomahawk3_policer_action_add( 40745 int unit, 40746 uint32 action_id, 40747 bcm_policer_action_t action, 40748 uint32 param0) 40749 { 40750 return bcm_esw_policer_action_add(unit, action_id, action, param0); 40751 } 40752 #endif 40753 40754 #ifdef BCM_TOMAHAWK3_SUPPORT 40755 int 40756 bcm_tomahawk3_policer_action_attach( 40757 int unit, 40758 bcm_policer_t policer_id, 40759 uint32 action_id) 40760 { 40761 return bcm_esw_policer_action_attach(unit, policer_id, action_id); 40762 } 40763 #endif 40764 40765 #ifdef BCM_TOMAHAWK3_SUPPORT 40766 int 40767 bcm_tomahawk3_policer_action_attach_get( 40768 int unit, 40769 bcm_policer_t policer_id, 40770 uint32 *action_id) 40771 { 40772 return bcm_esw_policer_action_attach_get(unit, policer_id, action_id); 40773 } 40774 #endif 40775 40776 #ifdef BCM_TOMAHAWK3_SUPPORT 40777 int 40778 bcm_tomahawk3_policer_action_create( 40779 int unit, 40780 uint32 *action_id) 40781 { 40782 return bcm_esw_policer_action_create(unit, action_id); 40783 } 40784 #endif 40785 40786 #ifdef BCM_TOMAHAWK3_SUPPORT 40787 int 40788 bcm_tomahawk3_policer_action_destroy( 40789 int unit, 40790 uint32 action_id) 40791 { 40792 return bcm_esw_policer_action_destroy(unit, action_id); 40793 } 40794 #endif 40795 40796 #ifdef BCM_TOMAHAWK3_SUPPORT 40797 int 40798 bcm_tomahawk3_policer_action_detach( 40799 int unit, 40800 bcm_policer_t policer_id, 40801 uint32 action_id) 40802 { 40803 return bcm_esw_policer_action_detach(unit, policer_id, action_id); 40804 } 40805 #endif 40806 40807 #ifdef BCM_TOMAHAWK3_SUPPORT 40808 int 40809 bcm_tomahawk3_policer_action_get( 40810 int unit, 40811 uint32 action_id, 40812 bcm_policer_action_t action, 40813 uint32 *param0) 40814 { 40815 return bcm_esw_policer_action_get(unit, action_id, action, param0); 40816 } 40817 #endif 40818 40819 int 40820 bcm_tomahawk3_policer_aggregate_group_create( 40821 int unit, 40822 bcm_policer_aggregate_group_info_t *info, 40823 bcm_policer_t *policer_id, 40824 int *npolicers) 40825 { 40826 return BCM_E_UNAVAIL; 40827 } 40828 40829 int 40830 bcm_tomahawk3_policer_color_decision_get( 40831 int unit, 40832 bcm_policer_color_decision_t *policer_color_decision) 40833 { 40834 return BCM_E_UNAVAIL; 40835 } 40836 40837 int 40838 bcm_tomahawk3_policer_color_decision_set( 40839 int unit, 40840 bcm_policer_color_decision_t *policer_color_decision) 40841 { 40842 return BCM_E_UNAVAIL; 40843 } 40844 40845 int 40846 bcm_tomahawk3_policer_color_resolution_get( 40847 int unit, 40848 bcm_policer_color_resolution_t *policer_color_resolution) 40849 { 40850 return BCM_E_UNAVAIL; 40851 } 40852 40853 int 40854 bcm_tomahawk3_policer_color_resolution_set( 40855 int unit, 40856 bcm_policer_color_resolution_t *policer_color_resolution) 40857 { 40858 return BCM_E_UNAVAIL; 40859 } 40860 40861 #ifdef BCM_TOMAHAWK3_SUPPORT 40862 int 40863 bcm_tomahawk3_policer_control_get( 40864 int unit, 40865 int flags, 40866 int policer_database_handle, 40867 bcm_policer_control_type_t type, 40868 uint32 *arg) 40869 { 40870 return bcm_esw_policer_control_get(unit, flags, policer_database_handle, type, arg); 40871 } 40872 #endif 40873 40874 #ifdef BCM_TOMAHAWK3_SUPPORT 40875 int 40876 bcm_tomahawk3_policer_control_set( 40877 int unit, 40878 int flags, 40879 int policer_database_handle, 40880 bcm_policer_control_type_t type, 40881 uint32 arg) 40882 { 40883 return bcm_esw_policer_control_set(unit, flags, policer_database_handle, type, arg); 40884 } 40885 #endif 40886 40887 #ifdef BCM_TOMAHAWK3_SUPPORT 40888 int 40889 bcm_tomahawk3_policer_create( 40890 int unit, 40891 bcm_policer_config_t *pol_cfg, 40892 bcm_policer_t *policer_id) 40893 { 40894 return bcm_esw_policer_create(unit, pol_cfg, policer_id); 40895 } 40896 #endif 40897 40898 #ifdef BCM_TOMAHAWK3_SUPPORT 40899 int 40900 bcm_tomahawk3_policer_custom_group_create( 40901 int unit, 40902 uint32 flags, 40903 uint32 mode_id, 40904 bcm_policer_t macro_flow_policer_id, 40905 bcm_policer_t *policer_id, 40906 uint32 *npolicers) 40907 { 40908 return bcm_esw_policer_custom_group_create(unit, flags, mode_id, macro_flow_policer_id, policer_id, npolicers); 40909 } 40910 #endif 40911 40912 #ifdef BCM_TOMAHAWK3_SUPPORT 40913 int 40914 bcm_tomahawk3_policer_custom_group_id_copy( 40915 int unit, 40916 bcm_policer_group_info_t *old_policer_group_info, 40917 bcm_policer_group_info_t *new_policer_group_info) 40918 { 40919 return bcm_esw_policer_custom_group_id_copy(unit, old_policer_group_info, new_policer_group_info); 40920 } 40921 #endif 40922 40923 #ifdef BCM_TOMAHAWK3_SUPPORT 40924 int 40925 bcm_tomahawk3_policer_custom_group_id_create( 40926 int unit, 40927 uint32 flags, 40928 uint32 mode_id, 40929 bcm_policer_t macro_flow_policer_id, 40930 bcm_policer_group_info_t *policer_group_info) 40931 { 40932 return bcm_esw_policer_custom_group_id_create(unit, flags, mode_id, macro_flow_policer_id, policer_group_info); 40933 } 40934 #endif 40935 40936 #ifdef BCM_TOMAHAWK3_SUPPORT 40937 int 40938 bcm_tomahawk3_policer_database_create( 40939 int unit, 40940 int flags, 40941 int policer_database_handle, 40942 bcm_policer_database_config_t *config) 40943 { 40944 return bcm_esw_policer_database_create(unit, flags, policer_database_handle, config); 40945 } 40946 #endif 40947 40948 #ifdef BCM_TOMAHAWK3_SUPPORT 40949 int 40950 bcm_tomahawk3_policer_database_destroy( 40951 int unit, 40952 int flags, 40953 int policer_database_handle) 40954 { 40955 return bcm_esw_policer_database_destroy(unit, flags, policer_database_handle); 40956 } 40957 #endif 40958 40959 #ifdef BCM_TOMAHAWK3_SUPPORT 40960 int 40961 bcm_tomahawk3_policer_database_enable_get( 40962 int unit, 40963 int flags, 40964 int policer_database_handle, 40965 int *enable) 40966 { 40967 return bcm_esw_policer_database_enable_get(unit, flags, policer_database_handle, enable); 40968 } 40969 #endif 40970 40971 #ifdef BCM_TOMAHAWK3_SUPPORT 40972 int 40973 bcm_tomahawk3_policer_database_enable_set( 40974 int unit, 40975 int flags, 40976 int policer_database_handle, 40977 int enable) 40978 { 40979 return bcm_esw_policer_database_enable_set(unit, flags, policer_database_handle, enable); 40980 } 40981 #endif 40982 40983 #ifdef BCM_TOMAHAWK3_SUPPORT 40984 int 40985 bcm_tomahawk3_policer_destroy( 40986 int unit, 40987 bcm_policer_t policer_id) 40988 { 40989 return bcm_esw_policer_destroy(unit, policer_id); 40990 } 40991 #endif 40992 40993 #ifdef BCM_TOMAHAWK3_SUPPORT 40994 int 40995 bcm_tomahawk3_policer_destroy_all( 40996 int unit) 40997 { 40998 return bcm_esw_policer_destroy_all(unit); 40999 } 41000 #endif 41001 41002 #ifdef BCM_TOMAHAWK3_SUPPORT 41003 int 41004 bcm_tomahawk3_policer_engine_database_attach( 41005 int unit, 41006 int flags, 41007 bcm_policer_engine_t *engine, 41008 bcm_policer_database_attach_config_t *config) 41009 { 41010 return bcm_esw_policer_engine_database_attach(unit, flags, engine, config); 41011 } 41012 #endif 41013 41014 #ifdef BCM_TOMAHAWK3_SUPPORT 41015 int 41016 bcm_tomahawk3_policer_engine_database_detach( 41017 int unit, 41018 int flags, 41019 bcm_policer_engine_t *engine) 41020 { 41021 return bcm_esw_policer_engine_database_detach(unit, flags, engine); 41022 } 41023 #endif 41024 41025 #ifdef BCM_TOMAHAWK3_SUPPORT 41026 int 41027 bcm_tomahawk3_policer_engine_database_get( 41028 int unit, 41029 int flags, 41030 bcm_policer_engine_t *engine, 41031 bcm_policer_database_attach_config_t *config) 41032 { 41033 return bcm_esw_policer_engine_database_get(unit, flags, engine, config); 41034 } 41035 #endif 41036 41037 #ifdef BCM_TOMAHAWK3_SUPPORT 41038 int 41039 bcm_tomahawk3_policer_envelop_create( 41040 int unit, 41041 uint32 flag, 41042 bcm_policer_t macro_flow_policer_id, 41043 bcm_policer_t *policer_id) 41044 { 41045 return bcm_esw_policer_envelop_create(unit, flag, macro_flow_policer_id, policer_id); 41046 } 41047 #endif 41048 41049 #ifdef BCM_TOMAHAWK3_SUPPORT 41050 int 41051 bcm_tomahawk3_policer_envelop_group_create( 41052 int unit, 41053 uint32 flag, 41054 bcm_policer_group_mode_t mode, 41055 bcm_policer_t macro_flow_policer_id, 41056 bcm_policer_t *policer_id, 41057 int *npolicers) 41058 { 41059 return bcm_esw_policer_envelop_group_create(unit, flag, mode, macro_flow_policer_id, policer_id, npolicers); 41060 } 41061 #endif 41062 41063 #ifdef BCM_TOMAHAWK3_SUPPORT 41064 int 41065 bcm_tomahawk3_policer_expansion_groups_get( 41066 int unit, 41067 int flags, 41068 bcm_core_t core_id, 41069 bcm_policer_expansion_group_t *expansion_group) 41070 { 41071 return bcm_esw_policer_expansion_groups_get(unit, flags, core_id, expansion_group); 41072 } 41073 #endif 41074 41075 #ifdef BCM_TOMAHAWK3_SUPPORT 41076 int 41077 bcm_tomahawk3_policer_expansion_groups_set( 41078 int unit, 41079 int flags, 41080 bcm_core_t core_id, 41081 bcm_policer_expansion_group_t *expansion_group) 41082 { 41083 return bcm_esw_policer_expansion_groups_set(unit, flags, core_id, expansion_group); 41084 } 41085 #endif 41086 41087 #ifdef BCM_TOMAHAWK3_SUPPORT 41088 int 41089 bcm_tomahawk3_policer_get( 41090 int unit, 41091 bcm_policer_t policer_id, 41092 bcm_policer_config_t *pol_cfg) 41093 { 41094 return bcm_esw_policer_get(unit, policer_id, pol_cfg); 41095 } 41096 #endif 41097 41098 #ifdef BCM_TOMAHAWK3_SUPPORT 41099 int 41100 bcm_tomahawk3_policer_global_meter_config_get( 41101 int unit, 41102 bcm_policer_global_meter_config_t *config) 41103 { 41104 return bcm_esw_policer_global_meter_config_get(unit, config); 41105 } 41106 #endif 41107 41108 #ifdef BCM_TOMAHAWK3_SUPPORT 41109 int 41110 bcm_tomahawk3_policer_global_meter_config_set( 41111 int unit, 41112 bcm_policer_global_meter_config_t *config) 41113 { 41114 return bcm_esw_policer_global_meter_config_set(unit, config); 41115 } 41116 #endif 41117 41118 #ifdef BCM_TOMAHAWK3_SUPPORT 41119 int 41120 bcm_tomahawk3_policer_group_create( 41121 int unit, 41122 bcm_policer_group_mode_t mode, 41123 bcm_policer_t *policer_id, 41124 int *npolicers) 41125 { 41126 return bcm_esw_policer_group_create(unit, mode, policer_id, npolicers); 41127 } 41128 #endif 41129 41130 #ifdef BCM_TOMAHAWK3_SUPPORT 41131 int 41132 bcm_tomahawk3_policer_group_create_with_map( 41133 int unit, 41134 bcm_policer_group_mode_t mode, 41135 bcm_policer_map_t *offset_map, 41136 bcm_policer_t *policer_id, 41137 int *num_policers) 41138 { 41139 return bcm_esw_policer_group_create_with_map(unit, mode, offset_map, policer_id, num_policers); 41140 } 41141 #endif 41142 41143 #ifdef BCM_TOMAHAWK3_SUPPORT 41144 int 41145 bcm_tomahawk3_policer_group_get( 41146 int unit, 41147 bcm_policer_t base_policer_id, 41148 int member_max, 41149 bcm_policer_t *member_array, 41150 int *member_count) 41151 { 41152 return bcm_esw_policer_group_get(unit, base_policer_id, member_max, member_array, member_count); 41153 } 41154 #endif 41155 41156 #ifdef BCM_TOMAHAWK3_SUPPORT 41157 int 41158 bcm_tomahawk3_policer_group_mode_id_create( 41159 int unit, 41160 uint32 flags, 41161 bcm_policer_group_mode_type_t type, 41162 uint32 total_policers, 41163 uint32 num_selectors, 41164 bcm_policer_group_mode_attr_selector_t *attr_selectors, 41165 uint32 *mode_id) 41166 { 41167 return bcm_esw_policer_group_mode_id_create(unit, flags, type, total_policers, num_selectors, attr_selectors, mode_id); 41168 } 41169 #endif 41170 41171 #ifdef BCM_TOMAHAWK3_SUPPORT 41172 int 41173 bcm_tomahawk3_policer_group_mode_id_destroy( 41174 int unit, 41175 uint32 mode_id) 41176 { 41177 return bcm_esw_policer_group_mode_id_destroy(unit, mode_id); 41178 } 41179 #endif 41180 41181 #ifdef BCM_TOMAHAWK3_SUPPORT 41182 int 41183 bcm_tomahawk3_policer_group_mode_id_get( 41184 int unit, 41185 uint32 mode_id, 41186 uint32 num_selectors, 41187 uint32 *flags, 41188 bcm_policer_group_mode_type_t *type, 41189 uint32 *total_policers, 41190 bcm_policer_group_mode_attr_selector_t *attr_selectors, 41191 uint32 *actual_num_selectors) 41192 { 41193 return bcm_esw_policer_group_mode_id_get(unit, mode_id, num_selectors, flags, type, total_policers, attr_selectors, actual_num_selectors); 41194 } 41195 #endif 41196 41197 #ifdef BCM_TOMAHAWK3_SUPPORT 41198 int 41199 bcm_tomahawk3_policer_init( 41200 int unit) 41201 { 41202 return bcm_esw_policer_init(unit); 41203 } 41204 #endif 41205 41206 #ifdef BCM_TOMAHAWK3_SUPPORT 41207 int 41208 bcm_tomahawk3_policer_packet_counter_get32( 41209 int unit, 41210 bcm_policer_t policer_id, 41211 uint32 *count) 41212 { 41213 return bcm_esw_policer_packet_counter_get32(unit, policer_id, count); 41214 } 41215 #endif 41216 41217 #ifdef BCM_TOMAHAWK3_SUPPORT 41218 int 41219 bcm_tomahawk3_policer_packet_reset_counter_get32( 41220 int unit, 41221 bcm_policer_t policer_id, 41222 uint32 *count) 41223 { 41224 return bcm_esw_policer_packet_reset_counter_get32(unit, policer_id, count); 41225 } 41226 #endif 41227 41228 #ifdef BCM_TOMAHAWK3_SUPPORT 41229 int 41230 bcm_tomahawk3_policer_primary_color_resolution_get( 41231 int unit, 41232 int flags, 41233 bcm_policer_primary_color_resolution_key_t *key, 41234 bcm_policer_primary_color_resolution_config_t *config) 41235 { 41236 return bcm_esw_policer_primary_color_resolution_get(unit, flags, key, config); 41237 } 41238 #endif 41239 41240 #ifdef BCM_TOMAHAWK3_SUPPORT 41241 int 41242 bcm_tomahawk3_policer_primary_color_resolution_set( 41243 int unit, 41244 int flags, 41245 bcm_policer_primary_color_resolution_key_t *key, 41246 bcm_policer_primary_color_resolution_config_t *config) 41247 { 41248 return bcm_esw_policer_primary_color_resolution_set(unit, flags, key, config); 41249 } 41250 #endif 41251 41252 #ifdef BCM_TOMAHAWK3_SUPPORT 41253 int 41254 bcm_tomahawk3_policer_set( 41255 int unit, 41256 bcm_policer_t policer_id, 41257 bcm_policer_config_t *pol_cfg) 41258 { 41259 return bcm_esw_policer_set(unit, policer_id, pol_cfg); 41260 } 41261 #endif 41262 41263 int 41264 bcm_tomahawk3_policer_stat_enable_get( 41265 int unit, 41266 bcm_policer_t policer_id, 41267 int *enable) 41268 { 41269 return BCM_E_UNAVAIL; 41270 } 41271 41272 int 41273 bcm_tomahawk3_policer_stat_enable_set( 41274 int unit, 41275 bcm_policer_t policer_id, 41276 int enable) 41277 { 41278 return BCM_E_UNAVAIL; 41279 } 41280 41281 int 41282 bcm_tomahawk3_policer_stat_get( 41283 int unit, 41284 bcm_policer_t policer_id, 41285 bcm_cos_t int_pri, 41286 bcm_policer_stat_t stat, 41287 uint64 *value) 41288 { 41289 return BCM_E_UNAVAIL; 41290 } 41291 41292 int 41293 bcm_tomahawk3_policer_stat_get32( 41294 int unit, 41295 bcm_policer_t policer_id, 41296 bcm_cos_t int_pri, 41297 bcm_policer_stat_t stat, 41298 uint32 *value) 41299 { 41300 return BCM_E_UNAVAIL; 41301 } 41302 41303 int 41304 bcm_tomahawk3_policer_stat_set( 41305 int unit, 41306 bcm_policer_t policer_id, 41307 bcm_cos_t int_pri, 41308 bcm_policer_stat_t stat, 41309 uint64 value) 41310 { 41311 return BCM_E_UNAVAIL; 41312 } 41313 41314 int 41315 bcm_tomahawk3_policer_stat_set32( 41316 int unit, 41317 bcm_policer_t policer_id, 41318 bcm_cos_t int_pri, 41319 bcm_policer_stat_t stat, 41320 uint32 value) 41321 { 41322 return BCM_E_UNAVAIL; 41323 } 41324 41325 #ifdef BCM_TOMAHAWK3_SUPPORT 41326 int 41327 bcm_tomahawk3_policer_traverse( 41328 int unit, 41329 bcm_policer_traverse_cb cb, 41330 void *user_data) 41331 { 41332 return bcm_esw_policer_traverse(unit, cb, user_data); 41333 } 41334 #endif 41335 41336 #ifdef BCM_TOMAHAWK3_SUPPORT 41337 int 41338 bcm_tomahawk3_port_ability_advert_get( 41339 int unit, 41340 bcm_port_t port, 41341 bcm_port_ability_t *ability_mask) 41342 { 41343 return bcm_esw_port_ability_advert_get(unit, port, ability_mask); 41344 } 41345 #endif 41346 41347 #ifdef BCM_TOMAHAWK3_SUPPORT 41348 int 41349 bcm_tomahawk3_port_ability_advert_set( 41350 int unit, 41351 bcm_port_t port, 41352 bcm_port_ability_t *ability_mask) 41353 { 41354 return bcm_esw_port_ability_advert_set(unit, port, ability_mask); 41355 } 41356 #endif 41357 41358 #ifdef BCM_TOMAHAWK3_SUPPORT 41359 int 41360 bcm_tomahawk3_port_ability_get( 41361 int unit, 41362 bcm_port_t port, 41363 bcm_port_abil_t *local_ability_mask) 41364 { 41365 return bcm_esw_port_ability_get(unit, port, local_ability_mask); 41366 } 41367 #endif 41368 41369 #ifdef BCM_TOMAHAWK3_SUPPORT 41370 int 41371 bcm_tomahawk3_port_ability_local_get( 41372 int unit, 41373 bcm_port_t port, 41374 bcm_port_ability_t *local_ability_mask) 41375 { 41376 return bcm_esw_port_ability_local_get(unit, port, local_ability_mask); 41377 } 41378 #endif 41379 41380 #ifdef BCM_TOMAHAWK3_SUPPORT 41381 int 41382 bcm_tomahawk3_port_ability_remote_get( 41383 int unit, 41384 bcm_port_t port, 41385 bcm_port_ability_t *ability_mask) 41386 { 41387 return bcm_esw_port_ability_remote_get(unit, port, ability_mask); 41388 } 41389 #endif 41390 41391 int 41392 bcm_tomahawk3_port_add( 41393 int unit, 41394 bcm_port_t port, 41395 uint32 flags, 41396 bcm_port_interface_info_t *interface_info, 41397 bcm_port_mapping_info_t *mapping_info) 41398 { 41399 return BCM_E_UNAVAIL; 41400 } 41401 41402 #ifdef BCM_TOMAHAWK3_SUPPORT 41403 int 41404 bcm_tomahawk3_port_advert_get( 41405 int unit, 41406 bcm_port_t port, 41407 bcm_port_abil_t *ability_mask) 41408 { 41409 return bcm_esw_port_advert_get(unit, port, ability_mask); 41410 } 41411 #endif 41412 41413 #ifdef BCM_TOMAHAWK3_SUPPORT 41414 int 41415 bcm_tomahawk3_port_advert_remote_get( 41416 int unit, 41417 bcm_port_t port, 41418 bcm_port_abil_t *ability_mask) 41419 { 41420 return bcm_esw_port_advert_remote_get(unit, port, ability_mask); 41421 } 41422 #endif 41423 41424 #ifdef BCM_TOMAHAWK3_SUPPORT 41425 int 41426 bcm_tomahawk3_port_advert_set( 41427 int unit, 41428 bcm_port_t port, 41429 bcm_port_abil_t ability_mask) 41430 { 41431 return bcm_esw_port_advert_set(unit, port, ability_mask); 41432 } 41433 #endif 41434 41435 #ifdef BCM_TOMAHAWK3_SUPPORT 41436 int 41437 bcm_tomahawk3_port_autoneg_ability_advert_get( 41438 int unit, 41439 bcm_port_t port, 41440 int max_num_ability, 41441 bcm_port_speed_ability_t *abilities_array, 41442 int *actual_num_ability) 41443 { 41444 return bcm_esw_port_autoneg_ability_advert_get(unit, port, max_num_ability, abilities_array, actual_num_ability); 41445 } 41446 #endif 41447 41448 #ifdef BCM_TOMAHAWK3_SUPPORT 41449 int 41450 bcm_tomahawk3_port_autoneg_ability_advert_set( 41451 int unit, 41452 bcm_port_t port, 41453 int num_ability, 41454 bcm_port_speed_ability_t *abilities_array) 41455 { 41456 return bcm_esw_port_autoneg_ability_advert_set(unit, port, num_ability, abilities_array); 41457 } 41458 #endif 41459 41460 #ifdef BCM_TOMAHAWK3_SUPPORT 41461 int 41462 bcm_tomahawk3_port_autoneg_ability_remote_get( 41463 int unit, 41464 bcm_port_t port, 41465 int max_num_ability, 41466 bcm_port_speed_ability_t *abilities_array, 41467 int *actual_num_ability) 41468 { 41469 return bcm_esw_port_autoneg_ability_remote_get(unit, port, max_num_ability, abilities_array, actual_num_ability); 41470 } 41471 #endif 41472 41473 #ifdef BCM_TOMAHAWK3_SUPPORT 41474 int 41475 bcm_tomahawk3_port_autoneg_get( 41476 int unit, 41477 bcm_port_t port, 41478 int *autoneg) 41479 { 41480 return bcm_esw_port_autoneg_get(unit, port, autoneg); 41481 } 41482 #endif 41483 41484 #ifdef BCM_TOMAHAWK3_SUPPORT 41485 int 41486 bcm_tomahawk3_port_autoneg_set( 41487 int unit, 41488 bcm_port_t port, 41489 int autoneg) 41490 { 41491 return bcm_esw_port_autoneg_set(unit, port, autoneg); 41492 } 41493 #endif 41494 41495 #ifdef BCM_TOMAHAWK3_SUPPORT 41496 int 41497 bcm_tomahawk3_port_bpdu_enable_get( 41498 int unit, 41499 bcm_port_t port, 41500 int *enable) 41501 { 41502 return bcm_esw_port_bpdu_enable_get(unit, port, enable); 41503 } 41504 #endif 41505 41506 #ifdef BCM_TOMAHAWK3_SUPPORT 41507 int 41508 bcm_tomahawk3_port_bpdu_enable_set( 41509 int unit, 41510 bcm_port_t port, 41511 int enable) 41512 { 41513 return bcm_esw_port_bpdu_enable_set(unit, port, enable); 41514 } 41515 #endif 41516 41517 #ifdef BCM_TOMAHAWK3_SUPPORT 41518 int 41519 bcm_tomahawk3_port_cable_diag( 41520 int unit, 41521 bcm_port_t port, 41522 bcm_port_cable_diag_t *status) 41523 { 41524 return bcm_esw_port_cable_diag(unit, port, status); 41525 } 41526 #endif 41527 41528 #ifdef BCM_TOMAHAWK3_SUPPORT 41529 int 41530 bcm_tomahawk3_port_cfi_color_get( 41531 int unit, 41532 bcm_port_t port, 41533 int cfi, 41534 bcm_color_t *color) 41535 { 41536 return bcm_esw_port_cfi_color_get(unit, port, cfi, color); 41537 } 41538 #endif 41539 41540 #ifdef BCM_TOMAHAWK3_SUPPORT 41541 int 41542 bcm_tomahawk3_port_cfi_color_set( 41543 int unit, 41544 bcm_port_t port, 41545 int cfi, 41546 bcm_color_t color) 41547 { 41548 return bcm_esw_port_cfi_color_set(unit, port, cfi, color); 41549 } 41550 #endif 41551 41552 #ifdef BCM_TOMAHAWK3_SUPPORT 41553 int 41554 bcm_tomahawk3_port_class_get( 41555 int unit, 41556 bcm_port_t port, 41557 bcm_port_class_t pclass, 41558 uint32 *class_id) 41559 { 41560 return bcm_esw_port_class_get(unit, port, pclass, class_id); 41561 } 41562 #endif 41563 41564 #ifdef BCM_TOMAHAWK3_SUPPORT 41565 int 41566 bcm_tomahawk3_port_class_set( 41567 int unit, 41568 bcm_port_t port, 41569 bcm_port_class_t pclass, 41570 uint32 class_id) 41571 { 41572 return bcm_esw_port_class_set(unit, port, pclass, class_id); 41573 } 41574 #endif 41575 41576 #ifdef BCM_TOMAHAWK3_SUPPORT 41577 int 41578 bcm_tomahawk3_port_clear( 41579 int unit) 41580 { 41581 return bcm_esw_port_clear(unit); 41582 } 41583 #endif 41584 41585 #ifdef BCM_TOMAHAWK3_SUPPORT 41586 int 41587 bcm_tomahawk3_port_config_get( 41588 int unit, 41589 bcm_port_config_t *config) 41590 { 41591 return bcm_esw_port_config_get(unit, config); 41592 } 41593 #endif 41594 41595 #ifdef BCM_TOMAHAWK3_SUPPORT 41596 int 41597 bcm_tomahawk3_port_config_phy_oam_get( 41598 int unit, 41599 bcm_port_t port, 41600 bcm_port_config_phy_oam_t *conf) 41601 { 41602 return bcm_esw_port_config_phy_oam_get(unit, port, conf); 41603 } 41604 #endif 41605 41606 #ifdef BCM_TOMAHAWK3_SUPPORT 41607 int 41608 bcm_tomahawk3_port_config_phy_oam_set( 41609 int unit, 41610 bcm_port_t port, 41611 bcm_port_config_phy_oam_t *conf) 41612 { 41613 return bcm_esw_port_config_phy_oam_set(unit, port, conf); 41614 } 41615 #endif 41616 41617 int 41618 bcm_tomahawk3_port_congestion_config_get( 41619 int unit, 41620 bcm_gport_t port, 41621 bcm_port_congestion_config_t *config) 41622 { 41623 return BCM_E_UNAVAIL; 41624 } 41625 41626 int 41627 bcm_tomahawk3_port_congestion_config_set( 41628 int unit, 41629 bcm_gport_t port, 41630 bcm_port_congestion_config_t *config) 41631 { 41632 return BCM_E_UNAVAIL; 41633 } 41634 41635 int 41636 bcm_tomahawk3_port_congestion_get( 41637 int unit, 41638 bcm_gport_t congestion_port, 41639 bcm_gport_t port, 41640 uint32 flags, 41641 int *channel_id) 41642 { 41643 return BCM_E_UNAVAIL; 41644 } 41645 41646 int 41647 bcm_tomahawk3_port_congestion_set( 41648 int unit, 41649 bcm_gport_t congestion_port, 41650 bcm_gport_t port, 41651 uint32 flags, 41652 int channel_id) 41653 { 41654 return BCM_E_UNAVAIL; 41655 } 41656 41657 #ifdef BCM_TOMAHAWK3_SUPPORT 41658 int 41659 bcm_tomahawk3_port_control_get( 41660 int unit, 41661 bcm_port_t port, 41662 bcm_port_control_t type, 41663 int *value) 41664 { 41665 return bcm_esw_port_control_get(unit, port, type, value); 41666 } 41667 #endif 41668 41669 #ifdef BCM_TOMAHAWK3_SUPPORT 41670 int 41671 bcm_tomahawk3_port_control_phy_oam_get( 41672 int unit, 41673 bcm_port_t port, 41674 bcm_port_control_phy_oam_t type, 41675 uint64 *value) 41676 { 41677 return bcm_esw_port_control_phy_oam_get(unit, port, type, value); 41678 } 41679 #endif 41680 41681 #ifdef BCM_TOMAHAWK3_SUPPORT 41682 int 41683 bcm_tomahawk3_port_control_phy_oam_set( 41684 int unit, 41685 bcm_port_t port, 41686 bcm_port_control_phy_oam_t type, 41687 uint64 value) 41688 { 41689 return bcm_esw_port_control_phy_oam_set(unit, port, type, value); 41690 } 41691 #endif 41692 41693 #ifdef BCM_TOMAHAWK3_SUPPORT 41694 int 41695 bcm_tomahawk3_port_control_phy_timesync_get( 41696 int unit, 41697 bcm_port_t port, 41698 bcm_port_control_phy_timesync_t type, 41699 uint64 *value) 41700 { 41701 return bcm_esw_port_control_phy_timesync_get(unit, port, type, value); 41702 } 41703 #endif 41704 41705 #ifdef BCM_TOMAHAWK3_SUPPORT 41706 int 41707 bcm_tomahawk3_port_control_phy_timesync_set( 41708 int unit, 41709 bcm_port_t port, 41710 bcm_port_control_phy_timesync_t type, 41711 uint64 value) 41712 { 41713 return bcm_esw_port_control_phy_timesync_set(unit, port, type, value); 41714 } 41715 #endif 41716 41717 #ifdef BCM_TOMAHAWK3_SUPPORT 41718 int 41719 bcm_tomahawk3_port_control_set( 41720 int unit, 41721 bcm_port_t port, 41722 bcm_port_control_t type, 41723 int value) 41724 { 41725 return bcm_esw_port_control_set(unit, port, type, value); 41726 } 41727 #endif 41728 41729 #ifdef BCM_TOMAHAWK3_SUPPORT 41730 int 41731 bcm_tomahawk3_port_detach( 41732 int unit, 41733 bcm_pbmp_t pbmp, 41734 bcm_pbmp_t *detached) 41735 { 41736 return bcm_esw_port_detach(unit, pbmp, detached); 41737 } 41738 #endif 41739 41740 #ifdef BCM_TOMAHAWK3_SUPPORT 41741 int 41742 bcm_tomahawk3_port_discard_get( 41743 int unit, 41744 bcm_port_t port, 41745 int *mode) 41746 { 41747 return bcm_esw_port_discard_get(unit, port, mode); 41748 } 41749 #endif 41750 41751 #ifdef BCM_TOMAHAWK3_SUPPORT 41752 int 41753 bcm_tomahawk3_port_discard_set( 41754 int unit, 41755 bcm_port_t port, 41756 int mode) 41757 { 41758 return bcm_esw_port_discard_set(unit, port, mode); 41759 } 41760 #endif 41761 41762 #ifdef BCM_TOMAHAWK3_SUPPORT 41763 int 41764 bcm_tomahawk3_port_dscp_map_get( 41765 int unit, 41766 bcm_port_t port, 41767 int srccp, 41768 int *mapcp, 41769 int *prio) 41770 { 41771 return bcm_esw_port_dscp_map_get(unit, port, srccp, mapcp, prio); 41772 } 41773 #endif 41774 41775 #ifdef BCM_TOMAHAWK3_SUPPORT 41776 int 41777 bcm_tomahawk3_port_dscp_map_mode_get( 41778 int unit, 41779 bcm_port_t port, 41780 int *mode) 41781 { 41782 return bcm_esw_port_dscp_map_mode_get(unit, port, mode); 41783 } 41784 #endif 41785 41786 #ifdef BCM_TOMAHAWK3_SUPPORT 41787 int 41788 bcm_tomahawk3_port_dscp_map_mode_set( 41789 int unit, 41790 bcm_port_t port, 41791 int mode) 41792 { 41793 return bcm_esw_port_dscp_map_mode_set(unit, port, mode); 41794 } 41795 #endif 41796 41797 #ifdef BCM_TOMAHAWK3_SUPPORT 41798 int 41799 bcm_tomahawk3_port_dscp_map_set( 41800 int unit, 41801 bcm_port_t port, 41802 int srccp, 41803 int mapcp, 41804 int prio) 41805 { 41806 return bcm_esw_port_dscp_map_set(unit, port, srccp, mapcp, prio); 41807 } 41808 #endif 41809 41810 #ifdef BCM_TOMAHAWK3_SUPPORT 41811 int 41812 bcm_tomahawk3_port_dscp_unmap_get( 41813 int unit, 41814 bcm_port_t port, 41815 int internal_pri, 41816 bcm_color_t color, 41817 int *pkt_dscp) 41818 { 41819 return bcm_esw_port_dscp_unmap_get(unit, port, internal_pri, color, pkt_dscp); 41820 } 41821 #endif 41822 41823 #ifdef BCM_TOMAHAWK3_SUPPORT 41824 int 41825 bcm_tomahawk3_port_dscp_unmap_set( 41826 int unit, 41827 bcm_port_t port, 41828 int internal_pri, 41829 bcm_color_t color, 41830 int pkt_dscp) 41831 { 41832 return bcm_esw_port_dscp_unmap_set(unit, port, internal_pri, color, pkt_dscp); 41833 } 41834 #endif 41835 41836 #ifdef BCM_TOMAHAWK3_SUPPORT 41837 int 41838 bcm_tomahawk3_port_dtag_mode_get( 41839 int unit, 41840 bcm_port_t port, 41841 int *mode) 41842 { 41843 return bcm_esw_port_dtag_mode_get(unit, port, mode); 41844 } 41845 #endif 41846 41847 int 41848 bcm_tomahawk3_port_dtag_mode_set( 41849 int unit, 41850 bcm_port_t port, 41851 int mode) 41852 { 41853 return BCM_E_UNAVAIL; 41854 } 41855 41856 #ifdef BCM_TOMAHAWK3_SUPPORT 41857 int 41858 bcm_tomahawk3_port_duplex_get( 41859 int unit, 41860 bcm_port_t port, 41861 int *duplex) 41862 { 41863 return bcm_esw_port_duplex_get(unit, port, duplex); 41864 } 41865 #endif 41866 41867 #ifdef BCM_TOMAHAWK3_SUPPORT 41868 int 41869 bcm_tomahawk3_port_duplex_set( 41870 int unit, 41871 bcm_port_t port, 41872 int duplex) 41873 { 41874 return bcm_esw_port_duplex_set(unit, port, duplex); 41875 } 41876 #endif 41877 41878 #ifdef BCM_TOMAHAWK3_SUPPORT 41879 int 41880 bcm_tomahawk3_port_e2efc_remote_module_enable_get( 41881 int unit, 41882 bcm_module_t remote_module, 41883 bcm_port_e2efc_mode_t mode, 41884 int *enable, 41885 bcm_port_e2efc_remote_module_config_t *e2efc_rmod_cfg) 41886 { 41887 return bcm_esw_port_e2efc_remote_module_enable_get(unit, remote_module, mode, enable, e2efc_rmod_cfg); 41888 } 41889 #endif 41890 41891 #ifdef BCM_TOMAHAWK3_SUPPORT 41892 int 41893 bcm_tomahawk3_port_e2efc_remote_module_enable_set( 41894 int unit, 41895 bcm_module_t remote_module, 41896 bcm_port_e2efc_mode_t mode, 41897 int enable, 41898 bcm_port_e2efc_remote_module_config_t *e2efc_rmod_cfg) 41899 { 41900 return bcm_esw_port_e2efc_remote_module_enable_set(unit, remote_module, mode, enable, e2efc_rmod_cfg); 41901 } 41902 #endif 41903 41904 #ifdef BCM_TOMAHAWK3_SUPPORT 41905 int 41906 bcm_tomahawk3_port_e2efc_remote_module_traverse( 41907 int unit, 41908 bcm_port_e2efc_remote_module_traverse_cb cb, 41909 void *user_data) 41910 { 41911 return bcm_esw_port_e2efc_remote_module_traverse(unit, cb, user_data); 41912 } 41913 #endif 41914 41915 #ifdef BCM_TOMAHAWK3_SUPPORT 41916 int 41917 bcm_tomahawk3_port_e2efc_remote_port_add( 41918 int unit, 41919 bcm_port_e2efc_remote_port_config_t *e2efc_rport_cfg, 41920 int *rport_handle_id) 41921 { 41922 return bcm_esw_port_e2efc_remote_port_add(unit, e2efc_rport_cfg, rport_handle_id); 41923 } 41924 #endif 41925 41926 #ifdef BCM_TOMAHAWK3_SUPPORT 41927 int 41928 bcm_tomahawk3_port_e2efc_remote_port_delete( 41929 int unit, 41930 int rport_handle_id) 41931 { 41932 return bcm_esw_port_e2efc_remote_port_delete(unit, rport_handle_id); 41933 } 41934 #endif 41935 41936 #ifdef BCM_TOMAHAWK3_SUPPORT 41937 int 41938 bcm_tomahawk3_port_e2efc_remote_port_get( 41939 int unit, 41940 int rport_handle_id, 41941 bcm_port_e2efc_remote_port_config_t *e2efc_rport_cfg) 41942 { 41943 return bcm_esw_port_e2efc_remote_port_get(unit, rport_handle_id, e2efc_rport_cfg); 41944 } 41945 #endif 41946 41947 #ifdef BCM_TOMAHAWK3_SUPPORT 41948 int 41949 bcm_tomahawk3_port_e2efc_remote_port_set( 41950 int unit, 41951 int rport_handle_id, 41952 bcm_port_e2efc_remote_port_config_t *e2efc_rport_cfg) 41953 { 41954 return bcm_esw_port_e2efc_remote_port_set(unit, rport_handle_id, e2efc_rport_cfg); 41955 } 41956 #endif 41957 41958 #ifdef BCM_TOMAHAWK3_SUPPORT 41959 int 41960 bcm_tomahawk3_port_e2efc_remote_port_traverse( 41961 int unit, 41962 bcm_port_e2efc_remote_port_traverse_cb cb, 41963 void *user_data) 41964 { 41965 return bcm_esw_port_e2efc_remote_port_traverse(unit, cb, user_data); 41966 } 41967 #endif 41968 41969 #ifdef BCM_TOMAHAWK3_SUPPORT 41970 int 41971 bcm_tomahawk3_port_egress_get( 41972 int unit, 41973 bcm_port_t port, 41974 int modid, 41975 bcm_pbmp_t *pbmp) 41976 { 41977 return bcm_esw_port_egress_get(unit, port, modid, pbmp); 41978 } 41979 #endif 41980 41981 #ifdef BCM_TOMAHAWK3_SUPPORT 41982 int 41983 bcm_tomahawk3_port_egress_set( 41984 int unit, 41985 bcm_port_t port, 41986 int modid, 41987 bcm_pbmp_t pbmp) 41988 { 41989 return bcm_esw_port_egress_set(unit, port, modid, pbmp); 41990 } 41991 #endif 41992 41993 #ifdef BCM_TOMAHAWK3_SUPPORT 41994 int 41995 bcm_tomahawk3_port_enable_get( 41996 int unit, 41997 bcm_port_t port, 41998 int *enable) 41999 { 42000 return bcm_esw_port_enable_get(unit, port, enable); 42001 } 42002 #endif 42003 42004 #ifdef BCM_TOMAHAWK3_SUPPORT 42005 int 42006 bcm_tomahawk3_port_enable_set( 42007 int unit, 42008 bcm_port_t port, 42009 int enable) 42010 { 42011 return bcm_esw_port_enable_set(unit, port, enable); 42012 } 42013 #endif 42014 42015 #ifdef BCM_TOMAHAWK3_SUPPORT 42016 int 42017 bcm_tomahawk3_port_encap_config_get( 42018 int unit, 42019 bcm_gport_t gport, 42020 bcm_port_encap_config_t *encap_config) 42021 { 42022 return bcm_esw_port_encap_config_get(unit, gport, encap_config); 42023 } 42024 #endif 42025 42026 #ifdef BCM_TOMAHAWK3_SUPPORT 42027 int 42028 bcm_tomahawk3_port_encap_config_set( 42029 int unit, 42030 bcm_gport_t gport, 42031 bcm_port_encap_config_t *encap_config) 42032 { 42033 return bcm_esw_port_encap_config_set(unit, gport, encap_config); 42034 } 42035 #endif 42036 42037 #ifdef BCM_TOMAHAWK3_SUPPORT 42038 int 42039 bcm_tomahawk3_port_encap_get( 42040 int unit, 42041 bcm_port_t port, 42042 int *mode) 42043 { 42044 return bcm_esw_port_encap_get(unit, port, mode); 42045 } 42046 #endif 42047 42048 int 42049 bcm_tomahawk3_port_encap_local_get( 42050 int unit, 42051 bcm_gport_t gport, 42052 uint32 flags, 42053 int *encap_local_id) 42054 { 42055 return BCM_E_UNAVAIL; 42056 } 42057 42058 int 42059 bcm_tomahawk3_port_encap_map_get( 42060 int unit, 42061 uint32 flags, 42062 bcm_if_t encap_id, 42063 bcm_gport_t *port) 42064 { 42065 return BCM_E_UNAVAIL; 42066 } 42067 42068 int 42069 bcm_tomahawk3_port_encap_map_set( 42070 int unit, 42071 uint32 flags, 42072 bcm_if_t encap_id, 42073 bcm_gport_t port) 42074 { 42075 return BCM_E_UNAVAIL; 42076 } 42077 42078 int 42079 bcm_tomahawk3_port_encap_set( 42080 int unit, 42081 bcm_port_t port, 42082 int mode) 42083 { 42084 return BCM_E_UNAVAIL; 42085 } 42086 42087 int 42088 bcm_tomahawk3_port_extender_mapping_info_get( 42089 int unit, 42090 uint32 flags, 42091 bcm_port_extender_mapping_type_t type, 42092 bcm_port_extender_mapping_info_t *mapping_info) 42093 { 42094 return BCM_E_UNAVAIL; 42095 } 42096 42097 int 42098 bcm_tomahawk3_port_extender_mapping_info_set( 42099 int unit, 42100 uint32 flags, 42101 bcm_port_extender_mapping_type_t type, 42102 bcm_port_extender_mapping_info_t *mapping_info) 42103 { 42104 return BCM_E_UNAVAIL; 42105 } 42106 42107 #ifdef BCM_TOMAHAWK3_SUPPORT 42108 int 42109 bcm_tomahawk3_port_fault_get( 42110 int unit, 42111 bcm_port_t port, 42112 uint32 *flags) 42113 { 42114 return bcm_esw_port_fault_get(unit, port, flags); 42115 } 42116 #endif 42117 42118 #ifdef BCM_TOMAHAWK3_SUPPORT 42119 int 42120 bcm_tomahawk3_port_flood_block_get( 42121 int unit, 42122 bcm_port_t ingress_port, 42123 bcm_port_t egress_port, 42124 uint32 *flags) 42125 { 42126 return bcm_esw_port_flood_block_get(unit, ingress_port, egress_port, flags); 42127 } 42128 #endif 42129 42130 #ifdef BCM_TOMAHAWK3_SUPPORT 42131 int 42132 bcm_tomahawk3_port_flood_block_set( 42133 int unit, 42134 bcm_port_t ingress_port, 42135 bcm_port_t egress_port, 42136 uint32 flags) 42137 { 42138 return bcm_esw_port_flood_block_set(unit, ingress_port, egress_port, flags); 42139 } 42140 #endif 42141 42142 #ifdef BCM_TOMAHAWK3_SUPPORT 42143 int 42144 bcm_tomahawk3_port_flood_group_get( 42145 int unit, 42146 bcm_gport_t port, 42147 uint32 flags, 42148 bcm_port_flood_group_t *flood_groups) 42149 { 42150 return bcm_esw_port_flood_group_get(unit, port, flags, flood_groups); 42151 } 42152 #endif 42153 42154 #ifdef BCM_TOMAHAWK3_SUPPORT 42155 int 42156 bcm_tomahawk3_port_flood_group_set( 42157 int unit, 42158 bcm_gport_t port, 42159 uint32 flags, 42160 bcm_port_flood_group_t *flood_groups) 42161 { 42162 return bcm_esw_port_flood_group_set(unit, port, flags, flood_groups); 42163 } 42164 #endif 42165 42166 int 42167 bcm_tomahawk3_port_force_dest_get( 42168 int unit, 42169 bcm_gport_t gport, 42170 bcm_port_dest_info_t *dest_info) 42171 { 42172 return BCM_E_UNAVAIL; 42173 } 42174 42175 int 42176 bcm_tomahawk3_port_force_dest_set( 42177 int unit, 42178 bcm_gport_t gport, 42179 bcm_port_dest_info_t *dest_info) 42180 { 42181 return BCM_E_UNAVAIL; 42182 } 42183 42184 #ifdef BCM_TOMAHAWK3_SUPPORT 42185 int 42186 bcm_tomahawk3_port_force_forward_get( 42187 int unit, 42188 bcm_port_t port, 42189 bcm_port_t *egr_port, 42190 int *enabled) 42191 { 42192 return bcm_esw_port_force_forward_get(unit, port, egr_port, enabled); 42193 } 42194 #endif 42195 42196 #ifdef BCM_TOMAHAWK3_SUPPORT 42197 int 42198 bcm_tomahawk3_port_force_forward_mode_get( 42199 int unit, 42200 bcm_port_t port, 42201 bcm_port_t *egr_port, 42202 uint32 *flags) 42203 { 42204 return bcm_esw_port_force_forward_mode_get(unit, port, egr_port, flags); 42205 } 42206 #endif 42207 42208 #ifdef BCM_TOMAHAWK3_SUPPORT 42209 int 42210 bcm_tomahawk3_port_force_forward_mode_set( 42211 int unit, 42212 bcm_port_t port, 42213 bcm_port_t egr_port, 42214 uint32 flags) 42215 { 42216 return bcm_esw_port_force_forward_mode_set(unit, port, egr_port, flags); 42217 } 42218 #endif 42219 42220 #ifdef BCM_TOMAHAWK3_SUPPORT 42221 int 42222 bcm_tomahawk3_port_force_forward_set( 42223 int unit, 42224 bcm_port_t port, 42225 bcm_port_t egr_port, 42226 int enable) 42227 { 42228 return bcm_esw_port_force_forward_set(unit, port, egr_port, enable); 42229 } 42230 #endif 42231 42232 #ifdef BCM_TOMAHAWK3_SUPPORT 42233 int 42234 bcm_tomahawk3_port_force_vlan_get( 42235 int unit, 42236 bcm_port_t port, 42237 bcm_vlan_t *vlan, 42238 int *pkt_prio, 42239 uint32 *flags) 42240 { 42241 return bcm_esw_port_force_vlan_get(unit, port, vlan, pkt_prio, flags); 42242 } 42243 #endif 42244 42245 #ifdef BCM_TOMAHAWK3_SUPPORT 42246 int 42247 bcm_tomahawk3_port_force_vlan_set( 42248 int unit, 42249 bcm_port_t port, 42250 bcm_vlan_t vlan, 42251 int pkt_prio, 42252 uint32 flags) 42253 { 42254 return bcm_esw_port_force_vlan_set(unit, port, vlan, pkt_prio, flags); 42255 } 42256 #endif 42257 42258 #ifdef BCM_TOMAHAWK3_SUPPORT 42259 int 42260 bcm_tomahawk3_port_frame_max_get( 42261 int unit, 42262 bcm_port_t port, 42263 int *size) 42264 { 42265 return bcm_esw_port_frame_max_get(unit, port, size); 42266 } 42267 #endif 42268 42269 #ifdef BCM_TOMAHAWK3_SUPPORT 42270 int 42271 bcm_tomahawk3_port_frame_max_set( 42272 int unit, 42273 bcm_port_t port, 42274 int size) 42275 { 42276 return bcm_esw_port_frame_max_set(unit, port, size); 42277 } 42278 #endif 42279 42280 int 42281 bcm_tomahawk3_port_get( 42282 int unit, 42283 bcm_port_t port, 42284 uint32 *flags, 42285 bcm_port_interface_info_t *interface_info, 42286 bcm_port_mapping_info_t *mapping_info) 42287 { 42288 return BCM_E_UNAVAIL; 42289 } 42290 42291 #ifdef BCM_TOMAHAWK3_SUPPORT 42292 int 42293 bcm_tomahawk3_port_gport_add( 42294 int unit, 42295 bcm_port_t local_port, 42296 bcm_gport_t modport) 42297 { 42298 return bcm_esw_port_gport_add(unit, local_port, modport); 42299 } 42300 #endif 42301 42302 #ifdef BCM_TOMAHAWK3_SUPPORT 42303 int 42304 bcm_tomahawk3_port_gport_delete( 42305 int unit, 42306 bcm_port_t local_port, 42307 bcm_gport_t modport) 42308 { 42309 return bcm_esw_port_gport_delete(unit, local_port, modport); 42310 } 42311 #endif 42312 42313 #ifdef BCM_TOMAHAWK3_SUPPORT 42314 int 42315 bcm_tomahawk3_port_gport_delete_all( 42316 int unit, 42317 bcm_port_t local_port) 42318 { 42319 return bcm_esw_port_gport_delete_all(unit, local_port); 42320 } 42321 #endif 42322 42323 #ifdef BCM_TOMAHAWK3_SUPPORT 42324 int 42325 bcm_tomahawk3_port_gport_free_range_get( 42326 int unit, 42327 uint32 gport_type, 42328 bcm_gport_t *gport_min, 42329 bcm_gport_t *gport_max) 42330 { 42331 return bcm_esw_port_gport_free_range_get(unit, gport_type, gport_min, gport_max); 42332 } 42333 #endif 42334 42335 #ifdef BCM_TOMAHAWK3_SUPPORT 42336 int 42337 bcm_tomahawk3_port_gport_get( 42338 int unit, 42339 bcm_port_t port, 42340 bcm_gport_t *gport) 42341 { 42342 return bcm_esw_port_gport_get(unit, port, gport); 42343 } 42344 #endif 42345 42346 #ifdef BCM_TOMAHAWK3_SUPPORT 42347 int 42348 bcm_tomahawk3_port_gport_get_all( 42349 int unit, 42350 bcm_port_t local_port, 42351 int size, 42352 bcm_gport_t *gport_array, 42353 int *count) 42354 { 42355 return bcm_esw_port_gport_get_all(unit, local_port, size, gport_array, count); 42356 } 42357 #endif 42358 42359 #ifdef BCM_TOMAHAWK3_SUPPORT 42360 int 42361 bcm_tomahawk3_port_gport_is_free( 42362 int unit, 42363 bcm_gport_t gport) 42364 { 42365 return bcm_esw_port_gport_is_free(unit, gport); 42366 } 42367 #endif 42368 42369 #ifdef BCM_TOMAHAWK3_SUPPORT 42370 int 42371 bcm_tomahawk3_port_ifg_get( 42372 int unit, 42373 bcm_port_t port, 42374 int speed, 42375 bcm_port_duplex_t duplex, 42376 int *bit_times) 42377 { 42378 return bcm_esw_port_ifg_get(unit, port, speed, duplex, bit_times); 42379 } 42380 #endif 42381 42382 #ifdef BCM_TOMAHAWK3_SUPPORT 42383 int 42384 bcm_tomahawk3_port_ifg_set( 42385 int unit, 42386 bcm_port_t port, 42387 int speed, 42388 bcm_port_duplex_t duplex, 42389 int bit_times) 42390 { 42391 return bcm_esw_port_ifg_set(unit, port, speed, duplex, bit_times); 42392 } 42393 #endif 42394 42395 #ifdef BCM_TOMAHAWK3_SUPPORT 42396 int 42397 bcm_tomahawk3_port_ifilter_get( 42398 int unit, 42399 bcm_port_t port, 42400 int *mode) 42401 { 42402 return bcm_esw_port_ifilter_get(unit, port, mode); 42403 } 42404 #endif 42405 42406 #ifdef BCM_TOMAHAWK3_SUPPORT 42407 int 42408 bcm_tomahawk3_port_ifilter_set( 42409 int unit, 42410 bcm_port_t port, 42411 int mode) 42412 { 42413 return bcm_esw_port_ifilter_set(unit, port, mode); 42414 } 42415 #endif 42416 42417 int 42418 bcm_tomahawk3_port_ilkn_lane_map_get( 42419 int unit, 42420 int flags, 42421 bcm_port_t port, 42422 int num_of_lanes, 42423 int *lanes) 42424 { 42425 return BCM_E_UNAVAIL; 42426 } 42427 42428 int 42429 bcm_tomahawk3_port_ilkn_lane_map_set( 42430 int unit, 42431 int flags, 42432 bcm_port_t port, 42433 int num_of_lanes, 42434 int *lanes) 42435 { 42436 return BCM_E_UNAVAIL; 42437 } 42438 42439 #ifdef BCM_TOMAHAWK3_SUPPORT 42440 int 42441 bcm_tomahawk3_port_info_get( 42442 int unit, 42443 bcm_port_t port, 42444 bcm_port_info_t *info) 42445 { 42446 return bcm_esw_port_info_get(unit, port, info); 42447 } 42448 #endif 42449 42450 #ifdef BCM_TOMAHAWK3_SUPPORT 42451 int 42452 bcm_tomahawk3_port_info_restore( 42453 int unit, 42454 bcm_port_t port, 42455 bcm_port_info_t *info) 42456 { 42457 return bcm_esw_port_info_restore(unit, port, info); 42458 } 42459 #endif 42460 42461 #ifdef BCM_TOMAHAWK3_SUPPORT 42462 int 42463 bcm_tomahawk3_port_info_save( 42464 int unit, 42465 bcm_port_t port, 42466 bcm_port_info_t *info) 42467 { 42468 return bcm_esw_port_info_save(unit, port, info); 42469 } 42470 #endif 42471 42472 #ifdef BCM_TOMAHAWK3_SUPPORT 42473 int 42474 bcm_tomahawk3_port_info_set( 42475 int unit, 42476 bcm_port_t port, 42477 bcm_port_info_t *info) 42478 { 42479 return bcm_esw_port_info_set(unit, port, info); 42480 } 42481 #endif 42482 42483 int 42484 bcm_tomahawk3_port_ingress_tdm_failover_get( 42485 int unit, 42486 int flag, 42487 bcm_pbmp_t *tdm_enable_pbmp) 42488 { 42489 return BCM_E_UNAVAIL; 42490 } 42491 42492 int 42493 bcm_tomahawk3_port_ingress_tdm_failover_set( 42494 int unit, 42495 int flag, 42496 bcm_pbmp_t tdm_enable_pbmp) 42497 { 42498 return BCM_E_UNAVAIL; 42499 } 42500 42501 #ifdef BCM_TOMAHAWK3_SUPPORT 42502 int 42503 bcm_tomahawk3_port_init( 42504 int unit) 42505 { 42506 return bcm_esw_port_init(unit); 42507 } 42508 #endif 42509 42510 int 42511 bcm_tomahawk3_port_inner_tpid_get( 42512 int unit, 42513 bcm_port_t port, 42514 uint16 *tpid) 42515 { 42516 return BCM_E_UNAVAIL; 42517 } 42518 42519 int 42520 bcm_tomahawk3_port_inner_tpid_set( 42521 int unit, 42522 bcm_port_t port, 42523 uint16 tpid) 42524 { 42525 return BCM_E_UNAVAIL; 42526 } 42527 42528 #ifdef BCM_TOMAHAWK3_SUPPORT 42529 int 42530 bcm_tomahawk3_port_interface_config_get( 42531 int unit, 42532 bcm_port_t port, 42533 bcm_port_interface_config_t *config) 42534 { 42535 return bcm_esw_port_interface_config_get(unit, port, config); 42536 } 42537 #endif 42538 42539 #ifdef BCM_TOMAHAWK3_SUPPORT 42540 int 42541 bcm_tomahawk3_port_interface_config_set( 42542 int unit, 42543 bcm_port_t port, 42544 bcm_port_interface_config_t *config) 42545 { 42546 return bcm_esw_port_interface_config_set(unit, port, config); 42547 } 42548 #endif 42549 42550 #ifdef BCM_TOMAHAWK3_SUPPORT 42551 int 42552 bcm_tomahawk3_port_interface_get( 42553 int unit, 42554 bcm_port_t port, 42555 bcm_port_if_t *intf) 42556 { 42557 return bcm_esw_port_interface_get(unit, port, intf); 42558 } 42559 #endif 42560 42561 #ifdef BCM_TOMAHAWK3_SUPPORT 42562 int 42563 bcm_tomahawk3_port_interface_set( 42564 int unit, 42565 bcm_port_t port, 42566 bcm_port_if_t intf) 42567 { 42568 return bcm_esw_port_interface_set(unit, port, intf); 42569 } 42570 #endif 42571 42572 int 42573 bcm_tomahawk3_port_internal_get( 42574 int unit, 42575 uint32 flags, 42576 int internal_ports_max, 42577 bcm_gport_t *internal_gport, 42578 int *internal_ports_count) 42579 { 42580 return BCM_E_UNAVAIL; 42581 } 42582 42583 #ifdef BCM_TOMAHAWK3_SUPPORT 42584 int 42585 bcm_tomahawk3_port_ipmc_modify_get( 42586 int unit, 42587 bcm_port_t port, 42588 uint32 *flags) 42589 { 42590 return bcm_esw_port_ipmc_modify_get(unit, port, flags); 42591 } 42592 #endif 42593 42594 #ifdef BCM_TOMAHAWK3_SUPPORT 42595 int 42596 bcm_tomahawk3_port_ipmc_modify_set( 42597 int unit, 42598 bcm_port_t port, 42599 uint32 flags) 42600 { 42601 return bcm_esw_port_ipmc_modify_set(unit, port, flags); 42602 } 42603 #endif 42604 42605 #ifdef BCM_TOMAHAWK3_SUPPORT 42606 int 42607 bcm_tomahawk3_port_jam_get( 42608 int unit, 42609 bcm_port_t port, 42610 int *enable) 42611 { 42612 return bcm_esw_port_jam_get(unit, port, enable); 42613 } 42614 #endif 42615 42616 #ifdef BCM_TOMAHAWK3_SUPPORT 42617 int 42618 bcm_tomahawk3_port_jam_set( 42619 int unit, 42620 bcm_port_t port, 42621 int enable) 42622 { 42623 return bcm_esw_port_jam_set(unit, port, enable); 42624 } 42625 #endif 42626 42627 #ifdef BCM_TOMAHAWK3_SUPPORT 42628 int 42629 bcm_tomahawk3_port_l3_enable_get( 42630 int unit, 42631 bcm_port_t port, 42632 int *enable) 42633 { 42634 return bcm_esw_port_l3_enable_get(unit, port, enable); 42635 } 42636 #endif 42637 42638 #ifdef BCM_TOMAHAWK3_SUPPORT 42639 int 42640 bcm_tomahawk3_port_l3_enable_set( 42641 int unit, 42642 bcm_port_t port, 42643 int enable) 42644 { 42645 return bcm_esw_port_l3_enable_set(unit, port, enable); 42646 } 42647 #endif 42648 42649 int 42650 bcm_tomahawk3_port_l3_encapsulated_mtu_get( 42651 int unit, 42652 bcm_port_t port, 42653 int *size) 42654 { 42655 return BCM_E_UNAVAIL; 42656 } 42657 42658 int 42659 bcm_tomahawk3_port_l3_encapsulated_mtu_set( 42660 int unit, 42661 bcm_port_t port, 42662 int size) 42663 { 42664 return BCM_E_UNAVAIL; 42665 } 42666 42667 #ifdef BCM_TOMAHAWK3_SUPPORT 42668 int 42669 bcm_tomahawk3_port_l3_modify_get( 42670 int unit, 42671 bcm_port_t port, 42672 uint32 *flags) 42673 { 42674 return bcm_esw_port_l3_modify_get(unit, port, flags); 42675 } 42676 #endif 42677 42678 #ifdef BCM_TOMAHAWK3_SUPPORT 42679 int 42680 bcm_tomahawk3_port_l3_modify_set( 42681 int unit, 42682 bcm_port_t port, 42683 uint32 flags) 42684 { 42685 return bcm_esw_port_l3_modify_set(unit, port, flags); 42686 } 42687 #endif 42688 42689 #ifdef BCM_TOMAHAWK3_SUPPORT 42690 int 42691 bcm_tomahawk3_port_l3_mtu_get( 42692 int unit, 42693 bcm_port_t port, 42694 int *size) 42695 { 42696 return bcm_esw_port_l3_mtu_get(unit, port, size); 42697 } 42698 #endif 42699 42700 #ifdef BCM_TOMAHAWK3_SUPPORT 42701 int 42702 bcm_tomahawk3_port_l3_mtu_set( 42703 int unit, 42704 bcm_port_t port, 42705 int size) 42706 { 42707 return bcm_esw_port_l3_mtu_set(unit, port, size); 42708 } 42709 #endif 42710 42711 int 42712 bcm_tomahawk3_port_lane_to_serdes_map_get( 42713 int unit, 42714 int flags, 42715 int map_size, 42716 bcm_port_lane_to_serdes_map_t *serdes_map) 42717 { 42718 return BCM_E_UNAVAIL; 42719 } 42720 42721 int 42722 bcm_tomahawk3_port_lane_to_serdes_map_set( 42723 int unit, 42724 int flags, 42725 int map_size, 42726 bcm_port_lane_to_serdes_map_t *serdes_map) 42727 { 42728 return BCM_E_UNAVAIL; 42729 } 42730 42731 #ifdef BCM_TOMAHAWK3_SUPPORT 42732 int 42733 bcm_tomahawk3_port_learn_get( 42734 int unit, 42735 bcm_port_t port, 42736 uint32 *flags) 42737 { 42738 return bcm_esw_port_learn_get(unit, port, flags); 42739 } 42740 #endif 42741 42742 #ifdef BCM_TOMAHAWK3_SUPPORT 42743 int 42744 bcm_tomahawk3_port_learn_modify( 42745 int unit, 42746 bcm_port_t port, 42747 uint32 add, 42748 uint32 remove) 42749 { 42750 return bcm_esw_port_learn_modify(unit, port, add, remove); 42751 } 42752 #endif 42753 42754 #ifdef BCM_TOMAHAWK3_SUPPORT 42755 int 42756 bcm_tomahawk3_port_learn_set( 42757 int unit, 42758 bcm_port_t port, 42759 uint32 flags) 42760 { 42761 return bcm_esw_port_learn_set(unit, port, flags); 42762 } 42763 #endif 42764 42765 #ifdef BCM_TOMAHAWK3_SUPPORT 42766 int 42767 bcm_tomahawk3_port_link_failed_clear( 42768 int unit, 42769 bcm_port_t port) 42770 { 42771 return bcm_esw_port_link_failed_clear(unit, port); 42772 } 42773 #endif 42774 42775 #ifdef BCM_TOMAHAWK3_SUPPORT 42776 int 42777 bcm_tomahawk3_port_link_state_get( 42778 int unit, 42779 bcm_port_t port, 42780 uint32 flags, 42781 bcm_port_link_state_t *state) 42782 { 42783 return bcm_esw_port_link_state_get(unit, port, flags, state); 42784 } 42785 #endif 42786 42787 #ifdef BCM_TOMAHAWK3_SUPPORT 42788 int 42789 bcm_tomahawk3_port_link_status_get( 42790 int unit, 42791 bcm_port_t port, 42792 int *status) 42793 { 42794 return bcm_esw_port_link_status_get(unit, port, status); 42795 } 42796 #endif 42797 42798 #ifdef BCM_TOMAHAWK3_SUPPORT 42799 int 42800 bcm_tomahawk3_port_linkscan_get( 42801 int unit, 42802 bcm_port_t port, 42803 int *linkscan) 42804 { 42805 return bcm_esw_port_linkscan_get(unit, port, linkscan); 42806 } 42807 #endif 42808 42809 #ifdef BCM_TOMAHAWK3_SUPPORT 42810 int 42811 bcm_tomahawk3_port_linkscan_set( 42812 int unit, 42813 bcm_port_t port, 42814 int linkscan) 42815 { 42816 return bcm_esw_port_linkscan_set(unit, port, linkscan); 42817 } 42818 #endif 42819 42820 #ifdef BCM_TOMAHAWK3_SUPPORT 42821 int 42822 bcm_tomahawk3_port_local_get( 42823 int unit, 42824 bcm_gport_t gport, 42825 bcm_port_t *local_port) 42826 { 42827 return bcm_esw_port_local_get(unit, gport, local_port); 42828 } 42829 #endif 42830 42831 #ifdef BCM_TOMAHAWK3_SUPPORT 42832 int 42833 bcm_tomahawk3_port_loopback_get( 42834 int unit, 42835 bcm_port_t port, 42836 int *loopback) 42837 { 42838 return bcm_esw_port_loopback_get(unit, port, loopback); 42839 } 42840 #endif 42841 42842 #ifdef BCM_TOMAHAWK3_SUPPORT 42843 int 42844 bcm_tomahawk3_port_loopback_set( 42845 int unit, 42846 bcm_port_t port, 42847 int loopback) 42848 { 42849 return bcm_esw_port_loopback_set(unit, port, loopback); 42850 } 42851 #endif 42852 42853 int 42854 bcm_tomahawk3_port_management_packet_config_get( 42855 int unit, 42856 bcm_port_t port, 42857 bcm_port_management_packet_config_t *config_array, 42858 int max_config, 42859 int *config_count) 42860 { 42861 return BCM_E_UNAVAIL; 42862 } 42863 42864 int 42865 bcm_tomahawk3_port_management_packet_config_set( 42866 int unit, 42867 bcm_port_t port, 42868 bcm_port_management_packet_config_t *config) 42869 { 42870 return BCM_E_UNAVAIL; 42871 } 42872 42873 #ifdef BCM_TOMAHAWK3_SUPPORT 42874 int 42875 bcm_tomahawk3_port_master_get( 42876 int unit, 42877 bcm_port_t port, 42878 int *ms) 42879 { 42880 return bcm_esw_port_master_get(unit, port, ms); 42881 } 42882 #endif 42883 42884 #ifdef BCM_TOMAHAWK3_SUPPORT 42885 int 42886 bcm_tomahawk3_port_master_set( 42887 int unit, 42888 bcm_port_t port, 42889 int ms) 42890 { 42891 return bcm_esw_port_master_set(unit, port, ms); 42892 } 42893 #endif 42894 42895 #ifdef BCM_TOMAHAWK3_SUPPORT 42896 int 42897 bcm_tomahawk3_port_match_add( 42898 int unit, 42899 bcm_gport_t port, 42900 bcm_port_match_info_t *match) 42901 { 42902 return bcm_esw_port_match_add(unit, port, match); 42903 } 42904 #endif 42905 42906 #ifdef BCM_TOMAHAWK3_SUPPORT 42907 int 42908 bcm_tomahawk3_port_match_delete( 42909 int unit, 42910 bcm_gport_t port, 42911 bcm_port_match_info_t *match) 42912 { 42913 return bcm_esw_port_match_delete(unit, port, match); 42914 } 42915 #endif 42916 42917 #ifdef BCM_TOMAHAWK3_SUPPORT 42918 int 42919 bcm_tomahawk3_port_match_delete_all( 42920 int unit, 42921 bcm_gport_t port) 42922 { 42923 return bcm_esw_port_match_delete_all(unit, port); 42924 } 42925 #endif 42926 42927 #ifdef BCM_TOMAHAWK3_SUPPORT 42928 int 42929 bcm_tomahawk3_port_match_multi_get( 42930 int unit, 42931 bcm_gport_t port, 42932 int size, 42933 bcm_port_match_info_t *match_array, 42934 int *count) 42935 { 42936 return bcm_esw_port_match_multi_get(unit, port, size, match_array, count); 42937 } 42938 #endif 42939 42940 #ifdef BCM_TOMAHAWK3_SUPPORT 42941 int 42942 bcm_tomahawk3_port_match_replace( 42943 int unit, 42944 bcm_gport_t port, 42945 bcm_port_match_info_t *old_match, 42946 bcm_port_match_info_t *new_match) 42947 { 42948 return bcm_esw_port_match_replace(unit, port, old_match, new_match); 42949 } 42950 #endif 42951 42952 #ifdef BCM_TOMAHAWK3_SUPPORT 42953 int 42954 bcm_tomahawk3_port_match_set( 42955 int unit, 42956 bcm_gport_t port, 42957 int size, 42958 bcm_port_match_info_t *match_array) 42959 { 42960 return bcm_esw_port_match_set(unit, port, size, match_array); 42961 } 42962 #endif 42963 42964 #ifdef BCM_TOMAHAWK3_SUPPORT 42965 int 42966 bcm_tomahawk3_port_mdix_get( 42967 int unit, 42968 bcm_port_t port, 42969 bcm_port_mdix_t *mode) 42970 { 42971 return bcm_esw_port_mdix_get(unit, port, mode); 42972 } 42973 #endif 42974 42975 #ifdef BCM_TOMAHAWK3_SUPPORT 42976 int 42977 bcm_tomahawk3_port_mdix_set( 42978 int unit, 42979 bcm_port_t port, 42980 bcm_port_mdix_t mode) 42981 { 42982 return bcm_esw_port_mdix_set(unit, port, mode); 42983 } 42984 #endif 42985 42986 #ifdef BCM_TOMAHAWK3_SUPPORT 42987 int 42988 bcm_tomahawk3_port_mdix_status_get( 42989 int unit, 42990 bcm_port_t port, 42991 bcm_port_mdix_status_t *status) 42992 { 42993 return bcm_esw_port_mdix_status_get(unit, port, status); 42994 } 42995 #endif 42996 42997 #ifdef BCM_TOMAHAWK3_SUPPORT 42998 int 42999 bcm_tomahawk3_port_medium_config_get( 43000 int unit, 43001 bcm_port_t port, 43002 bcm_port_medium_t medium, 43003 bcm_phy_config_t *config) 43004 { 43005 return bcm_esw_port_medium_config_get(unit, port, medium, config); 43006 } 43007 #endif 43008 43009 #ifdef BCM_TOMAHAWK3_SUPPORT 43010 int 43011 bcm_tomahawk3_port_medium_config_set( 43012 int unit, 43013 bcm_port_t port, 43014 bcm_port_medium_t medium, 43015 bcm_phy_config_t *config) 43016 { 43017 return bcm_esw_port_medium_config_set(unit, port, medium, config); 43018 } 43019 #endif 43020 43021 #ifdef BCM_TOMAHAWK3_SUPPORT 43022 int 43023 bcm_tomahawk3_port_medium_get( 43024 int unit, 43025 bcm_port_t port, 43026 bcm_port_medium_t *medium) 43027 { 43028 return bcm_esw_port_medium_get(unit, port, medium); 43029 } 43030 #endif 43031 43032 #ifdef BCM_TOMAHAWK3_SUPPORT 43033 int 43034 bcm_tomahawk3_port_medium_status_register( 43035 int unit, 43036 bcm_port_t port, 43037 bcm_port_medium_status_cb_t callback, 43038 void *user_data) 43039 { 43040 return bcm_esw_port_medium_status_register(unit, port, callback, user_data); 43041 } 43042 #endif 43043 43044 #ifdef BCM_TOMAHAWK3_SUPPORT 43045 int 43046 bcm_tomahawk3_port_medium_status_unregister( 43047 int unit, 43048 bcm_port_t port, 43049 bcm_port_medium_status_cb_t callback, 43050 void *user_data) 43051 { 43052 return bcm_esw_port_medium_status_unregister(unit, port, callback, user_data); 43053 } 43054 #endif 43055 43056 int 43057 bcm_tomahawk3_port_modid_egress_get( 43058 int unit, 43059 bcm_port_t port, 43060 bcm_module_t modid, 43061 bcm_pbmp_t *pbmp) 43062 { 43063 return BCM_E_UNAVAIL; 43064 } 43065 43066 int 43067 bcm_tomahawk3_port_modid_egress_set( 43068 int unit, 43069 bcm_port_t port, 43070 bcm_module_t modid, 43071 bcm_pbmp_t pbmp) 43072 { 43073 return BCM_E_UNAVAIL; 43074 } 43075 43076 int 43077 bcm_tomahawk3_port_modid_enable_get( 43078 int unit, 43079 bcm_port_t port, 43080 int modid, 43081 int *enable) 43082 { 43083 return BCM_E_UNAVAIL; 43084 } 43085 43086 int 43087 bcm_tomahawk3_port_modid_enable_set( 43088 int unit, 43089 bcm_port_t port, 43090 int modid, 43091 int enable) 43092 { 43093 return BCM_E_UNAVAIL; 43094 } 43095 43096 int 43097 bcm_tomahawk3_port_nif_priority_get( 43098 int unit, 43099 bcm_gport_t local_port, 43100 uint32 flags, 43101 bcm_port_nif_prio_t *priority, 43102 bcm_pbmp_t *affected_ports) 43103 { 43104 return BCM_E_UNAVAIL; 43105 } 43106 43107 int 43108 bcm_tomahawk3_port_nif_priority_set( 43109 int unit, 43110 bcm_gport_t local_port, 43111 uint32 flags, 43112 bcm_port_nif_prio_t *priority, 43113 bcm_pbmp_t *affected_ports) 43114 { 43115 return BCM_E_UNAVAIL; 43116 } 43117 43118 #ifdef BCM_TOMAHAWK3_SUPPORT 43119 int 43120 bcm_tomahawk3_port_pause_addr_get( 43121 int unit, 43122 bcm_port_t port, 43123 bcm_mac_t mac) 43124 { 43125 return bcm_esw_port_pause_addr_get(unit, port, mac); 43126 } 43127 #endif 43128 43129 #ifdef BCM_TOMAHAWK3_SUPPORT 43130 int 43131 bcm_tomahawk3_port_pause_addr_set( 43132 int unit, 43133 bcm_port_t port, 43134 bcm_mac_t mac) 43135 { 43136 return bcm_esw_port_pause_addr_set(unit, port, mac); 43137 } 43138 #endif 43139 43140 #ifdef BCM_TOMAHAWK3_SUPPORT 43141 int 43142 bcm_tomahawk3_port_pause_get( 43143 int unit, 43144 bcm_port_t port, 43145 int *pause_tx, 43146 int *pause_rx) 43147 { 43148 return bcm_esw_port_pause_get(unit, port, pause_tx, pause_rx); 43149 } 43150 #endif 43151 43152 #ifdef BCM_TOMAHAWK3_SUPPORT 43153 int 43154 bcm_tomahawk3_port_pause_set( 43155 int unit, 43156 bcm_port_t port, 43157 int pause_tx, 43158 int pause_rx) 43159 { 43160 return bcm_esw_port_pause_set(unit, port, pause_tx, pause_rx); 43161 } 43162 #endif 43163 43164 #ifdef BCM_TOMAHAWK3_SUPPORT 43165 int 43166 bcm_tomahawk3_port_pause_sym_get( 43167 int unit, 43168 bcm_port_t port, 43169 int *pause) 43170 { 43171 return bcm_esw_port_pause_sym_get(unit, port, pause); 43172 } 43173 #endif 43174 43175 #ifdef BCM_TOMAHAWK3_SUPPORT 43176 int 43177 bcm_tomahawk3_port_pause_sym_set( 43178 int unit, 43179 bcm_port_t port, 43180 int pause) 43181 { 43182 return bcm_esw_port_pause_sym_set(unit, port, pause); 43183 } 43184 #endif 43185 43186 #ifdef BCM_TOMAHAWK3_SUPPORT 43187 int 43188 bcm_tomahawk3_port_pfm_get( 43189 int unit, 43190 bcm_port_t port, 43191 int *mode) 43192 { 43193 return bcm_esw_port_pfm_get(unit, port, mode); 43194 } 43195 #endif 43196 43197 #ifdef BCM_TOMAHAWK3_SUPPORT 43198 int 43199 bcm_tomahawk3_port_pfm_set( 43200 int unit, 43201 bcm_port_t port, 43202 int mode) 43203 { 43204 return bcm_esw_port_pfm_set(unit, port, mode); 43205 } 43206 #endif 43207 43208 #ifdef BCM_TOMAHAWK3_SUPPORT 43209 int 43210 bcm_tomahawk3_port_phy_control_get( 43211 int unit, 43212 bcm_port_t port, 43213 bcm_port_phy_control_t type, 43214 uint32 *value) 43215 { 43216 return bcm_esw_port_phy_control_get(unit, port, type, value); 43217 } 43218 #endif 43219 43220 #ifdef BCM_TOMAHAWK3_SUPPORT 43221 int 43222 bcm_tomahawk3_port_phy_control_set( 43223 int unit, 43224 bcm_port_t port, 43225 bcm_port_phy_control_t type, 43226 uint32 value) 43227 { 43228 return bcm_esw_port_phy_control_set(unit, port, type, value); 43229 } 43230 #endif 43231 43232 #ifdef BCM_TOMAHAWK3_SUPPORT 43233 int 43234 bcm_tomahawk3_port_phy_drv_name_get( 43235 int unit, 43236 bcm_port_t port, 43237 char *name, 43238 int len) 43239 { 43240 return bcm_esw_port_phy_drv_name_get(unit, port, name, len); 43241 } 43242 #endif 43243 43244 #ifdef BCM_TOMAHAWK3_SUPPORT 43245 int 43246 bcm_tomahawk3_port_phy_firmware_set( 43247 int unit, 43248 bcm_port_t port, 43249 uint32 flags, 43250 int offset, 43251 uint8 *array, 43252 int length) 43253 { 43254 return bcm_esw_port_phy_firmware_set(unit, port, flags, offset, array, length); 43255 } 43256 #endif 43257 43258 #ifdef BCM_TOMAHAWK3_SUPPORT 43259 int 43260 bcm_tomahawk3_port_phy_get( 43261 int unit, 43262 bcm_port_t port, 43263 uint32 flags, 43264 uint32 phy_reg_addr, 43265 uint32 *phy_data) 43266 { 43267 return bcm_esw_port_phy_get(unit, port, flags, phy_reg_addr, phy_data); 43268 } 43269 #endif 43270 43271 #ifdef BCM_TOMAHAWK3_SUPPORT 43272 int 43273 bcm_tomahawk3_port_phy_modify( 43274 int unit, 43275 bcm_port_t port, 43276 uint32 flags, 43277 uint32 phy_reg_addr, 43278 uint32 phy_data, 43279 uint32 phy_mask) 43280 { 43281 return bcm_esw_port_phy_modify(unit, port, flags, phy_reg_addr, phy_data, phy_mask); 43282 } 43283 #endif 43284 43285 #ifdef BCM_TOMAHAWK3_SUPPORT 43286 int 43287 bcm_tomahawk3_port_phy_multi_get( 43288 int unit, 43289 bcm_port_t port, 43290 uint32 flags, 43291 uint32 dev_addr, 43292 uint32 offset, 43293 int max_size, 43294 uint8 *data, 43295 int *actual_size) 43296 { 43297 return bcm_esw_port_phy_multi_get(unit, port, flags, dev_addr, offset, max_size, data, actual_size); 43298 } 43299 #endif 43300 43301 #ifdef BCM_TOMAHAWK3_SUPPORT 43302 int 43303 bcm_tomahawk3_port_phy_reset( 43304 int unit, 43305 bcm_port_t port) 43306 { 43307 return bcm_esw_port_phy_reset(unit, port); 43308 } 43309 #endif 43310 43311 #ifdef BCM_TOMAHAWK3_SUPPORT 43312 int 43313 bcm_tomahawk3_port_phy_reset_register( 43314 int unit, 43315 bcm_port_t port, 43316 bcm_port_phy_reset_cb_t callback, 43317 void *user_data) 43318 { 43319 return bcm_esw_port_phy_reset_register(unit, port, callback, user_data); 43320 } 43321 #endif 43322 43323 #ifdef BCM_TOMAHAWK3_SUPPORT 43324 int 43325 bcm_tomahawk3_port_phy_reset_unregister( 43326 int unit, 43327 bcm_port_t port, 43328 bcm_port_phy_reset_cb_t callback, 43329 void *user_data) 43330 { 43331 return bcm_esw_port_phy_reset_unregister(unit, port, callback, user_data); 43332 } 43333 #endif 43334 43335 #ifdef BCM_TOMAHAWK3_SUPPORT 43336 int 43337 bcm_tomahawk3_port_phy_set( 43338 int unit, 43339 bcm_port_t port, 43340 uint32 flags, 43341 uint32 phy_reg_addr, 43342 uint32 phy_data) 43343 { 43344 return bcm_esw_port_phy_set(unit, port, flags, phy_reg_addr, phy_data); 43345 } 43346 #endif 43347 43348 #ifdef BCM_TOMAHAWK3_SUPPORT 43349 int 43350 bcm_tomahawk3_port_phy_timesync_config_get( 43351 int unit, 43352 bcm_port_t port, 43353 bcm_port_phy_timesync_config_t *conf) 43354 { 43355 return bcm_esw_port_phy_timesync_config_get(unit, port, conf); 43356 } 43357 #endif 43358 43359 #ifdef BCM_TOMAHAWK3_SUPPORT 43360 int 43361 bcm_tomahawk3_port_phy_timesync_config_set( 43362 int unit, 43363 bcm_port_t port, 43364 bcm_port_phy_timesync_config_t *conf) 43365 { 43366 return bcm_esw_port_phy_timesync_config_set(unit, port, conf); 43367 } 43368 #endif 43369 43370 #ifdef BCM_TOMAHAWK3_SUPPORT 43371 int 43372 bcm_tomahawk3_port_phy_timesync_enhanced_capture_get( 43373 int unit, 43374 bcm_port_t port, 43375 bcm_port_phy_timesync_enhanced_capture_t *value) 43376 { 43377 return bcm_esw_port_phy_timesync_enhanced_capture_get(unit, port, value); 43378 } 43379 #endif 43380 43381 #ifdef BCM_TOMAHAWK3_SUPPORT 43382 int 43383 bcm_tomahawk3_port_phy_tx_get( 43384 int unit, 43385 bcm_port_t port, 43386 bcm_port_phy_tx_t *tx) 43387 { 43388 return bcm_esw_port_phy_tx_get(unit, port, tx); 43389 } 43390 #endif 43391 43392 #ifdef BCM_TOMAHAWK3_SUPPORT 43393 int 43394 bcm_tomahawk3_port_phy_tx_set( 43395 int unit, 43396 bcm_port_t port, 43397 bcm_port_phy_tx_t *tx) 43398 { 43399 return bcm_esw_port_phy_tx_set(unit, port, tx); 43400 } 43401 #endif 43402 43403 #ifdef BCM_TOMAHAWK3_SUPPORT 43404 int 43405 bcm_tomahawk3_port_policer_get( 43406 int unit, 43407 bcm_port_t port, 43408 bcm_policer_t *policer_id) 43409 { 43410 return bcm_esw_port_policer_get(unit, port, policer_id); 43411 } 43412 #endif 43413 43414 #ifdef BCM_TOMAHAWK3_SUPPORT 43415 int 43416 bcm_tomahawk3_port_policer_set( 43417 int unit, 43418 bcm_port_t port, 43419 bcm_policer_t policer_id) 43420 { 43421 return bcm_esw_port_policer_set(unit, port, policer_id); 43422 } 43423 #endif 43424 43425 int 43426 bcm_tomahawk3_port_pon_info_get( 43427 int unit, 43428 bcm_port_t pon_port, 43429 bcm_port_pon_info_t *info) 43430 { 43431 return BCM_E_UNAVAIL; 43432 } 43433 43434 int 43435 bcm_tomahawk3_port_pon_info_set( 43436 int unit, 43437 bcm_port_t pon_port, 43438 bcm_port_pon_info_t *info) 43439 { 43440 return BCM_E_UNAVAIL; 43441 } 43442 43443 #ifdef BCM_TOMAHAWK3_SUPPORT 43444 int 43445 bcm_tomahawk3_port_pon_tunnel_add( 43446 int unit, 43447 bcm_gport_t pon_port, 43448 uint32 flags, 43449 bcm_gport_t *tunnel_port_id) 43450 { 43451 return bcm_esw_port_pon_tunnel_add(unit, pon_port, flags, tunnel_port_id); 43452 } 43453 #endif 43454 43455 #ifdef BCM_TOMAHAWK3_SUPPORT 43456 int 43457 bcm_tomahawk3_port_pon_tunnel_map_get( 43458 int unit, 43459 bcm_gport_t pon_port, 43460 bcm_tunnel_id_t tunnel_id, 43461 bcm_gport_t *tunnel_port_id) 43462 { 43463 return bcm_esw_port_pon_tunnel_map_get(unit, pon_port, tunnel_id, tunnel_port_id); 43464 } 43465 #endif 43466 43467 #ifdef BCM_TOMAHAWK3_SUPPORT 43468 int 43469 bcm_tomahawk3_port_pon_tunnel_map_set( 43470 int unit, 43471 bcm_gport_t pon_port, 43472 bcm_tunnel_id_t tunnel_id, 43473 bcm_gport_t tunnel_port_id) 43474 { 43475 return bcm_esw_port_pon_tunnel_map_set(unit, pon_port, tunnel_id, tunnel_port_id); 43476 } 43477 #endif 43478 43479 #ifdef BCM_TOMAHAWK3_SUPPORT 43480 int 43481 bcm_tomahawk3_port_pon_tunnel_remove( 43482 int unit, 43483 bcm_gport_t tunnel_port_id) 43484 { 43485 return bcm_esw_port_pon_tunnel_remove(unit, tunnel_port_id); 43486 } 43487 #endif 43488 43489 #ifdef BCM_TOMAHAWK3_SUPPORT 43490 int 43491 bcm_tomahawk3_port_preemption_control_get( 43492 int unit, 43493 bcm_gport_t gport, 43494 bcm_port_preempt_control_t type, 43495 uint32 *arg) 43496 { 43497 return bcm_esw_port_preemption_control_get(unit, gport, type, arg); 43498 } 43499 #endif 43500 43501 #ifdef BCM_TOMAHAWK3_SUPPORT 43502 int 43503 bcm_tomahawk3_port_preemption_control_set( 43504 int unit, 43505 bcm_gport_t gport, 43506 bcm_port_preempt_control_t type, 43507 uint32 arg) 43508 { 43509 return bcm_esw_port_preemption_control_set(unit, gport, type, arg); 43510 } 43511 #endif 43512 43513 #ifdef BCM_TOMAHAWK3_SUPPORT 43514 int 43515 bcm_tomahawk3_port_preemption_status_get( 43516 int unit, 43517 bcm_gport_t gport, 43518 bcm_port_preempt_status_t type, 43519 uint32 *status) 43520 { 43521 return bcm_esw_port_preemption_status_get(unit, gport, type, status); 43522 } 43523 #endif 43524 43525 #ifdef BCM_TOMAHAWK3_SUPPORT 43526 int 43527 bcm_tomahawk3_port_priority_color_get( 43528 int unit, 43529 bcm_port_t port, 43530 int prio, 43531 bcm_color_t *color) 43532 { 43533 return bcm_esw_port_priority_color_get(unit, port, prio, color); 43534 } 43535 #endif 43536 43537 #ifdef BCM_TOMAHAWK3_SUPPORT 43538 int 43539 bcm_tomahawk3_port_priority_color_set( 43540 int unit, 43541 bcm_port_t port, 43542 int prio, 43543 bcm_color_t color) 43544 { 43545 return bcm_esw_port_priority_color_set(unit, port, prio, color); 43546 } 43547 #endif 43548 43549 #ifdef BCM_TOMAHAWK3_SUPPORT 43550 int 43551 bcm_tomahawk3_port_priority_config_get( 43552 int unit, 43553 bcm_port_t port, 43554 bcm_port_prio_config_t *priority_config) 43555 { 43556 return bcm_esw_port_priority_config_get(unit, port, priority_config); 43557 } 43558 #endif 43559 43560 #ifdef BCM_TOMAHAWK3_SUPPORT 43561 int 43562 bcm_tomahawk3_port_priority_config_set( 43563 int unit, 43564 bcm_port_t port, 43565 bcm_port_prio_config_t *port_priority_config) 43566 { 43567 return bcm_esw_port_priority_config_set(unit, port, port_priority_config); 43568 } 43569 #endif 43570 43571 #ifdef BCM_TOMAHAWK3_SUPPORT 43572 int 43573 bcm_tomahawk3_port_priority_group_config_get( 43574 int unit, 43575 bcm_gport_t gport, 43576 int priority_group, 43577 bcm_port_priority_group_config_t *prigrp_config) 43578 { 43579 return bcm_esw_port_priority_group_config_get(unit, gport, priority_group, prigrp_config); 43580 } 43581 #endif 43582 43583 #ifdef BCM_TOMAHAWK3_SUPPORT 43584 int 43585 bcm_tomahawk3_port_priority_group_config_set( 43586 int unit, 43587 bcm_gport_t gport, 43588 int priority_group, 43589 bcm_port_priority_group_config_t *prigrp_config) 43590 { 43591 return bcm_esw_port_priority_group_config_set(unit, gport, priority_group, prigrp_config); 43592 } 43593 #endif 43594 43595 #ifdef BCM_TOMAHAWK3_SUPPORT 43596 int 43597 bcm_tomahawk3_port_priority_group_mapping_get( 43598 int unit, 43599 bcm_gport_t gport, 43600 int prio, 43601 int *priority_group) 43602 { 43603 return bcm_esw_port_priority_group_mapping_get(unit, gport, prio, priority_group); 43604 } 43605 #endif 43606 43607 #ifdef BCM_TOMAHAWK3_SUPPORT 43608 int 43609 bcm_tomahawk3_port_priority_group_mapping_set( 43610 int unit, 43611 bcm_gport_t gport, 43612 int prio, 43613 int priority_group ) 43614 { 43615 return bcm_esw_port_priority_group_mapping_set(unit, gport, prio, priority_group ); 43616 } 43617 #endif 43618 43619 #ifdef BCM_TOMAHAWK3_SUPPORT 43620 int 43621 bcm_tomahawk3_port_probe( 43622 int unit, 43623 bcm_pbmp_t pbmp, 43624 bcm_pbmp_t *okay_pbmp) 43625 { 43626 return bcm_esw_port_probe(unit, pbmp, okay_pbmp); 43627 } 43628 #endif 43629 43630 int 43631 bcm_tomahawk3_port_protocol_vlan_add( 43632 int unit, 43633 bcm_port_t port, 43634 bcm_port_frametype_t frame, 43635 bcm_port_ethertype_t ether, 43636 bcm_vlan_t vid) 43637 { 43638 return BCM_E_UNAVAIL; 43639 } 43640 43641 int 43642 bcm_tomahawk3_port_protocol_vlan_delete( 43643 int unit, 43644 bcm_port_t port, 43645 bcm_port_frametype_t frame, 43646 bcm_port_ethertype_t ether) 43647 { 43648 return BCM_E_UNAVAIL; 43649 } 43650 43651 int 43652 bcm_tomahawk3_port_protocol_vlan_delete_all( 43653 int unit, 43654 bcm_port_t port) 43655 { 43656 return BCM_E_UNAVAIL; 43657 } 43658 43659 #ifdef BCM_TOMAHAWK3_SUPPORT 43660 int 43661 bcm_tomahawk3_port_queued_count_get( 43662 int unit, 43663 bcm_port_t port, 43664 uint32 *count) 43665 { 43666 return bcm_esw_port_queued_count_get(unit, port, count); 43667 } 43668 #endif 43669 43670 #ifdef BCM_TOMAHAWK3_SUPPORT 43671 int 43672 bcm_tomahawk3_port_rate_egress_get( 43673 int unit, 43674 bcm_port_t port, 43675 uint32 *kbits_sec, 43676 uint32 *kbits_burst) 43677 { 43678 return bcm_esw_port_rate_egress_get(unit, port, kbits_sec, kbits_burst); 43679 } 43680 #endif 43681 43682 #ifdef BCM_TOMAHAWK3_SUPPORT 43683 int 43684 bcm_tomahawk3_port_rate_egress_pps_get( 43685 int unit, 43686 bcm_port_t port, 43687 uint32 *pps, 43688 uint32 *burst) 43689 { 43690 return bcm_esw_port_rate_egress_pps_get(unit, port, pps, burst); 43691 } 43692 #endif 43693 43694 #ifdef BCM_TOMAHAWK3_SUPPORT 43695 int 43696 bcm_tomahawk3_port_rate_egress_pps_set( 43697 int unit, 43698 bcm_port_t port, 43699 uint32 pps, 43700 uint32 burst) 43701 { 43702 return bcm_esw_port_rate_egress_pps_set(unit, port, pps, burst); 43703 } 43704 #endif 43705 43706 #ifdef BCM_TOMAHAWK3_SUPPORT 43707 int 43708 bcm_tomahawk3_port_rate_egress_set( 43709 int unit, 43710 bcm_port_t port, 43711 uint32 kbits_sec, 43712 uint32 kbits_burst) 43713 { 43714 return bcm_esw_port_rate_egress_set(unit, port, kbits_sec, kbits_burst); 43715 } 43716 #endif 43717 43718 #ifdef BCM_TOMAHAWK3_SUPPORT 43719 int 43720 bcm_tomahawk3_port_rate_ingress_get( 43721 int unit, 43722 bcm_port_t port, 43723 uint32 *kbits_sec, 43724 uint32 *kbits_burst) 43725 { 43726 return bcm_esw_port_rate_ingress_get(unit, port, kbits_sec, kbits_burst); 43727 } 43728 #endif 43729 43730 #ifdef BCM_TOMAHAWK3_SUPPORT 43731 int 43732 bcm_tomahawk3_port_rate_ingress_set( 43733 int unit, 43734 bcm_port_t port, 43735 uint32 kbits_sec, 43736 uint32 kbits_burst) 43737 { 43738 return bcm_esw_port_rate_ingress_set(unit, port, kbits_sec, kbits_burst); 43739 } 43740 #endif 43741 43742 #ifdef BCM_TOMAHAWK3_SUPPORT 43743 int 43744 bcm_tomahawk3_port_rate_pause_get( 43745 int unit, 43746 bcm_port_t port, 43747 uint32 *kbits_pause, 43748 uint32 *kbits_resume) 43749 { 43750 return bcm_esw_port_rate_pause_get(unit, port, kbits_pause, kbits_resume); 43751 } 43752 #endif 43753 43754 #ifdef BCM_TOMAHAWK3_SUPPORT 43755 int 43756 bcm_tomahawk3_port_rate_pause_set( 43757 int unit, 43758 bcm_port_t port, 43759 uint32 kbits_pause, 43760 uint32 kbits_resume) 43761 { 43762 return bcm_esw_port_rate_pause_set(unit, port, kbits_pause, kbits_resume); 43763 } 43764 #endif 43765 43766 #ifdef BCM_TOMAHAWK3_SUPPORT 43767 int 43768 bcm_tomahawk3_port_redirect_config_get( 43769 int unit, 43770 bcm_gport_t gport, 43771 bcm_port_redirect_config_t *redirect_config) 43772 { 43773 return bcm_esw_port_redirect_config_get(unit, gport, redirect_config); 43774 } 43775 #endif 43776 43777 #ifdef BCM_TOMAHAWK3_SUPPORT 43778 int 43779 bcm_tomahawk3_port_redirect_config_set( 43780 int unit, 43781 bcm_gport_t port, 43782 bcm_port_redirect_config_t *redirect_config) 43783 { 43784 return bcm_esw_port_redirect_config_set(unit, port, redirect_config); 43785 } 43786 #endif 43787 43788 int 43789 bcm_tomahawk3_port_remove( 43790 int unit, 43791 bcm_port_t port, 43792 uint32 flags) 43793 { 43794 return BCM_E_UNAVAIL; 43795 } 43796 43797 int 43798 bcm_tomahawk3_port_resource_default_get( 43799 int unit, 43800 bcm_gport_t port, 43801 uint32 flags, 43802 bcm_port_resource_t *resource) 43803 { 43804 return BCM_E_UNAVAIL; 43805 } 43806 43807 #ifdef BCM_TOMAHAWK3_SUPPORT 43808 int 43809 bcm_tomahawk3_port_resource_get( 43810 int unit, 43811 bcm_gport_t port, 43812 bcm_port_resource_t *resource) 43813 { 43814 return bcm_esw_port_resource_get(unit, port, resource); 43815 } 43816 #endif 43817 43818 #ifdef BCM_TOMAHAWK3_SUPPORT 43819 int 43820 bcm_tomahawk3_port_resource_multi_set( 43821 int unit, 43822 int nport, 43823 bcm_port_resource_t *resource) 43824 { 43825 return bcm_esw_port_resource_multi_set(unit, nport, resource); 43826 } 43827 #endif 43828 43829 #ifdef BCM_TOMAHAWK3_SUPPORT 43830 int 43831 bcm_tomahawk3_port_resource_set( 43832 int unit, 43833 bcm_gport_t port, 43834 bcm_port_resource_t *resource) 43835 { 43836 return bcm_esw_port_resource_set(unit, port, resource); 43837 } 43838 #endif 43839 43840 #ifdef BCM_TOMAHAWK3_SUPPORT 43841 int 43842 bcm_tomahawk3_port_resource_speed_config_validate( 43843 int unit, 43844 bcm_port_resource_t *resource, 43845 bcm_pbmp_t *pbmp) 43846 { 43847 return bcm_esw_port_resource_speed_config_validate(unit, resource, pbmp); 43848 } 43849 #endif 43850 43851 #ifdef BCM_TOMAHAWK3_SUPPORT 43852 int 43853 bcm_tomahawk3_port_resource_speed_get( 43854 int unit, 43855 bcm_gport_t port, 43856 bcm_port_resource_t *resource) 43857 { 43858 return bcm_esw_port_resource_speed_get(unit, port, resource); 43859 } 43860 #endif 43861 43862 #ifdef BCM_TOMAHAWK3_SUPPORT 43863 int 43864 bcm_tomahawk3_port_resource_speed_multi_set( 43865 int unit, 43866 int nport, 43867 bcm_port_resource_t *resource) 43868 { 43869 return bcm_esw_port_resource_speed_multi_set(unit, nport, resource); 43870 } 43871 #endif 43872 43873 #ifdef BCM_TOMAHAWK3_SUPPORT 43874 int 43875 bcm_tomahawk3_port_resource_speed_set( 43876 int unit, 43877 bcm_gport_t port, 43878 bcm_port_resource_t *resource) 43879 { 43880 return bcm_esw_port_resource_speed_set(unit, port, resource); 43881 } 43882 #endif 43883 43884 #ifdef BCM_TOMAHAWK3_SUPPORT 43885 int 43886 bcm_tomahawk3_port_resource_traverse( 43887 int unit, 43888 bcm_port_resource_traverse_cb trav_fn, 43889 void *user_data) 43890 { 43891 return bcm_esw_port_resource_traverse(unit, trav_fn, user_data); 43892 } 43893 #endif 43894 43895 #ifdef BCM_TOMAHAWK3_SUPPORT 43896 int 43897 bcm_tomahawk3_port_rlm_config_get( 43898 int unit, 43899 bcm_port_t port, 43900 bcm_port_rlm_config_t *rlm_config, 43901 int *enable) 43902 { 43903 return bcm_esw_port_rlm_config_get(unit, port, rlm_config, enable); 43904 } 43905 #endif 43906 43907 #ifdef BCM_TOMAHAWK3_SUPPORT 43908 int 43909 bcm_tomahawk3_port_rlm_config_set( 43910 int unit, 43911 bcm_port_t port, 43912 bcm_port_rlm_config_t *rlm_config, 43913 int enable) 43914 { 43915 return bcm_esw_port_rlm_config_set(unit, port, rlm_config, enable); 43916 } 43917 #endif 43918 43919 #ifdef BCM_TOMAHAWK3_SUPPORT 43920 int 43921 bcm_tomahawk3_port_rlm_status_get( 43922 int unit, 43923 bcm_port_t port, 43924 bcm_port_rlm_status_t *rlm_status) 43925 { 43926 return bcm_esw_port_rlm_status_get(unit, port, rlm_status); 43927 } 43928 #endif 43929 43930 #ifdef BCM_TOMAHAWK3_SUPPORT 43931 int 43932 bcm_tomahawk3_port_sample_rate_get( 43933 int unit, 43934 bcm_port_t port, 43935 int *ingress_rate, 43936 int *egress_rate) 43937 { 43938 return bcm_esw_port_sample_rate_get(unit, port, ingress_rate, egress_rate); 43939 } 43940 #endif 43941 43942 #ifdef BCM_TOMAHAWK3_SUPPORT 43943 int 43944 bcm_tomahawk3_port_sample_rate_set( 43945 int unit, 43946 bcm_port_t port, 43947 int ingress_rate, 43948 int egress_rate) 43949 { 43950 return bcm_esw_port_sample_rate_set(unit, port, ingress_rate, egress_rate); 43951 } 43952 #endif 43953 43954 #ifdef BCM_TOMAHAWK3_SUPPORT 43955 int 43956 bcm_tomahawk3_port_selective_get( 43957 int unit, 43958 bcm_port_t port, 43959 bcm_port_info_t *info) 43960 { 43961 return bcm_esw_port_selective_get(unit, port, info); 43962 } 43963 #endif 43964 43965 #ifdef BCM_TOMAHAWK3_SUPPORT 43966 int 43967 bcm_tomahawk3_port_selective_set( 43968 int unit, 43969 bcm_port_t port, 43970 bcm_port_info_t *info) 43971 { 43972 return bcm_esw_port_selective_set(unit, port, info); 43973 } 43974 #endif 43975 43976 #ifdef BCM_TOMAHAWK3_SUPPORT 43977 int 43978 bcm_tomahawk3_port_speed_ability_local_get( 43979 int unit, 43980 bcm_port_t port, 43981 int max_num_ability, 43982 bcm_port_speed_ability_t *abilities_array, 43983 int *actual_num_ability) 43984 { 43985 return bcm_esw_port_speed_ability_local_get(unit, port, max_num_ability, abilities_array, actual_num_ability); 43986 } 43987 #endif 43988 43989 #ifdef BCM_TOMAHAWK3_SUPPORT 43990 int 43991 bcm_tomahawk3_port_speed_get( 43992 int unit, 43993 bcm_port_t port, 43994 int *speed) 43995 { 43996 return bcm_esw_port_speed_get(unit, port, speed); 43997 } 43998 #endif 43999 44000 #ifdef BCM_TOMAHAWK3_SUPPORT 44001 int 44002 bcm_tomahawk3_port_speed_max( 44003 int unit, 44004 bcm_port_t port, 44005 int *speed) 44006 { 44007 return bcm_esw_port_speed_max(unit, port, speed); 44008 } 44009 #endif 44010 44011 #ifdef BCM_TOMAHAWK3_SUPPORT 44012 int 44013 bcm_tomahawk3_port_speed_set( 44014 int unit, 44015 bcm_port_t port, 44016 int speed) 44017 { 44018 return bcm_esw_port_speed_set(unit, port, speed); 44019 } 44020 #endif 44021 44022 #ifdef BCM_TOMAHAWK3_SUPPORT 44023 int 44024 bcm_tomahawk3_port_stat_attach( 44025 int unit, 44026 bcm_gport_t port, 44027 uint32 stat_counter_id) 44028 { 44029 return bcm_esw_port_stat_attach(unit, port, stat_counter_id); 44030 } 44031 #endif 44032 44033 #ifdef BCM_TOMAHAWK3_SUPPORT 44034 int 44035 bcm_tomahawk3_port_stat_counter_get( 44036 int unit, 44037 bcm_gport_t port, 44038 bcm_port_stat_t stat, 44039 uint32 num_entries, 44040 uint32 *counter_indexes, 44041 bcm_stat_value_t *counter_values) 44042 { 44043 return bcm_esw_port_stat_counter_get(unit, port, stat, num_entries, counter_indexes, counter_values); 44044 } 44045 #endif 44046 44047 #ifdef BCM_TOMAHAWK3_SUPPORT 44048 int 44049 bcm_tomahawk3_port_stat_counter_set( 44050 int unit, 44051 bcm_gport_t port, 44052 bcm_port_stat_t stat, 44053 uint32 num_entries, 44054 uint32 *counter_indexes, 44055 bcm_stat_value_t *counter_values) 44056 { 44057 return bcm_esw_port_stat_counter_set(unit, port, stat, num_entries, counter_indexes, counter_values); 44058 } 44059 #endif 44060 44061 #ifdef BCM_TOMAHAWK3_SUPPORT 44062 int 44063 bcm_tomahawk3_port_stat_counter_sync_get( 44064 int unit, 44065 bcm_gport_t port, 44066 bcm_port_stat_t stat, 44067 uint32 num_entries, 44068 uint32 *counter_indexes, 44069 bcm_stat_value_t *counter_values) 44070 { 44071 return bcm_esw_port_stat_counter_sync_get(unit, port, stat, num_entries, counter_indexes, counter_values); 44072 } 44073 #endif 44074 44075 #ifdef BCM_TOMAHAWK3_SUPPORT 44076 int 44077 bcm_tomahawk3_port_stat_detach( 44078 int unit, 44079 bcm_gport_t port) 44080 { 44081 return bcm_esw_port_stat_detach(unit, port); 44082 } 44083 #endif 44084 44085 #ifdef BCM_TOMAHAWK3_SUPPORT 44086 int 44087 bcm_tomahawk3_port_stat_detach_with_id( 44088 int unit, 44089 bcm_gport_t port, 44090 uint32 stat_counter_id) 44091 { 44092 return bcm_esw_port_stat_detach_with_id(unit, port, stat_counter_id); 44093 } 44094 #endif 44095 44096 #ifdef BCM_TOMAHAWK3_SUPPORT 44097 int 44098 bcm_tomahawk3_port_stat_enable_set( 44099 int unit, 44100 bcm_gport_t port, 44101 int enable) 44102 { 44103 return bcm_esw_port_stat_enable_set(unit, port, enable); 44104 } 44105 #endif 44106 44107 #ifdef BCM_TOMAHAWK3_SUPPORT 44108 int 44109 bcm_tomahawk3_port_stat_get( 44110 int unit, 44111 bcm_gport_t port, 44112 bcm_port_stat_t stat, 44113 uint64 *val) 44114 { 44115 return bcm_esw_port_stat_get(unit, port, stat, val); 44116 } 44117 #endif 44118 44119 #ifdef BCM_TOMAHAWK3_SUPPORT 44120 int 44121 bcm_tomahawk3_port_stat_get32( 44122 int unit, 44123 bcm_gport_t port, 44124 bcm_port_stat_t stat, 44125 uint32 *val) 44126 { 44127 return bcm_esw_port_stat_get32(unit, port, stat, val); 44128 } 44129 #endif 44130 44131 #ifdef BCM_TOMAHAWK3_SUPPORT 44132 int 44133 bcm_tomahawk3_port_stat_id_get( 44134 int unit, 44135 bcm_gport_t port, 44136 bcm_port_stat_t stat, 44137 uint32 *stat_counter_id) 44138 { 44139 return bcm_esw_port_stat_id_get(unit, port, stat, stat_counter_id); 44140 } 44141 #endif 44142 44143 #ifdef BCM_TOMAHAWK3_SUPPORT 44144 int 44145 bcm_tomahawk3_port_stat_multi_get( 44146 int unit, 44147 bcm_gport_t port, 44148 int nstat, 44149 bcm_port_stat_t *stat_arr, 44150 uint64 *value_arr) 44151 { 44152 return bcm_esw_port_stat_multi_get(unit, port, nstat, stat_arr, value_arr); 44153 } 44154 #endif 44155 44156 #ifdef BCM_TOMAHAWK3_SUPPORT 44157 int 44158 bcm_tomahawk3_port_stat_multi_get32( 44159 int unit, 44160 bcm_gport_t port, 44161 int nstat, 44162 bcm_port_stat_t *stat_arr, 44163 uint32 *value_arr) 44164 { 44165 return bcm_esw_port_stat_multi_get32(unit, port, nstat, stat_arr, value_arr); 44166 } 44167 #endif 44168 44169 #ifdef BCM_TOMAHAWK3_SUPPORT 44170 int 44171 bcm_tomahawk3_port_stat_multi_set( 44172 int unit, 44173 bcm_gport_t port, 44174 int nstat, 44175 bcm_port_stat_t *stat_arr, 44176 uint64 *value_arr) 44177 { 44178 return bcm_esw_port_stat_multi_set(unit, port, nstat, stat_arr, value_arr); 44179 } 44180 #endif 44181 44182 #ifdef BCM_TOMAHAWK3_SUPPORT 44183 int 44184 bcm_tomahawk3_port_stat_multi_set32( 44185 int unit, 44186 bcm_gport_t port, 44187 int nstat, 44188 bcm_port_stat_t *stat_arr, 44189 uint32 *value_arr) 44190 { 44191 return bcm_esw_port_stat_multi_set32(unit, port, nstat, stat_arr, value_arr); 44192 } 44193 #endif 44194 44195 #ifdef BCM_TOMAHAWK3_SUPPORT 44196 int 44197 bcm_tomahawk3_port_stat_set( 44198 int unit, 44199 bcm_gport_t port, 44200 bcm_port_stat_t stat, 44201 uint64 val) 44202 { 44203 return bcm_esw_port_stat_set(unit, port, stat, val); 44204 } 44205 #endif 44206 44207 #ifdef BCM_TOMAHAWK3_SUPPORT 44208 int 44209 bcm_tomahawk3_port_stat_set32( 44210 int unit, 44211 bcm_gport_t port, 44212 bcm_port_stat_t stat, 44213 uint32 val) 44214 { 44215 return bcm_esw_port_stat_set32(unit, port, stat, val); 44216 } 44217 #endif 44218 44219 #ifdef BCM_TOMAHAWK3_SUPPORT 44220 int 44221 bcm_tomahawk3_port_stat_sync_get( 44222 int unit, 44223 bcm_gport_t port, 44224 bcm_port_stat_t stat, 44225 uint64 *val) 44226 { 44227 return bcm_esw_port_stat_sync_get(unit, port, stat, val); 44228 } 44229 #endif 44230 44231 #ifdef BCM_TOMAHAWK3_SUPPORT 44232 int 44233 bcm_tomahawk3_port_stat_sync_get32( 44234 int unit, 44235 bcm_gport_t port, 44236 bcm_port_stat_t stat, 44237 uint32 *val) 44238 { 44239 return bcm_esw_port_stat_sync_get32(unit, port, stat, val); 44240 } 44241 #endif 44242 44243 #ifdef BCM_TOMAHAWK3_SUPPORT 44244 int 44245 bcm_tomahawk3_port_stp_get( 44246 int unit, 44247 bcm_port_t port, 44248 int *state) 44249 { 44250 return bcm_esw_port_stp_get(unit, port, state); 44251 } 44252 #endif 44253 44254 #ifdef BCM_TOMAHAWK3_SUPPORT 44255 int 44256 bcm_tomahawk3_port_stp_set( 44257 int unit, 44258 bcm_port_t port, 44259 int state) 44260 { 44261 return bcm_esw_port_stp_set(unit, port, state); 44262 } 44263 #endif 44264 44265 #ifdef BCM_TOMAHAWK3_SUPPORT 44266 int 44267 bcm_tomahawk3_port_subsidiary_ports_get( 44268 int unit, 44269 bcm_port_t port, 44270 bcm_pbmp_t *pbmp) 44271 { 44272 return bcm_esw_port_subsidiary_ports_get(unit, port, pbmp); 44273 } 44274 #endif 44275 44276 #ifdef BCM_TOMAHAWK3_SUPPORT 44277 int 44278 bcm_tomahawk3_port_tgid_get( 44279 int unit, 44280 bcm_port_t port, 44281 int *tgid, 44282 int *psc) 44283 { 44284 return bcm_esw_port_tgid_get(unit, port, tgid, psc); 44285 } 44286 #endif 44287 44288 #ifdef BCM_TOMAHAWK3_SUPPORT 44289 int 44290 bcm_tomahawk3_port_tgid_set( 44291 int unit, 44292 bcm_port_t port, 44293 int tgid, 44294 int psc) 44295 { 44296 return bcm_esw_port_tgid_set(unit, port, tgid, psc); 44297 } 44298 #endif 44299 44300 int 44301 bcm_tomahawk3_port_timestamp_adjust_get( 44302 int unit, 44303 bcm_port_t port, 44304 bcm_port_timestamp_adjust_t *ts_adjust) 44305 { 44306 return BCM_E_UNAVAIL; 44307 } 44308 44309 int 44310 bcm_tomahawk3_port_timestamp_adjust_set( 44311 int unit, 44312 bcm_port_t port, 44313 bcm_port_timestamp_adjust_t *ts_adjust) 44314 { 44315 return BCM_E_UNAVAIL; 44316 } 44317 44318 #ifdef BCM_TOMAHAWK3_SUPPORT 44319 int 44320 bcm_tomahawk3_port_timesync_config_get( 44321 int unit, 44322 bcm_port_t port, 44323 int array_size, 44324 bcm_port_timesync_config_t *config_array, 44325 int *array_count) 44326 { 44327 return bcm_esw_port_timesync_config_get(unit, port, array_size, config_array, array_count); 44328 } 44329 #endif 44330 44331 #ifdef BCM_TOMAHAWK3_SUPPORT 44332 int 44333 bcm_tomahawk3_port_timesync_config_set( 44334 int unit, 44335 bcm_port_t port, 44336 int config_count, 44337 bcm_port_timesync_config_t *config_array) 44338 { 44339 return bcm_esw_port_timesync_config_set(unit, port, config_count, config_array); 44340 } 44341 #endif 44342 44343 #ifdef BCM_TOMAHAWK3_SUPPORT 44344 int 44345 bcm_tomahawk3_port_timesync_tx_info_get( 44346 int unit, 44347 bcm_port_t port, 44348 bcm_port_timesync_tx_info_t *tx_info) 44349 { 44350 return bcm_esw_port_timesync_tx_info_get(unit, port, tx_info); 44351 } 44352 #endif 44353 44354 #ifdef BCM_TOMAHAWK3_SUPPORT 44355 int 44356 bcm_tomahawk3_port_tpid_add( 44357 int unit, 44358 bcm_port_t port, 44359 uint16 tpid, 44360 int color_select) 44361 { 44362 return bcm_esw_port_tpid_add(unit, port, tpid, color_select); 44363 } 44364 #endif 44365 44366 #ifdef BCM_TOMAHAWK3_SUPPORT 44367 int 44368 bcm_tomahawk3_port_tpid_class_create( 44369 int unit, 44370 uint32 flags, 44371 bcm_port_tag_struct_type_t tag_struct_type, 44372 bcm_port_tag_format_class_t *tag_format_class_id) 44373 { 44374 return bcm_esw_port_tpid_class_create(unit, flags, tag_struct_type, tag_format_class_id); 44375 } 44376 #endif 44377 44378 #ifdef BCM_TOMAHAWK3_SUPPORT 44379 int 44380 bcm_tomahawk3_port_tpid_class_destroy( 44381 int unit, 44382 uint32 flags, 44383 bcm_port_tag_format_class_t tag_format_class_id) 44384 { 44385 return bcm_esw_port_tpid_class_destroy(unit, flags, tag_format_class_id); 44386 } 44387 #endif 44388 44389 #ifdef BCM_TOMAHAWK3_SUPPORT 44390 int 44391 bcm_tomahawk3_port_tpid_class_get( 44392 int unit, 44393 bcm_port_tpid_class_t *tpid_class) 44394 { 44395 return bcm_esw_port_tpid_class_get(unit, tpid_class); 44396 } 44397 #endif 44398 44399 #ifdef BCM_TOMAHAWK3_SUPPORT 44400 int 44401 bcm_tomahawk3_port_tpid_class_set( 44402 int unit, 44403 bcm_port_tpid_class_t *tpid_class) 44404 { 44405 return bcm_esw_port_tpid_class_set(unit, tpid_class); 44406 } 44407 #endif 44408 44409 #ifdef BCM_TOMAHAWK3_SUPPORT 44410 int 44411 bcm_tomahawk3_port_tpid_delete( 44412 int unit, 44413 bcm_port_t port, 44414 uint16 tpid) 44415 { 44416 return bcm_esw_port_tpid_delete(unit, port, tpid); 44417 } 44418 #endif 44419 44420 #ifdef BCM_TOMAHAWK3_SUPPORT 44421 int 44422 bcm_tomahawk3_port_tpid_delete_all( 44423 int unit, 44424 bcm_port_t port) 44425 { 44426 return bcm_esw_port_tpid_delete_all(unit, port); 44427 } 44428 #endif 44429 44430 #ifdef BCM_TOMAHAWK3_SUPPORT 44431 int 44432 bcm_tomahawk3_port_tpid_get( 44433 int unit, 44434 bcm_port_t port, 44435 uint16 *tpid) 44436 { 44437 return bcm_esw_port_tpid_get(unit, port, tpid); 44438 } 44439 #endif 44440 44441 #ifdef BCM_TOMAHAWK3_SUPPORT 44442 int 44443 bcm_tomahawk3_port_tpid_get_all( 44444 int unit, 44445 bcm_port_t port, 44446 int size, 44447 uint16 *tpid_array, 44448 int *color_array, 44449 int *count) 44450 { 44451 return bcm_esw_port_tpid_get_all(unit, port, size, tpid_array, color_array, count); 44452 } 44453 #endif 44454 44455 #ifdef BCM_TOMAHAWK3_SUPPORT 44456 int 44457 bcm_tomahawk3_port_tpid_set( 44458 int unit, 44459 bcm_port_t port, 44460 uint16 tpid) 44461 { 44462 return bcm_esw_port_tpid_set(unit, port, tpid); 44463 } 44464 #endif 44465 44466 #ifdef BCM_TOMAHAWK3_SUPPORT 44467 int 44468 bcm_tomahawk3_port_trunk_index_get( 44469 int unit, 44470 bcm_port_t port, 44471 int *port_index) 44472 { 44473 return bcm_esw_port_trunk_index_get(unit, port, port_index); 44474 } 44475 #endif 44476 44477 #ifdef BCM_TOMAHAWK3_SUPPORT 44478 int 44479 bcm_tomahawk3_port_trunk_index_set( 44480 int unit, 44481 bcm_port_t port, 44482 int port_index) 44483 { 44484 return bcm_esw_port_trunk_index_set(unit, port, port_index); 44485 } 44486 #endif 44487 44488 #ifdef BCM_TOMAHAWK3_SUPPORT 44489 int 44490 bcm_tomahawk3_port_untagged_priority_get( 44491 int unit, 44492 bcm_port_t port, 44493 int *priority) 44494 { 44495 return bcm_esw_port_untagged_priority_get(unit, port, priority); 44496 } 44497 #endif 44498 44499 #ifdef BCM_TOMAHAWK3_SUPPORT 44500 int 44501 bcm_tomahawk3_port_untagged_priority_set( 44502 int unit, 44503 bcm_port_t port, 44504 int priority) 44505 { 44506 return bcm_esw_port_untagged_priority_set(unit, port, priority); 44507 } 44508 #endif 44509 44510 #ifdef BCM_TOMAHAWK3_SUPPORT 44511 int 44512 bcm_tomahawk3_port_untagged_vlan_get( 44513 int unit, 44514 bcm_port_t port, 44515 bcm_vlan_t *vid_ptr) 44516 { 44517 return bcm_esw_port_untagged_vlan_get(unit, port, vid_ptr); 44518 } 44519 #endif 44520 44521 #ifdef BCM_TOMAHAWK3_SUPPORT 44522 int 44523 bcm_tomahawk3_port_untagged_vlan_set( 44524 int unit, 44525 bcm_port_t port, 44526 bcm_vlan_t vid) 44527 { 44528 return bcm_esw_port_untagged_vlan_set(unit, port, vid); 44529 } 44530 #endif 44531 44532 #ifdef BCM_TOMAHAWK3_SUPPORT 44533 int 44534 bcm_tomahawk3_port_update( 44535 int unit, 44536 bcm_port_t port, 44537 int link) 44538 { 44539 return bcm_esw_port_update(unit, port, link); 44540 } 44541 #endif 44542 44543 int 44544 bcm_tomahawk3_port_vlan_dscp_map_get( 44545 int unit, 44546 bcm_port_t port, 44547 bcm_vlan_t vlan, 44548 int dscp, 44549 int *internal_pri, 44550 bcm_color_t *color) 44551 { 44552 return BCM_E_UNAVAIL; 44553 } 44554 44555 int 44556 bcm_tomahawk3_port_vlan_dscp_map_set( 44557 int unit, 44558 bcm_port_t port, 44559 bcm_vlan_t vlan, 44560 int dscp, 44561 int internal_pri, 44562 bcm_color_t color) 44563 { 44564 return BCM_E_UNAVAIL; 44565 } 44566 44567 int 44568 bcm_tomahawk3_port_vlan_inner_tag_get( 44569 int unit, 44570 bcm_port_t port, 44571 uint16 *inner_tag) 44572 { 44573 return BCM_E_UNAVAIL; 44574 } 44575 44576 int 44577 bcm_tomahawk3_port_vlan_inner_tag_set( 44578 int unit, 44579 bcm_port_t port, 44580 uint16 inner_tag) 44581 { 44582 return BCM_E_UNAVAIL; 44583 } 44584 44585 #ifdef BCM_TOMAHAWK3_SUPPORT 44586 int 44587 bcm_tomahawk3_port_vlan_member_get( 44588 int unit, 44589 bcm_port_t port, 44590 uint32 *flags) 44591 { 44592 return bcm_esw_port_vlan_member_get(unit, port, flags); 44593 } 44594 #endif 44595 44596 #ifdef BCM_TOMAHAWK3_SUPPORT 44597 int 44598 bcm_tomahawk3_port_vlan_member_set( 44599 int unit, 44600 bcm_port_t port, 44601 uint32 flags) 44602 { 44603 return bcm_esw_port_vlan_member_set(unit, port, flags); 44604 } 44605 #endif 44606 44607 int 44608 bcm_tomahawk3_port_vlan_pri_map_get( 44609 int unit, 44610 bcm_port_t port, 44611 bcm_vlan_t vlan, 44612 int pkt_pri, 44613 int cfi, 44614 int *internal_pri, 44615 bcm_color_t *color) 44616 { 44617 return BCM_E_UNAVAIL; 44618 } 44619 44620 int 44621 bcm_tomahawk3_port_vlan_pri_map_set( 44622 int unit, 44623 bcm_port_t port, 44624 bcm_vlan_t vlan, 44625 int pkt_pri, 44626 int cfi, 44627 int internal_pri, 44628 bcm_color_t color) 44629 { 44630 return BCM_E_UNAVAIL; 44631 } 44632 44633 #ifdef BCM_TOMAHAWK3_SUPPORT 44634 int 44635 bcm_tomahawk3_port_vlan_priority_map_get( 44636 int unit, 44637 bcm_port_t port, 44638 int pkt_pri, 44639 int cfi, 44640 int *internal_pri, 44641 bcm_color_t *color) 44642 { 44643 return bcm_esw_port_vlan_priority_map_get(unit, port, pkt_pri, cfi, internal_pri, color); 44644 } 44645 #endif 44646 44647 #ifdef BCM_TOMAHAWK3_SUPPORT 44648 int 44649 bcm_tomahawk3_port_vlan_priority_map_set( 44650 int unit, 44651 bcm_port_t port, 44652 int pkt_pri, 44653 int cfi, 44654 int internal_pri, 44655 bcm_color_t color) 44656 { 44657 return bcm_esw_port_vlan_priority_map_set(unit, port, pkt_pri, cfi, internal_pri, color); 44658 } 44659 #endif 44660 44661 int 44662 bcm_tomahawk3_port_vlan_priority_mapping_get( 44663 int unit, 44664 bcm_port_t port, 44665 bcm_vlan_t vid, 44666 int pkt_pri, 44667 int cfi, 44668 bcm_priority_mapping_t *pri_map) 44669 { 44670 return BCM_E_UNAVAIL; 44671 } 44672 44673 int 44674 bcm_tomahawk3_port_vlan_priority_mapping_set( 44675 int unit, 44676 bcm_port_t port, 44677 bcm_vlan_t vid, 44678 int pkt_pri, 44679 int cfi, 44680 bcm_priority_mapping_t *pri_map) 44681 { 44682 return BCM_E_UNAVAIL; 44683 } 44684 44685 #ifdef BCM_TOMAHAWK3_SUPPORT 44686 int 44687 bcm_tomahawk3_port_vlan_priority_unmap_get( 44688 int unit, 44689 bcm_port_t port, 44690 int internal_pri, 44691 bcm_color_t color, 44692 int *pkt_pri, 44693 int *cfi) 44694 { 44695 return bcm_esw_port_vlan_priority_unmap_get(unit, port, internal_pri, color, pkt_pri, cfi); 44696 } 44697 #endif 44698 44699 #ifdef BCM_TOMAHAWK3_SUPPORT 44700 int 44701 bcm_tomahawk3_port_vlan_priority_unmap_set( 44702 int unit, 44703 bcm_port_t port, 44704 int internal_pri, 44705 bcm_color_t color, 44706 int pkt_pri, 44707 int cfi) 44708 { 44709 return bcm_esw_port_vlan_priority_unmap_set(unit, port, internal_pri, color, pkt_pri, cfi); 44710 } 44711 #endif 44712 44713 int 44714 bcm_tomahawk3_port_vlan_vector_get( 44715 int unit, 44716 bcm_gport_t port_id, 44717 bcm_vlan_vector_t vlan_vec) 44718 { 44719 return BCM_E_UNAVAIL; 44720 } 44721 44722 int 44723 bcm_tomahawk3_port_vlan_vector_set( 44724 int unit, 44725 bcm_gport_t port_id, 44726 bcm_vlan_vector_t vlan_vec) 44727 { 44728 return BCM_E_UNAVAIL; 44729 } 44730 44731 int 44732 bcm_tomahawk3_port_wide_data_get( 44733 int unit, 44734 bcm_gport_t gport, 44735 uint32 flags, 44736 uint64 *data) 44737 { 44738 return BCM_E_UNAVAIL; 44739 } 44740 44741 int 44742 bcm_tomahawk3_port_wide_data_set( 44743 int unit, 44744 bcm_gport_t gport, 44745 uint32 flags, 44746 uint64 data) 44747 { 44748 return BCM_E_UNAVAIL; 44749 } 44750 44751 #if defined(INCLUDE_L3) 44752 int 44753 bcm_tomahawk3_proxy_cleanup( 44754 int unit) 44755 { 44756 return BCM_E_UNAVAIL; 44757 } 44758 #endif 44759 44760 #if defined(INCLUDE_L3) 44761 int 44762 bcm_tomahawk3_proxy_client_set( 44763 int unit, 44764 bcm_port_t client_port, 44765 bcm_proxy_proto_type_t proto_type, 44766 bcm_module_t server_modid, 44767 bcm_port_t server_port, 44768 int enable) 44769 { 44770 return BCM_E_UNAVAIL; 44771 } 44772 #endif 44773 44774 #if defined(INCLUDE_L3) 44775 int 44776 bcm_tomahawk3_proxy_egress_create( 44777 int unit, 44778 uint32 flags, 44779 bcm_proxy_egress_t *proxy_egress, 44780 bcm_if_t *proxy_if_id) 44781 { 44782 return BCM_E_UNAVAIL; 44783 } 44784 #endif 44785 44786 #if defined(INCLUDE_L3) 44787 int 44788 bcm_tomahawk3_proxy_egress_destroy( 44789 int unit, 44790 bcm_if_t proxy_if_id) 44791 { 44792 return BCM_E_UNAVAIL; 44793 } 44794 #endif 44795 44796 #if defined(INCLUDE_L3) 44797 int 44798 bcm_tomahawk3_proxy_egress_get( 44799 int unit, 44800 bcm_if_t proxy_if_id, 44801 bcm_proxy_egress_t *proxy_egress) 44802 { 44803 return BCM_E_UNAVAIL; 44804 } 44805 #endif 44806 44807 #if defined(INCLUDE_L3) 44808 int 44809 bcm_tomahawk3_proxy_egress_traverse( 44810 int unit, 44811 bcm_proxy_egress_traverse_cb trav_fn, 44812 void *user_data) 44813 { 44814 return BCM_E_UNAVAIL; 44815 } 44816 #endif 44817 44818 #if defined(INCLUDE_L3) 44819 int 44820 bcm_tomahawk3_proxy_init( 44821 int unit) 44822 { 44823 return BCM_E_UNAVAIL; 44824 } 44825 #endif 44826 44827 #if defined(INCLUDE_L3) 44828 int 44829 bcm_tomahawk3_proxy_server_get( 44830 int unit, 44831 bcm_port_t server_port, 44832 bcm_proxy_mode_t mode, 44833 int *enable) 44834 { 44835 return BCM_E_UNAVAIL; 44836 } 44837 #endif 44838 44839 #if defined(INCLUDE_L3) 44840 int 44841 bcm_tomahawk3_proxy_server_port_get( 44842 int unit, 44843 bcm_gport_t local_ingress_port, 44844 bcm_proxy_server_t *proxy_server, 44845 int *enable) 44846 { 44847 return BCM_E_UNAVAIL; 44848 } 44849 #endif 44850 44851 #if defined(INCLUDE_L3) 44852 int 44853 bcm_tomahawk3_proxy_server_port_set( 44854 int unit, 44855 bcm_gport_t local_ingress_port, 44856 bcm_proxy_server_t *proxy_server, 44857 int enable) 44858 { 44859 return BCM_E_UNAVAIL; 44860 } 44861 #endif 44862 44863 #if defined(INCLUDE_L3) 44864 int 44865 bcm_tomahawk3_proxy_server_set( 44866 int unit, 44867 bcm_port_t server_port, 44868 bcm_proxy_mode_t mode, 44869 int enable) 44870 { 44871 return BCM_E_UNAVAIL; 44872 } 44873 #endif 44874 44875 #if defined(INCLUDE_PSTATS) 44876 #ifdef BCM_TOMAHAWK3_SUPPORT 44877 int 44878 bcm_tomahawk3_pstats_data_sync( 44879 int unit) 44880 { 44881 return bcm_esw_pstats_data_sync(unit); 44882 } 44883 #endif 44884 #endif 44885 44886 #if defined(INCLUDE_PSTATS) 44887 #ifdef BCM_TOMAHAWK3_SUPPORT 44888 int 44889 bcm_tomahawk3_pstats_session_create( 44890 int unit, 44891 int options, 44892 int array_count, 44893 bcm_pstats_session_element_t *element_array, 44894 bcm_pstats_session_id_t *session_id) 44895 { 44896 return bcm_esw_pstats_session_create(unit, options, array_count, element_array, session_id); 44897 } 44898 #endif 44899 #endif 44900 44901 #if defined(INCLUDE_PSTATS) 44902 #ifdef BCM_TOMAHAWK3_SUPPORT 44903 int 44904 bcm_tomahawk3_pstats_session_data_clear( 44905 int unit, 44906 bcm_pstats_session_id_t session_id) 44907 { 44908 return bcm_esw_pstats_session_data_clear(unit, session_id); 44909 } 44910 #endif 44911 #endif 44912 44913 #if defined(INCLUDE_PSTATS) 44914 #ifdef BCM_TOMAHAWK3_SUPPORT 44915 int 44916 bcm_tomahawk3_pstats_session_data_get( 44917 int unit, 44918 bcm_pstats_session_id_t session_id, 44919 bcm_pstats_timestamp_t *timestamp, 44920 int array_max, 44921 bcm_pstats_data_t *data_array, 44922 int *array_count) 44923 { 44924 return bcm_esw_pstats_session_data_get(unit, session_id, timestamp, array_max, data_array, array_count); 44925 } 44926 #endif 44927 #endif 44928 44929 #if defined(INCLUDE_PSTATS) 44930 #ifdef BCM_TOMAHAWK3_SUPPORT 44931 int 44932 bcm_tomahawk3_pstats_session_data_sync_get( 44933 int unit, 44934 bcm_pstats_session_id_t session_id, 44935 bcm_pstats_timestamp_t *timestamp, 44936 int array_max, 44937 bcm_pstats_data_t *data_array, 44938 int *array_count) 44939 { 44940 return bcm_esw_pstats_session_data_sync_get(unit, session_id, timestamp, array_max, data_array, array_count); 44941 } 44942 #endif 44943 #endif 44944 44945 #if defined(INCLUDE_PSTATS) 44946 #ifdef BCM_TOMAHAWK3_SUPPORT 44947 int 44948 bcm_tomahawk3_pstats_session_destroy( 44949 int unit, 44950 bcm_pstats_session_id_t session_id) 44951 { 44952 return bcm_esw_pstats_session_destroy(unit, session_id); 44953 } 44954 #endif 44955 #endif 44956 44957 #if defined(INCLUDE_PSTATS) 44958 #ifdef BCM_TOMAHAWK3_SUPPORT 44959 int 44960 bcm_tomahawk3_pstats_session_get( 44961 int unit, 44962 bcm_pstats_session_id_t session_id, 44963 int array_max, 44964 bcm_pstats_session_element_t *element_array, 44965 int *array_count) 44966 { 44967 return bcm_esw_pstats_session_get(unit, session_id, array_max, element_array, array_count); 44968 } 44969 #endif 44970 #endif 44971 44972 #if defined(INCLUDE_PSTATS) 44973 #ifdef BCM_TOMAHAWK3_SUPPORT 44974 int 44975 bcm_tomahawk3_pstats_session_traverse( 44976 int unit, 44977 bcm_pstats_session_traverse_cb cb, 44978 void *user_data) 44979 { 44980 return bcm_esw_pstats_session_traverse(unit, cb, user_data); 44981 } 44982 #endif 44983 #endif 44984 44985 #if defined(INCLUDE_PTP) 44986 #ifdef BCM_TOMAHAWK3_SUPPORT 44987 int 44988 bcm_tomahawk3_ptp_acceptable_master_add( 44989 int unit, 44990 bcm_ptp_stack_id_t ptp_id, 44991 int clock_num, 44992 int port_num, 44993 int priority1_alt_value, 44994 bcm_ptp_clock_peer_address_t *master_info) 44995 { 44996 return bcm_esw_ptp_acceptable_master_add(unit, ptp_id, clock_num, port_num, priority1_alt_value, master_info); 44997 } 44998 #endif 44999 #endif 45000 45001 #if defined(INCLUDE_PTP) 45002 #ifdef BCM_TOMAHAWK3_SUPPORT 45003 int 45004 bcm_tomahawk3_ptp_acceptable_master_enabled_get( 45005 int unit, 45006 bcm_ptp_stack_id_t ptp_id, 45007 int clock_num, 45008 int port_num, 45009 uint8 *enabled) 45010 { 45011 return bcm_esw_ptp_acceptable_master_enabled_get(unit, ptp_id, clock_num, port_num, enabled); 45012 } 45013 #endif 45014 #endif 45015 45016 #if defined(INCLUDE_PTP) 45017 #ifdef BCM_TOMAHAWK3_SUPPORT 45018 int 45019 bcm_tomahawk3_ptp_acceptable_master_enabled_set( 45020 int unit, 45021 bcm_ptp_stack_id_t ptp_id, 45022 int clock_num, 45023 int port_num, 45024 uint8 enabled) 45025 { 45026 return bcm_esw_ptp_acceptable_master_enabled_set(unit, ptp_id, clock_num, port_num, enabled); 45027 } 45028 #endif 45029 #endif 45030 45031 #if defined(INCLUDE_PTP) 45032 #ifdef BCM_TOMAHAWK3_SUPPORT 45033 int 45034 bcm_tomahawk3_ptp_acceptable_master_list( 45035 int unit, 45036 bcm_ptp_stack_id_t ptp_id, 45037 int clock_num, 45038 int port_num, 45039 int max_num_masters, 45040 int *num_masters, 45041 bcm_ptp_clock_peer_address_t *master_addr) 45042 { 45043 return bcm_esw_ptp_acceptable_master_list(unit, ptp_id, clock_num, port_num, max_num_masters, num_masters, master_addr); 45044 } 45045 #endif 45046 #endif 45047 45048 #if defined(INCLUDE_PTP) 45049 #ifdef BCM_TOMAHAWK3_SUPPORT 45050 int 45051 bcm_tomahawk3_ptp_acceptable_master_remove( 45052 int unit, 45053 bcm_ptp_stack_id_t ptp_id, 45054 int clock_num, 45055 int port_num, 45056 bcm_ptp_clock_peer_address_t *master_info) 45057 { 45058 return bcm_esw_ptp_acceptable_master_remove(unit, ptp_id, clock_num, port_num, master_info); 45059 } 45060 #endif 45061 #endif 45062 45063 #if defined(INCLUDE_PTP) 45064 #ifdef BCM_TOMAHAWK3_SUPPORT 45065 int 45066 bcm_tomahawk3_ptp_acceptable_master_table_clear( 45067 int unit, 45068 bcm_ptp_stack_id_t ptp_id, 45069 int clock_num, 45070 int port_num) 45071 { 45072 return bcm_esw_ptp_acceptable_master_table_clear(unit, ptp_id, clock_num, port_num); 45073 } 45074 #endif 45075 #endif 45076 45077 #if defined(INCLUDE_PTP) 45078 #ifdef BCM_TOMAHAWK3_SUPPORT 45079 int 45080 bcm_tomahawk3_ptp_acceptable_master_table_size_get( 45081 int unit, 45082 bcm_ptp_stack_id_t ptp_id, 45083 int clock_num, 45084 int port_num, 45085 int *max_table_entries) 45086 { 45087 return bcm_esw_ptp_acceptable_master_table_size_get(unit, ptp_id, clock_num, port_num, max_table_entries); 45088 } 45089 #endif 45090 #endif 45091 45092 #if defined(INCLUDE_PTP) 45093 #ifdef BCM_TOMAHAWK3_SUPPORT 45094 int 45095 bcm_tomahawk3_ptp_bs_time_info_get( 45096 int unit, 45097 bcm_ptp_stack_id_t ptp_id, 45098 int clock_num, 45099 bcm_ptp_bs_time_info_t *time) 45100 { 45101 return bcm_esw_ptp_bs_time_info_get(unit, ptp_id, clock_num, time); 45102 } 45103 #endif 45104 #endif 45105 45106 #if defined(INCLUDE_PTP) 45107 #ifdef BCM_TOMAHAWK3_SUPPORT 45108 int 45109 bcm_tomahawk3_ptp_cb_register( 45110 int unit, 45111 bcm_ptp_cb_types_t cb_types, 45112 bcm_ptp_cb cb, 45113 void *user_data) 45114 { 45115 return bcm_esw_ptp_cb_register(unit, cb_types, cb, user_data); 45116 } 45117 #endif 45118 #endif 45119 45120 #if defined(INCLUDE_PTP) 45121 #ifdef BCM_TOMAHAWK3_SUPPORT 45122 int 45123 bcm_tomahawk3_ptp_cb_unregister( 45124 int unit, 45125 bcm_ptp_cb_types_t cb_types, 45126 bcm_ptp_cb cb) 45127 { 45128 return bcm_esw_ptp_cb_unregister(unit, cb_types, cb); 45129 } 45130 #endif 45131 #endif 45132 45133 #if defined(INCLUDE_PTP) 45134 #ifdef BCM_TOMAHAWK3_SUPPORT 45135 int 45136 bcm_tomahawk3_ptp_clock_accuracy_get( 45137 int unit, 45138 bcm_ptp_stack_id_t ptp_id, 45139 int clock_num, 45140 bcm_ptp_clock_accuracy_t *accuracy) 45141 { 45142 return bcm_esw_ptp_clock_accuracy_get(unit, ptp_id, clock_num, accuracy); 45143 } 45144 #endif 45145 #endif 45146 45147 #if defined(INCLUDE_PTP) 45148 #ifdef BCM_TOMAHAWK3_SUPPORT 45149 int 45150 bcm_tomahawk3_ptp_clock_accuracy_set( 45151 int unit, 45152 bcm_ptp_stack_id_t ptp_id, 45153 int clock_num, 45154 bcm_ptp_clock_accuracy_t *accuracy) 45155 { 45156 return bcm_esw_ptp_clock_accuracy_set(unit, ptp_id, clock_num, accuracy); 45157 } 45158 #endif 45159 #endif 45160 45161 #if defined(INCLUDE_PTP) 45162 #ifdef BCM_TOMAHAWK3_SUPPORT 45163 int 45164 bcm_tomahawk3_ptp_clock_apts_enable_get( 45165 int unit, 45166 bcm_ptp_stack_id_t ptp_id, 45167 int clock_num, 45168 int *enable) 45169 { 45170 return bcm_esw_ptp_clock_apts_enable_get(unit, ptp_id, clock_num, enable); 45171 } 45172 #endif 45173 #endif 45174 45175 #if defined(INCLUDE_PTP) 45176 #ifdef BCM_TOMAHAWK3_SUPPORT 45177 int 45178 bcm_tomahawk3_ptp_clock_apts_enable_set( 45179 int unit, 45180 bcm_ptp_stack_id_t ptp_id, 45181 int clock_num, 45182 int enable) 45183 { 45184 return bcm_esw_ptp_clock_apts_enable_set(unit, ptp_id, clock_num, enable); 45185 } 45186 #endif 45187 #endif 45188 45189 #if defined(INCLUDE_PTP) 45190 #ifdef BCM_TOMAHAWK3_SUPPORT 45191 int 45192 bcm_tomahawk3_ptp_clock_apts_mode_get( 45193 int unit, 45194 bcm_ptp_stack_id_t ptp_id, 45195 int clock_num, 45196 bcm_ptp_clock_apts_mode_t *current_mode) 45197 { 45198 return bcm_esw_ptp_clock_apts_mode_get(unit, ptp_id, clock_num, current_mode); 45199 } 45200 #endif 45201 #endif 45202 45203 #if defined(INCLUDE_PTP) 45204 #ifdef BCM_TOMAHAWK3_SUPPORT 45205 int 45206 bcm_tomahawk3_ptp_clock_apts_source_enable_get( 45207 int unit, 45208 bcm_ptp_stack_id_t ptp_id, 45209 int clock_num, 45210 bcm_ptp_clock_apts_source_t source, 45211 int *enable) 45212 { 45213 return bcm_esw_ptp_clock_apts_source_enable_get(unit, ptp_id, clock_num, source, enable); 45214 } 45215 #endif 45216 #endif 45217 45218 #if defined(INCLUDE_PTP) 45219 #ifdef BCM_TOMAHAWK3_SUPPORT 45220 int 45221 bcm_tomahawk3_ptp_clock_apts_source_enable_set( 45222 int unit, 45223 bcm_ptp_stack_id_t ptp_id, 45224 int clock_num, 45225 bcm_ptp_clock_apts_source_t source, 45226 int enable) 45227 { 45228 return bcm_esw_ptp_clock_apts_source_enable_set(unit, ptp_id, clock_num, source, enable); 45229 } 45230 #endif 45231 #endif 45232 45233 #if defined(INCLUDE_PTP) 45234 #ifdef BCM_TOMAHAWK3_SUPPORT 45235 int 45236 bcm_tomahawk3_ptp_clock_apts_source_prio_get( 45237 int unit, 45238 bcm_ptp_stack_id_t ptp_id, 45239 int clock_num, 45240 int *num_sources, 45241 bcm_ptp_clock_apts_source_t *priority_list) 45242 { 45243 return bcm_esw_ptp_clock_apts_source_prio_get(unit, ptp_id, clock_num, num_sources, priority_list); 45244 } 45245 #endif 45246 #endif 45247 45248 #if defined(INCLUDE_PTP) 45249 #ifdef BCM_TOMAHAWK3_SUPPORT 45250 int 45251 bcm_tomahawk3_ptp_clock_apts_source_prio_set( 45252 int unit, 45253 bcm_ptp_stack_id_t ptp_id, 45254 int clock_num, 45255 int num_sources, 45256 bcm_ptp_clock_apts_source_t *priority_list) 45257 { 45258 return bcm_esw_ptp_clock_apts_source_prio_set(unit, ptp_id, clock_num, num_sources, priority_list); 45259 } 45260 #endif 45261 #endif 45262 45263 #if defined(INCLUDE_PTP) 45264 #ifdef BCM_TOMAHAWK3_SUPPORT 45265 int 45266 bcm_tomahawk3_ptp_clock_bmca_override_get( 45267 int unit, 45268 bcm_ptp_stack_id_t ptp_id, 45269 int clock_num, 45270 uint32 *flags, 45271 uint32 *enable_mask) 45272 { 45273 return bcm_esw_ptp_clock_bmca_override_get(unit, ptp_id, clock_num, flags, enable_mask); 45274 } 45275 #endif 45276 #endif 45277 45278 #if defined(INCLUDE_PTP) 45279 #ifdef BCM_TOMAHAWK3_SUPPORT 45280 int 45281 bcm_tomahawk3_ptp_clock_bmca_override_set( 45282 int unit, 45283 bcm_ptp_stack_id_t ptp_id, 45284 int clock_num, 45285 uint32 flags, 45286 uint32 enable_mask) 45287 { 45288 return bcm_esw_ptp_clock_bmca_override_set(unit, ptp_id, clock_num, flags, enable_mask); 45289 } 45290 #endif 45291 #endif 45292 45293 #if defined(INCLUDE_PTP) 45294 #ifdef BCM_TOMAHAWK3_SUPPORT 45295 int 45296 bcm_tomahawk3_ptp_clock_create( 45297 int unit, 45298 bcm_ptp_stack_id_t ptp_id, 45299 bcm_ptp_clock_info_t *clock_info) 45300 { 45301 return bcm_esw_ptp_clock_create(unit, ptp_id, clock_info); 45302 } 45303 #endif 45304 #endif 45305 45306 #if defined(INCLUDE_PTP) 45307 #ifdef BCM_TOMAHAWK3_SUPPORT 45308 int 45309 bcm_tomahawk3_ptp_clock_current_dataset_get( 45310 int unit, 45311 bcm_ptp_stack_id_t ptp_id, 45312 int clock_num, 45313 bcm_ptp_current_dataset_t *dataset) 45314 { 45315 return bcm_esw_ptp_clock_current_dataset_get(unit, ptp_id, clock_num, dataset); 45316 } 45317 #endif 45318 #endif 45319 45320 #if defined(INCLUDE_PTP) 45321 #ifdef BCM_TOMAHAWK3_SUPPORT 45322 int 45323 bcm_tomahawk3_ptp_clock_default_dataset_get( 45324 int unit, 45325 bcm_ptp_stack_id_t ptp_id, 45326 int clock_num, 45327 bcm_ptp_default_dataset_t *dataset) 45328 { 45329 return bcm_esw_ptp_clock_default_dataset_get(unit, ptp_id, clock_num, dataset); 45330 } 45331 #endif 45332 #endif 45333 45334 #if defined(INCLUDE_PTP) 45335 #ifdef BCM_TOMAHAWK3_SUPPORT 45336 int 45337 bcm_tomahawk3_ptp_clock_domain_get( 45338 int unit, 45339 bcm_ptp_stack_id_t ptp_id, 45340 int clock_num, 45341 uint32 *domain) 45342 { 45343 return bcm_esw_ptp_clock_domain_get(unit, ptp_id, clock_num, domain); 45344 } 45345 #endif 45346 #endif 45347 45348 #if defined(INCLUDE_PTP) 45349 #ifdef BCM_TOMAHAWK3_SUPPORT 45350 int 45351 bcm_tomahawk3_ptp_clock_domain_set( 45352 int unit, 45353 bcm_ptp_stack_id_t ptp_id, 45354 int clock_num, 45355 uint32 domain) 45356 { 45357 return bcm_esw_ptp_clock_domain_set(unit, ptp_id, clock_num, domain); 45358 } 45359 #endif 45360 #endif 45361 45362 #if defined(INCLUDE_PTP) 45363 #ifdef BCM_TOMAHAWK3_SUPPORT 45364 int 45365 bcm_tomahawk3_ptp_clock_get( 45366 int unit, 45367 bcm_ptp_stack_id_t ptp_id, 45368 int clock_num, 45369 bcm_ptp_clock_info_t *clock_info) 45370 { 45371 return bcm_esw_ptp_clock_get(unit, ptp_id, clock_num, clock_info); 45372 } 45373 #endif 45374 #endif 45375 45376 #if defined(INCLUDE_PTP) 45377 #ifdef BCM_TOMAHAWK3_SUPPORT 45378 int 45379 bcm_tomahawk3_ptp_clock_local_priority_get( 45380 int unit, 45381 bcm_ptp_stack_id_t ptp_id, 45382 int clock_num, 45383 uint8 *local_priority) 45384 { 45385 return bcm_esw_ptp_clock_local_priority_get(unit, ptp_id, clock_num, local_priority); 45386 } 45387 #endif 45388 #endif 45389 45390 #if defined(INCLUDE_PTP) 45391 #ifdef BCM_TOMAHAWK3_SUPPORT 45392 int 45393 bcm_tomahawk3_ptp_clock_local_priority_set( 45394 int unit, 45395 bcm_ptp_stack_id_t ptp_id, 45396 int clock_num, 45397 uint8 local_priority) 45398 { 45399 return bcm_esw_ptp_clock_local_priority_set(unit, ptp_id, clock_num, local_priority); 45400 } 45401 #endif 45402 #endif 45403 45404 #if defined(INCLUDE_PTP) 45405 #ifdef BCM_TOMAHAWK3_SUPPORT 45406 int 45407 bcm_tomahawk3_ptp_clock_max_steps_removed_get( 45408 int unit, 45409 bcm_ptp_stack_id_t ptp_id, 45410 int clock_num, 45411 uint8 *max_steps_removed) 45412 { 45413 return bcm_esw_ptp_clock_max_steps_removed_get(unit, ptp_id, clock_num, max_steps_removed); 45414 } 45415 #endif 45416 #endif 45417 45418 #if defined(INCLUDE_PTP) 45419 #ifdef BCM_TOMAHAWK3_SUPPORT 45420 int 45421 bcm_tomahawk3_ptp_clock_max_steps_removed_set( 45422 int unit, 45423 bcm_ptp_stack_id_t ptp_id, 45424 int clock_num, 45425 uint8 max_steps_removed) 45426 { 45427 return bcm_esw_ptp_clock_max_steps_removed_set(unit, ptp_id, clock_num, max_steps_removed); 45428 } 45429 #endif 45430 #endif 45431 45432 #if defined(INCLUDE_PTP) 45433 #ifdef BCM_TOMAHAWK3_SUPPORT 45434 int 45435 bcm_tomahawk3_ptp_clock_parent_dataset_get( 45436 int unit, 45437 bcm_ptp_stack_id_t ptp_id, 45438 int clock_num, 45439 bcm_ptp_parent_dataset_t *dataset) 45440 { 45441 return bcm_esw_ptp_clock_parent_dataset_get(unit, ptp_id, clock_num, dataset); 45442 } 45443 #endif 45444 #endif 45445 45446 #if defined(INCLUDE_PTP) 45447 #ifdef BCM_TOMAHAWK3_SUPPORT 45448 int 45449 bcm_tomahawk3_ptp_clock_peer_age_timer_get( 45450 int unit, 45451 bcm_ptp_stack_id_t ptp_id, 45452 int clock_num, 45453 uint8 *aging_time) 45454 { 45455 return bcm_esw_ptp_clock_peer_age_timer_get(unit, ptp_id, clock_num, aging_time); 45456 } 45457 #endif 45458 #endif 45459 45460 #if defined(INCLUDE_PTP) 45461 #ifdef BCM_TOMAHAWK3_SUPPORT 45462 int 45463 bcm_tomahawk3_ptp_clock_peer_age_timer_set( 45464 int unit, 45465 bcm_ptp_stack_id_t ptp_id, 45466 int clock_num, 45467 uint8 aging_time) 45468 { 45469 return bcm_esw_ptp_clock_peer_age_timer_set(unit, ptp_id, clock_num, aging_time); 45470 } 45471 #endif 45472 #endif 45473 45474 #if defined(INCLUDE_PTP) 45475 #ifdef BCM_TOMAHAWK3_SUPPORT 45476 int 45477 bcm_tomahawk3_ptp_clock_port_announce_receipt_timeout_get( 45478 int unit, 45479 bcm_ptp_stack_id_t ptp_id, 45480 int clock_num, 45481 uint32 clock_port, 45482 uint32 *timeout) 45483 { 45484 return bcm_esw_ptp_clock_port_announce_receipt_timeout_get(unit, ptp_id, clock_num, clock_port, timeout); 45485 } 45486 #endif 45487 #endif 45488 45489 #if defined(INCLUDE_PTP) 45490 #ifdef BCM_TOMAHAWK3_SUPPORT 45491 int 45492 bcm_tomahawk3_ptp_clock_port_announce_receipt_timeout_set( 45493 int unit, 45494 bcm_ptp_stack_id_t ptp_id, 45495 int clock_num, 45496 uint32 clock_port, 45497 uint32 timeout) 45498 { 45499 return bcm_esw_ptp_clock_port_announce_receipt_timeout_set(unit, ptp_id, clock_num, clock_port, timeout); 45500 } 45501 #endif 45502 #endif 45503 45504 #if defined(INCLUDE_PTP) 45505 #ifdef BCM_TOMAHAWK3_SUPPORT 45506 int 45507 bcm_tomahawk3_ptp_clock_port_configure( 45508 int unit, 45509 bcm_ptp_stack_id_t ptp_id, 45510 int clock_num, 45511 uint32 clock_port, 45512 bcm_ptp_clock_port_info_t *info) 45513 { 45514 return bcm_esw_ptp_clock_port_configure(unit, ptp_id, clock_num, clock_port, info); 45515 } 45516 #endif 45517 #endif 45518 45519 #if defined(INCLUDE_PTP) 45520 #ifdef BCM_TOMAHAWK3_SUPPORT 45521 int 45522 bcm_tomahawk3_ptp_clock_port_dataset_get( 45523 int unit, 45524 bcm_ptp_stack_id_t ptp_id, 45525 int clock_num, 45526 uint32 clock_port, 45527 bcm_ptp_port_dataset_t *dataset) 45528 { 45529 return bcm_esw_ptp_clock_port_dataset_get(unit, ptp_id, clock_num, clock_port, dataset); 45530 } 45531 #endif 45532 #endif 45533 45534 #if defined(INCLUDE_PTP) 45535 #ifdef BCM_TOMAHAWK3_SUPPORT 45536 int 45537 bcm_tomahawk3_ptp_clock_port_delay_mechanism_get( 45538 int unit, 45539 bcm_ptp_stack_id_t ptp_id, 45540 int clock_num, 45541 uint32 clock_port, 45542 uint32 *delay_mechanism) 45543 { 45544 return bcm_esw_ptp_clock_port_delay_mechanism_get(unit, ptp_id, clock_num, clock_port, delay_mechanism); 45545 } 45546 #endif 45547 #endif 45548 45549 #if defined(INCLUDE_PTP) 45550 #ifdef BCM_TOMAHAWK3_SUPPORT 45551 int 45552 bcm_tomahawk3_ptp_clock_port_delay_mechanism_set( 45553 int unit, 45554 bcm_ptp_stack_id_t ptp_id, 45555 int clock_num, 45556 uint32 clock_port, 45557 uint32 delay_mechanism) 45558 { 45559 return bcm_esw_ptp_clock_port_delay_mechanism_set(unit, ptp_id, clock_num, clock_port, delay_mechanism); 45560 } 45561 #endif 45562 #endif 45563 45564 #if defined(INCLUDE_PTP) 45565 #ifdef BCM_TOMAHAWK3_SUPPORT 45566 int 45567 bcm_tomahawk3_ptp_clock_port_disable( 45568 int unit, 45569 bcm_ptp_stack_id_t ptp_id, 45570 int clock_num, 45571 uint32 clock_port) 45572 { 45573 return bcm_esw_ptp_clock_port_disable(unit, ptp_id, clock_num, clock_port); 45574 } 45575 #endif 45576 #endif 45577 45578 #if defined(INCLUDE_PTP) 45579 #ifdef BCM_TOMAHAWK3_SUPPORT 45580 int 45581 bcm_tomahawk3_ptp_clock_port_drop_counters_enable_set( 45582 int unit, 45583 bcm_ptp_stack_id_t ptp_id, 45584 int clock_num, 45585 uint32 clock_port, 45586 int enable) 45587 { 45588 return bcm_esw_ptp_clock_port_drop_counters_enable_set(unit, ptp_id, clock_num, clock_port, enable); 45589 } 45590 #endif 45591 #endif 45592 45593 #if defined(INCLUDE_PTP) 45594 #ifdef BCM_TOMAHAWK3_SUPPORT 45595 int 45596 bcm_tomahawk3_ptp_clock_port_drop_counters_get( 45597 int unit, 45598 bcm_ptp_stack_id_t ptp_id, 45599 int clock_num, 45600 uint32 clock_port, 45601 bcm_ptp_clock_port_packet_drop_counters_t *per_port_packet_drop_counters) 45602 { 45603 return bcm_esw_ptp_clock_port_drop_counters_get(unit, ptp_id, clock_num, clock_port, per_port_packet_drop_counters); 45604 } 45605 #endif 45606 #endif 45607 45608 #if defined(INCLUDE_PTP) 45609 #ifdef BCM_TOMAHAWK3_SUPPORT 45610 int 45611 bcm_tomahawk3_ptp_clock_port_enable( 45612 int unit, 45613 bcm_ptp_stack_id_t ptp_id, 45614 int clock_num, 45615 uint32 clock_port) 45616 { 45617 return bcm_esw_ptp_clock_port_enable(unit, ptp_id, clock_num, clock_port); 45618 } 45619 #endif 45620 #endif 45621 45622 #if defined(INCLUDE_PTP) 45623 #ifdef BCM_TOMAHAWK3_SUPPORT 45624 int 45625 bcm_tomahawk3_ptp_clock_port_identity_get( 45626 int unit, 45627 bcm_ptp_stack_id_t ptp_id, 45628 int clock_num, 45629 uint32 clock_port, 45630 bcm_ptp_port_identity_t *identity) 45631 { 45632 return bcm_esw_ptp_clock_port_identity_get(unit, ptp_id, clock_num, clock_port, identity); 45633 } 45634 #endif 45635 #endif 45636 45637 #if defined(INCLUDE_PTP) 45638 #ifdef BCM_TOMAHAWK3_SUPPORT 45639 int 45640 bcm_tomahawk3_ptp_clock_port_info_get( 45641 int unit, 45642 bcm_ptp_stack_id_t ptp_id, 45643 int clock_num, 45644 uint32 clock_port, 45645 bcm_ptp_clock_port_info_t *info) 45646 { 45647 return bcm_esw_ptp_clock_port_info_get(unit, ptp_id, clock_num, clock_port, info); 45648 } 45649 #endif 45650 #endif 45651 45652 #if defined(INCLUDE_PTP) 45653 #ifdef BCM_TOMAHAWK3_SUPPORT 45654 int 45655 bcm_tomahawk3_ptp_clock_port_latency_set( 45656 int unit, 45657 bcm_ptp_stack_id_t ptp_id, 45658 int clock_num, 45659 uint32 clock_port, 45660 uint32 latency_in, 45661 uint32 latency_out) 45662 { 45663 return bcm_esw_ptp_clock_port_latency_set(unit, ptp_id, clock_num, clock_port, latency_in, latency_out); 45664 } 45665 #endif 45666 #endif 45667 45668 #if defined(INCLUDE_PTP) 45669 #ifdef BCM_TOMAHAWK3_SUPPORT 45670 int 45671 bcm_tomahawk3_ptp_clock_port_log_announce_interval_get( 45672 int unit, 45673 bcm_ptp_stack_id_t ptp_id, 45674 int clock_num, 45675 uint32 clock_port, 45676 int *interval) 45677 { 45678 return bcm_esw_ptp_clock_port_log_announce_interval_get(unit, ptp_id, clock_num, clock_port, interval); 45679 } 45680 #endif 45681 #endif 45682 45683 #if defined(INCLUDE_PTP) 45684 #ifdef BCM_TOMAHAWK3_SUPPORT 45685 int 45686 bcm_tomahawk3_ptp_clock_port_log_announce_interval_set( 45687 int unit, 45688 bcm_ptp_stack_id_t ptp_id, 45689 int clock_num, 45690 uint32 clock_port, 45691 int interval) 45692 { 45693 return bcm_esw_ptp_clock_port_log_announce_interval_set(unit, ptp_id, clock_num, clock_port, interval); 45694 } 45695 #endif 45696 #endif 45697 45698 #if defined(INCLUDE_PTP) 45699 #ifdef BCM_TOMAHAWK3_SUPPORT 45700 int 45701 bcm_tomahawk3_ptp_clock_port_log_min_delay_req_interval_get( 45702 int unit, 45703 bcm_ptp_stack_id_t ptp_id, 45704 int clock_num, 45705 uint32 clock_port, 45706 int *interval) 45707 { 45708 return bcm_esw_ptp_clock_port_log_min_delay_req_interval_get(unit, ptp_id, clock_num, clock_port, interval); 45709 } 45710 #endif 45711 #endif 45712 45713 #if defined(INCLUDE_PTP) 45714 #ifdef BCM_TOMAHAWK3_SUPPORT 45715 int 45716 bcm_tomahawk3_ptp_clock_port_log_min_delay_req_interval_set( 45717 int unit, 45718 bcm_ptp_stack_id_t ptp_id, 45719 int clock_num, 45720 uint32 clock_port, 45721 int interval) 45722 { 45723 return bcm_esw_ptp_clock_port_log_min_delay_req_interval_set(unit, ptp_id, clock_num, clock_port, interval); 45724 } 45725 #endif 45726 #endif 45727 45728 #if defined(INCLUDE_PTP) 45729 #ifdef BCM_TOMAHAWK3_SUPPORT 45730 int 45731 bcm_tomahawk3_ptp_clock_port_log_min_pdelay_req_interval_get( 45732 int unit, 45733 bcm_ptp_stack_id_t ptp_id, 45734 int clock_num, 45735 uint32 clock_port, 45736 int *interval) 45737 { 45738 return bcm_esw_ptp_clock_port_log_min_pdelay_req_interval_get(unit, ptp_id, clock_num, clock_port, interval); 45739 } 45740 #endif 45741 #endif 45742 45743 #if defined(INCLUDE_PTP) 45744 #ifdef BCM_TOMAHAWK3_SUPPORT 45745 int 45746 bcm_tomahawk3_ptp_clock_port_log_min_pdelay_req_interval_set( 45747 int unit, 45748 bcm_ptp_stack_id_t ptp_id, 45749 int clock_num, 45750 uint32 clock_port, 45751 int interval) 45752 { 45753 return bcm_esw_ptp_clock_port_log_min_pdelay_req_interval_set(unit, ptp_id, clock_num, clock_port, interval); 45754 } 45755 #endif 45756 #endif 45757 45758 #if defined(INCLUDE_PTP) 45759 #ifdef BCM_TOMAHAWK3_SUPPORT 45760 int 45761 bcm_tomahawk3_ptp_clock_port_log_sync_interval_get( 45762 int unit, 45763 bcm_ptp_stack_id_t ptp_id, 45764 int clock_num, 45765 uint32 clock_port, 45766 int *interval) 45767 { 45768 return bcm_esw_ptp_clock_port_log_sync_interval_get(unit, ptp_id, clock_num, clock_port, interval); 45769 } 45770 #endif 45771 #endif 45772 45773 #if defined(INCLUDE_PTP) 45774 #ifdef BCM_TOMAHAWK3_SUPPORT 45775 int 45776 bcm_tomahawk3_ptp_clock_port_log_sync_interval_set( 45777 int unit, 45778 bcm_ptp_stack_id_t ptp_id, 45779 int clock_num, 45780 uint32 clock_port, 45781 int interval) 45782 { 45783 return bcm_esw_ptp_clock_port_log_sync_interval_set(unit, ptp_id, clock_num, clock_port, interval); 45784 } 45785 #endif 45786 #endif 45787 45788 #if defined(INCLUDE_PTP) 45789 #ifdef BCM_TOMAHAWK3_SUPPORT 45790 int 45791 bcm_tomahawk3_ptp_clock_port_mac_get( 45792 int unit, 45793 bcm_ptp_stack_id_t ptp_id, 45794 int clock_num, 45795 uint32 clock_port, 45796 bcm_mac_t *mac) 45797 { 45798 return bcm_esw_ptp_clock_port_mac_get(unit, ptp_id, clock_num, clock_port, mac); 45799 } 45800 #endif 45801 #endif 45802 45803 #if defined(INCLUDE_PTP) 45804 #ifdef BCM_TOMAHAWK3_SUPPORT 45805 int 45806 bcm_tomahawk3_ptp_clock_port_protocol_get( 45807 int unit, 45808 bcm_ptp_stack_id_t ptp_id, 45809 int clock_num, 45810 uint32 clock_port, 45811 bcm_ptp_protocol_t *protocol) 45812 { 45813 return bcm_esw_ptp_clock_port_protocol_get(unit, ptp_id, clock_num, clock_port, protocol); 45814 } 45815 #endif 45816 #endif 45817 45818 #if defined(INCLUDE_PTP) 45819 #ifdef BCM_TOMAHAWK3_SUPPORT 45820 int 45821 bcm_tomahawk3_ptp_clock_port_type_get( 45822 int unit, 45823 bcm_ptp_stack_id_t ptp_id, 45824 int clock_num, 45825 uint32 clock_port, 45826 bcm_ptp_port_type_t *type) 45827 { 45828 return bcm_esw_ptp_clock_port_type_get(unit, ptp_id, clock_num, clock_port, type); 45829 } 45830 #endif 45831 #endif 45832 45833 #if defined(INCLUDE_PTP) 45834 #ifdef BCM_TOMAHAWK3_SUPPORT 45835 int 45836 bcm_tomahawk3_ptp_clock_port_version_number_get( 45837 int unit, 45838 bcm_ptp_stack_id_t ptp_id, 45839 int clock_num, 45840 uint32 clock_port, 45841 uint32 *version) 45842 { 45843 return bcm_esw_ptp_clock_port_version_number_get(unit, ptp_id, clock_num, clock_port, version); 45844 } 45845 #endif 45846 #endif 45847 45848 #if defined(INCLUDE_PTP) 45849 #ifdef BCM_TOMAHAWK3_SUPPORT 45850 int 45851 bcm_tomahawk3_ptp_clock_priority1_get( 45852 int unit, 45853 bcm_ptp_stack_id_t ptp_id, 45854 int clock_num, 45855 uint32 *priority1) 45856 { 45857 return bcm_esw_ptp_clock_priority1_get(unit, ptp_id, clock_num, priority1); 45858 } 45859 #endif 45860 #endif 45861 45862 #if defined(INCLUDE_PTP) 45863 #ifdef BCM_TOMAHAWK3_SUPPORT 45864 int 45865 bcm_tomahawk3_ptp_clock_priority1_set( 45866 int unit, 45867 bcm_ptp_stack_id_t ptp_id, 45868 int clock_num, 45869 uint32 priority1) 45870 { 45871 return bcm_esw_ptp_clock_priority1_set(unit, ptp_id, clock_num, priority1); 45872 } 45873 #endif 45874 #endif 45875 45876 #if defined(INCLUDE_PTP) 45877 #ifdef BCM_TOMAHAWK3_SUPPORT 45878 int 45879 bcm_tomahawk3_ptp_clock_priority2_get( 45880 int unit, 45881 bcm_ptp_stack_id_t ptp_id, 45882 int clock_num, 45883 uint32 *priority2) 45884 { 45885 return bcm_esw_ptp_clock_priority2_get(unit, ptp_id, clock_num, priority2); 45886 } 45887 #endif 45888 #endif 45889 45890 #if defined(INCLUDE_PTP) 45891 #ifdef BCM_TOMAHAWK3_SUPPORT 45892 int 45893 bcm_tomahawk3_ptp_clock_priority2_set( 45894 int unit, 45895 bcm_ptp_stack_id_t ptp_id, 45896 int clock_num, 45897 uint32 priority2) 45898 { 45899 return bcm_esw_ptp_clock_priority2_set(unit, ptp_id, clock_num, priority2); 45900 } 45901 #endif 45902 #endif 45903 45904 #if defined(INCLUDE_PTP) 45905 #ifdef BCM_TOMAHAWK3_SUPPORT 45906 int 45907 bcm_tomahawk3_ptp_clock_quality_get( 45908 int unit, 45909 bcm_ptp_stack_id_t ptp_id, 45910 int clock_num, 45911 bcm_ptp_clock_quality_t *clock_quality, 45912 uint32 flags) 45913 { 45914 return bcm_esw_ptp_clock_quality_get(unit, ptp_id, clock_num, clock_quality, flags); 45915 } 45916 #endif 45917 #endif 45918 45919 #if defined(INCLUDE_PTP) 45920 #ifdef BCM_TOMAHAWK3_SUPPORT 45921 int 45922 bcm_tomahawk3_ptp_clock_quality_set( 45923 int unit, 45924 bcm_ptp_stack_id_t ptp_id, 45925 int clock_num, 45926 bcm_ptp_clock_quality_t clock_quality, 45927 uint32 flags) 45928 { 45929 return bcm_esw_ptp_clock_quality_set(unit, ptp_id, clock_num, clock_quality, flags); 45930 } 45931 #endif 45932 #endif 45933 45934 #if defined(INCLUDE_PTP) 45935 #ifdef BCM_TOMAHAWK3_SUPPORT 45936 int 45937 bcm_tomahawk3_ptp_clock_slaveonly_get( 45938 int unit, 45939 bcm_ptp_stack_id_t ptp_id, 45940 int clock_num, 45941 uint32 *slaveonly) 45942 { 45943 return bcm_esw_ptp_clock_slaveonly_get(unit, ptp_id, clock_num, slaveonly); 45944 } 45945 #endif 45946 #endif 45947 45948 #if defined(INCLUDE_PTP) 45949 #ifdef BCM_TOMAHAWK3_SUPPORT 45950 int 45951 bcm_tomahawk3_ptp_clock_slaveonly_set( 45952 int unit, 45953 bcm_ptp_stack_id_t ptp_id, 45954 int clock_num, 45955 uint32 slaveonly) 45956 { 45957 return bcm_esw_ptp_clock_slaveonly_set(unit, ptp_id, clock_num, slaveonly); 45958 } 45959 #endif 45960 #endif 45961 45962 #if defined(INCLUDE_PTP) 45963 #ifdef BCM_TOMAHAWK3_SUPPORT 45964 int 45965 bcm_tomahawk3_ptp_clock_time_get( 45966 int unit, 45967 bcm_ptp_stack_id_t ptp_id, 45968 int clock_num, 45969 bcm_ptp_timestamp_t *time) 45970 { 45971 return bcm_esw_ptp_clock_time_get(unit, ptp_id, clock_num, time); 45972 } 45973 #endif 45974 #endif 45975 45976 #if defined(INCLUDE_PTP) 45977 #ifdef BCM_TOMAHAWK3_SUPPORT 45978 int 45979 bcm_tomahawk3_ptp_clock_time_properties_get( 45980 int unit, 45981 bcm_ptp_stack_id_t ptp_id, 45982 int clock_num, 45983 bcm_ptp_time_properties_t *data) 45984 { 45985 return bcm_esw_ptp_clock_time_properties_get(unit, ptp_id, clock_num, data); 45986 } 45987 #endif 45988 #endif 45989 45990 #if defined(INCLUDE_PTP) 45991 #ifdef BCM_TOMAHAWK3_SUPPORT 45992 int 45993 bcm_tomahawk3_ptp_clock_time_set( 45994 int unit, 45995 bcm_ptp_stack_id_t ptp_id, 45996 int clock_num, 45997 bcm_ptp_timestamp_t *time) 45998 { 45999 return bcm_esw_ptp_clock_time_set(unit, ptp_id, clock_num, time); 46000 } 46001 #endif 46002 #endif 46003 46004 #if defined(INCLUDE_PTP) 46005 #ifdef BCM_TOMAHAWK3_SUPPORT 46006 int 46007 bcm_tomahawk3_ptp_clock_timescale_get( 46008 int unit, 46009 bcm_ptp_stack_id_t ptp_id, 46010 int clock_num, 46011 bcm_ptp_timescale_t *timescale) 46012 { 46013 return bcm_esw_ptp_clock_timescale_get(unit, ptp_id, clock_num, timescale); 46014 } 46015 #endif 46016 #endif 46017 46018 #if defined(INCLUDE_PTP) 46019 #ifdef BCM_TOMAHAWK3_SUPPORT 46020 int 46021 bcm_tomahawk3_ptp_clock_timescale_set( 46022 int unit, 46023 bcm_ptp_stack_id_t ptp_id, 46024 int clock_num, 46025 bcm_ptp_timescale_t *timescale) 46026 { 46027 return bcm_esw_ptp_clock_timescale_set(unit, ptp_id, clock_num, timescale); 46028 } 46029 #endif 46030 #endif 46031 46032 #if defined(INCLUDE_PTP) 46033 #ifdef BCM_TOMAHAWK3_SUPPORT 46034 int 46035 bcm_tomahawk3_ptp_clock_traceability_get( 46036 int unit, 46037 bcm_ptp_stack_id_t ptp_id, 46038 int clock_num, 46039 bcm_ptp_trace_t *trace) 46040 { 46041 return bcm_esw_ptp_clock_traceability_get(unit, ptp_id, clock_num, trace); 46042 } 46043 #endif 46044 #endif 46045 46046 #if defined(INCLUDE_PTP) 46047 #ifdef BCM_TOMAHAWK3_SUPPORT 46048 int 46049 bcm_tomahawk3_ptp_clock_traceability_set( 46050 int unit, 46051 bcm_ptp_stack_id_t ptp_id, 46052 int clock_num, 46053 bcm_ptp_trace_t *trace) 46054 { 46055 return bcm_esw_ptp_clock_traceability_set(unit, ptp_id, clock_num, trace); 46056 } 46057 #endif 46058 #endif 46059 46060 #if defined(INCLUDE_PTP) 46061 #ifdef BCM_TOMAHAWK3_SUPPORT 46062 int 46063 bcm_tomahawk3_ptp_clock_user_description_set( 46064 int unit, 46065 bcm_ptp_stack_id_t ptp_id, 46066 int clock_num, 46067 uint8 *desc) 46068 { 46069 return bcm_esw_ptp_clock_user_description_set(unit, ptp_id, clock_num, desc); 46070 } 46071 #endif 46072 #endif 46073 46074 #if defined(INCLUDE_PTP) 46075 #ifdef BCM_TOMAHAWK3_SUPPORT 46076 int 46077 bcm_tomahawk3_ptp_clock_utc_get( 46078 int unit, 46079 bcm_ptp_stack_id_t ptp_id, 46080 int clock_num, 46081 bcm_ptp_utc_t *utc) 46082 { 46083 return bcm_esw_ptp_clock_utc_get(unit, ptp_id, clock_num, utc); 46084 } 46085 #endif 46086 #endif 46087 46088 #if defined(INCLUDE_PTP) 46089 #ifdef BCM_TOMAHAWK3_SUPPORT 46090 int 46091 bcm_tomahawk3_ptp_clock_utc_set( 46092 int unit, 46093 bcm_ptp_stack_id_t ptp_id, 46094 int clock_num, 46095 bcm_ptp_utc_t *utc) 46096 { 46097 return bcm_esw_ptp_clock_utc_set(unit, ptp_id, clock_num, utc); 46098 } 46099 #endif 46100 #endif 46101 46102 #if defined(INCLUDE_PTP) 46103 #ifdef BCM_TOMAHAWK3_SUPPORT 46104 int 46105 bcm_tomahawk3_ptp_ctdev_alarm_callback_register( 46106 int unit, 46107 bcm_ptp_stack_id_t ptp_id, 46108 int clock_num, 46109 bcm_ptp_ctdev_alarm_cb alarm_cb) 46110 { 46111 return bcm_esw_ptp_ctdev_alarm_callback_register(unit, ptp_id, clock_num, alarm_cb); 46112 } 46113 #endif 46114 #endif 46115 46116 #if defined(INCLUDE_PTP) 46117 #ifdef BCM_TOMAHAWK3_SUPPORT 46118 int 46119 bcm_tomahawk3_ptp_ctdev_alarm_callback_unregister( 46120 int unit, 46121 bcm_ptp_stack_id_t ptp_id, 46122 int clock_num) 46123 { 46124 return bcm_esw_ptp_ctdev_alarm_callback_unregister(unit, ptp_id, clock_num); 46125 } 46126 #endif 46127 #endif 46128 46129 #if defined(INCLUDE_PTP) 46130 #ifdef BCM_TOMAHAWK3_SUPPORT 46131 int 46132 bcm_tomahawk3_ptp_ctdev_alpha_get( 46133 int unit, 46134 bcm_ptp_stack_id_t ptp_id, 46135 int clock_num, 46136 uint16 *alpha_numerator, 46137 uint16 *alpha_denominator) 46138 { 46139 return bcm_esw_ptp_ctdev_alpha_get(unit, ptp_id, clock_num, alpha_numerator, alpha_denominator); 46140 } 46141 #endif 46142 #endif 46143 46144 #if defined(INCLUDE_PTP) 46145 #ifdef BCM_TOMAHAWK3_SUPPORT 46146 int 46147 bcm_tomahawk3_ptp_ctdev_alpha_set( 46148 int unit, 46149 bcm_ptp_stack_id_t ptp_id, 46150 int clock_num, 46151 uint16 alpha_numerator, 46152 uint16 alpha_denominator) 46153 { 46154 return bcm_esw_ptp_ctdev_alpha_set(unit, ptp_id, clock_num, alpha_numerator, alpha_denominator); 46155 } 46156 #endif 46157 #endif 46158 46159 #if defined(INCLUDE_PTP) 46160 #ifdef BCM_TOMAHAWK3_SUPPORT 46161 int 46162 bcm_tomahawk3_ptp_ctdev_enable_get( 46163 int unit, 46164 bcm_ptp_stack_id_t ptp_id, 46165 int clock_num, 46166 int *enable, 46167 uint32 *flags) 46168 { 46169 return bcm_esw_ptp_ctdev_enable_get(unit, ptp_id, clock_num, enable, flags); 46170 } 46171 #endif 46172 #endif 46173 46174 #if defined(INCLUDE_PTP) 46175 #ifdef BCM_TOMAHAWK3_SUPPORT 46176 int 46177 bcm_tomahawk3_ptp_ctdev_enable_set( 46178 int unit, 46179 bcm_ptp_stack_id_t ptp_id, 46180 int clock_num, 46181 int enable, 46182 uint32 flags) 46183 { 46184 return bcm_esw_ptp_ctdev_enable_set(unit, ptp_id, clock_num, enable, flags); 46185 } 46186 #endif 46187 #endif 46188 46189 #if defined(INCLUDE_PTP) 46190 #ifdef BCM_TOMAHAWK3_SUPPORT 46191 int 46192 bcm_tomahawk3_ptp_ctdev_verbose_get( 46193 int unit, 46194 bcm_ptp_stack_id_t ptp_id, 46195 int clock_num, 46196 int *verbose) 46197 { 46198 return bcm_esw_ptp_ctdev_verbose_get(unit, ptp_id, clock_num, verbose); 46199 } 46200 #endif 46201 #endif 46202 46203 #if defined(INCLUDE_PTP) 46204 #ifdef BCM_TOMAHAWK3_SUPPORT 46205 int 46206 bcm_tomahawk3_ptp_ctdev_verbose_set( 46207 int unit, 46208 bcm_ptp_stack_id_t ptp_id, 46209 int clock_num, 46210 int verbose) 46211 { 46212 return bcm_esw_ptp_ctdev_verbose_set(unit, ptp_id, clock_num, verbose); 46213 } 46214 #endif 46215 #endif 46216 46217 #if defined(INCLUDE_PTP) 46218 #ifdef BCM_TOMAHAWK3_SUPPORT 46219 int 46220 bcm_tomahawk3_ptp_detach( 46221 int unit) 46222 { 46223 return bcm_esw_ptp_detach(unit); 46224 } 46225 #endif 46226 #endif 46227 46228 #if defined(INCLUDE_PTP) 46229 #ifdef BCM_TOMAHAWK3_SUPPORT 46230 int 46231 bcm_tomahawk3_ptp_external_phy_synchronize( 46232 int unit, 46233 bcm_ptp_stack_id_t ptp_id, 46234 int clock_num, 46235 bcm_ptp_external_phy_config_t extphy_config) 46236 { 46237 return bcm_esw_ptp_external_phy_synchronize(unit, ptp_id, clock_num, extphy_config); 46238 } 46239 #endif 46240 #endif 46241 46242 #if defined(INCLUDE_PTP) 46243 #ifdef BCM_TOMAHAWK3_SUPPORT 46244 int 46245 bcm_tomahawk3_ptp_foreign_master_dataset_get( 46246 int unit, 46247 bcm_ptp_stack_id_t ptp_id, 46248 int clock_num, 46249 int port_num, 46250 bcm_ptp_foreign_master_dataset_t *data_set) 46251 { 46252 return bcm_esw_ptp_foreign_master_dataset_get(unit, ptp_id, clock_num, port_num, data_set); 46253 } 46254 #endif 46255 #endif 46256 46257 #if defined(INCLUDE_PTP) 46258 #ifdef BCM_TOMAHAWK3_SUPPORT 46259 int 46260 bcm_tomahawk3_ptp_g8275p1_traceability_info_clock_class_map( 46261 int unit, 46262 bcm_ptp_stack_id_t ptp_id, 46263 int clock_num, 46264 bcm_ptp_g8275p1_clock_traceability_info_t traceability_info, 46265 uint8 *clock_class) 46266 { 46267 return bcm_esw_ptp_g8275p1_traceability_info_clock_class_map(unit, ptp_id, clock_num, traceability_info, clock_class); 46268 } 46269 #endif 46270 #endif 46271 46272 #if defined(INCLUDE_PTP) 46273 #ifdef BCM_TOMAHAWK3_SUPPORT 46274 int 46275 bcm_tomahawk3_ptp_init( 46276 int unit) 46277 { 46278 return bcm_esw_ptp_init(unit); 46279 } 46280 #endif 46281 #endif 46282 46283 #if defined(INCLUDE_PTP) 46284 #ifdef BCM_TOMAHAWK3_SUPPORT 46285 int 46286 bcm_tomahawk3_ptp_input_channel_precedence_mode_set( 46287 int unit, 46288 bcm_ptp_stack_id_t ptp_id, 46289 int clock_num, 46290 int channel_select_mode) 46291 { 46292 return bcm_esw_ptp_input_channel_precedence_mode_set(unit, ptp_id, clock_num, channel_select_mode); 46293 } 46294 #endif 46295 #endif 46296 46297 #if defined(INCLUDE_PTP) 46298 #ifdef BCM_TOMAHAWK3_SUPPORT 46299 int 46300 bcm_tomahawk3_ptp_input_channel_switching_mode_set( 46301 int unit, 46302 bcm_ptp_stack_id_t ptp_id, 46303 int clock_num, 46304 int channel_switching_mode) 46305 { 46306 return bcm_esw_ptp_input_channel_switching_mode_set(unit, ptp_id, clock_num, channel_switching_mode); 46307 } 46308 #endif 46309 #endif 46310 46311 #if defined(INCLUDE_PTP) 46312 #ifdef BCM_TOMAHAWK3_SUPPORT 46313 int 46314 bcm_tomahawk3_ptp_input_channels_get( 46315 int unit, 46316 bcm_ptp_stack_id_t ptp_id, 46317 int clock_num, 46318 int *num_channels, 46319 bcm_ptp_channel_t *channels) 46320 { 46321 return bcm_esw_ptp_input_channels_get(unit, ptp_id, clock_num, num_channels, channels); 46322 } 46323 #endif 46324 #endif 46325 46326 #if defined(INCLUDE_PTP) 46327 #ifdef BCM_TOMAHAWK3_SUPPORT 46328 int 46329 bcm_tomahawk3_ptp_input_channels_set( 46330 int unit, 46331 bcm_ptp_stack_id_t ptp_id, 46332 int clock_num, 46333 int num_channels, 46334 bcm_ptp_channel_t *channels) 46335 { 46336 return bcm_esw_ptp_input_channels_set(unit, ptp_id, clock_num, num_channels, channels); 46337 } 46338 #endif 46339 #endif 46340 46341 #if defined(INCLUDE_PTP) 46342 #ifdef BCM_TOMAHAWK3_SUPPORT 46343 int 46344 bcm_tomahawk3_ptp_modular_enable_get( 46345 int unit, 46346 bcm_ptp_stack_id_t ptp_id, 46347 int clock_num, 46348 int *enable, 46349 uint32 *flags) 46350 { 46351 return bcm_esw_ptp_modular_enable_get(unit, ptp_id, clock_num, enable, flags); 46352 } 46353 #endif 46354 #endif 46355 46356 #if defined(INCLUDE_PTP) 46357 #ifdef BCM_TOMAHAWK3_SUPPORT 46358 int 46359 bcm_tomahawk3_ptp_modular_enable_set( 46360 int unit, 46361 bcm_ptp_stack_id_t ptp_id, 46362 int clock_num, 46363 int enable, 46364 uint32 flags) 46365 { 46366 return bcm_esw_ptp_modular_enable_set(unit, ptp_id, clock_num, enable, flags); 46367 } 46368 #endif 46369 #endif 46370 46371 #if defined(INCLUDE_PTP) 46372 #ifdef BCM_TOMAHAWK3_SUPPORT 46373 int 46374 bcm_tomahawk3_ptp_modular_phyts_get( 46375 int unit, 46376 bcm_ptp_stack_id_t ptp_id, 46377 int clock_num, 46378 int *phyts, 46379 int *framesync_pin) 46380 { 46381 return bcm_esw_ptp_modular_phyts_get(unit, ptp_id, clock_num, phyts, framesync_pin); 46382 } 46383 #endif 46384 #endif 46385 46386 #if defined(INCLUDE_PTP) 46387 #ifdef BCM_TOMAHAWK3_SUPPORT 46388 int 46389 bcm_tomahawk3_ptp_modular_phyts_set( 46390 int unit, 46391 bcm_ptp_stack_id_t ptp_id, 46392 int clock_num, 46393 int phyts, 46394 int framesync_pin) 46395 { 46396 return bcm_esw_ptp_modular_phyts_set(unit, ptp_id, clock_num, phyts, framesync_pin); 46397 } 46398 #endif 46399 #endif 46400 46401 #if defined(INCLUDE_PTP) 46402 #ifdef BCM_TOMAHAWK3_SUPPORT 46403 int 46404 bcm_tomahawk3_ptp_modular_portbitmap_get( 46405 int unit, 46406 bcm_ptp_stack_id_t ptp_id, 46407 int clock_num, 46408 bcm_pbmp_t *pbmp) 46409 { 46410 return bcm_esw_ptp_modular_portbitmap_get(unit, ptp_id, clock_num, pbmp); 46411 } 46412 #endif 46413 #endif 46414 46415 #if defined(INCLUDE_PTP) 46416 #ifdef BCM_TOMAHAWK3_SUPPORT 46417 int 46418 bcm_tomahawk3_ptp_modular_portbitmap_set( 46419 int unit, 46420 bcm_ptp_stack_id_t ptp_id, 46421 int clock_num, 46422 bcm_pbmp_t pbmp) 46423 { 46424 return bcm_esw_ptp_modular_portbitmap_set(unit, ptp_id, clock_num, pbmp); 46425 } 46426 #endif 46427 #endif 46428 46429 #if defined(INCLUDE_PTP) 46430 #ifdef BCM_TOMAHAWK3_SUPPORT 46431 int 46432 bcm_tomahawk3_ptp_modular_verbose_get( 46433 int unit, 46434 bcm_ptp_stack_id_t ptp_id, 46435 int clock_num, 46436 int *verbose) 46437 { 46438 return bcm_esw_ptp_modular_verbose_get(unit, ptp_id, clock_num, verbose); 46439 } 46440 #endif 46441 #endif 46442 46443 #if defined(INCLUDE_PTP) 46444 #ifdef BCM_TOMAHAWK3_SUPPORT 46445 int 46446 bcm_tomahawk3_ptp_modular_verbose_set( 46447 int unit, 46448 bcm_ptp_stack_id_t ptp_id, 46449 int clock_num, 46450 int verbose) 46451 { 46452 return bcm_esw_ptp_modular_verbose_set(unit, ptp_id, clock_num, verbose); 46453 } 46454 #endif 46455 #endif 46456 46457 #if defined(INCLUDE_PTP) 46458 #ifdef BCM_TOMAHAWK3_SUPPORT 46459 int 46460 bcm_tomahawk3_ptp_packet_counters_clear( 46461 int unit, 46462 bcm_ptp_stack_id_t ptp_id, 46463 int clock_num, 46464 int port_num, 46465 uint32 counter_bitmap) 46466 { 46467 return bcm_esw_ptp_packet_counters_clear(unit, ptp_id, clock_num, port_num, counter_bitmap); 46468 } 46469 #endif 46470 #endif 46471 46472 #if defined(INCLUDE_PTP) 46473 #ifdef BCM_TOMAHAWK3_SUPPORT 46474 int 46475 bcm_tomahawk3_ptp_packet_counters_get( 46476 int unit, 46477 bcm_ptp_stack_id_t ptp_id, 46478 int clock_num, 46479 bcm_ptp_packet_counters_t *counters) 46480 { 46481 return bcm_esw_ptp_packet_counters_get(unit, ptp_id, clock_num, counters); 46482 } 46483 #endif 46484 #endif 46485 46486 #if defined(INCLUDE_PTP) 46487 #ifdef BCM_TOMAHAWK3_SUPPORT 46488 int 46489 bcm_tomahawk3_ptp_peer_dataset_get( 46490 int unit, 46491 bcm_ptp_stack_id_t ptp_id, 46492 int clock_num, 46493 int port_num, 46494 int max_num_peers, 46495 bcm_ptp_peer_entry_t *peers, 46496 int *num_peers) 46497 { 46498 return bcm_esw_ptp_peer_dataset_get(unit, ptp_id, clock_num, port_num, max_num_peers, peers, num_peers); 46499 } 46500 #endif 46501 #endif 46502 46503 #if defined(INCLUDE_PTP) 46504 #ifdef BCM_TOMAHAWK3_SUPPORT 46505 int 46506 bcm_tomahawk3_ptp_phase_offset_get( 46507 int unit, 46508 bcm_ptp_stack_id_t ptp_id, 46509 int clock_num, 46510 bcm_ptp_phase_offset_t *offset) 46511 { 46512 return bcm_esw_ptp_phase_offset_get(unit, ptp_id, clock_num, offset); 46513 } 46514 #endif 46515 #endif 46516 46517 #if defined(INCLUDE_PTP) 46518 #ifdef BCM_TOMAHAWK3_SUPPORT 46519 int 46520 bcm_tomahawk3_ptp_phase_offset_set( 46521 int unit, 46522 bcm_ptp_stack_id_t ptp_id, 46523 int clock_num, 46524 const bcm_ptp_phase_offset_t *offset) 46525 { 46526 return bcm_esw_ptp_phase_offset_set(unit, ptp_id, clock_num, offset); 46527 } 46528 #endif 46529 #endif 46530 46531 #if defined(INCLUDE_PTP) 46532 #ifdef BCM_TOMAHAWK3_SUPPORT 46533 int 46534 bcm_tomahawk3_ptp_pkt_flags_override_get( 46535 int unit, 46536 bcm_ptp_stack_id_t ptp_id, 46537 int clock_num, 46538 uint32 *override_flag, 46539 uint32 *override_value) 46540 { 46541 return bcm_esw_ptp_pkt_flags_override_get(unit, ptp_id, clock_num, override_flag, override_value); 46542 } 46543 #endif 46544 #endif 46545 46546 #if defined(INCLUDE_PTP) 46547 #ifdef BCM_TOMAHAWK3_SUPPORT 46548 int 46549 bcm_tomahawk3_ptp_pkt_flags_override_set( 46550 int unit, 46551 bcm_ptp_stack_id_t ptp_id, 46552 int clock_num, 46553 uint32 override_flag, 46554 uint32 override_value) 46555 { 46556 return bcm_esw_ptp_pkt_flags_override_set(unit, ptp_id, clock_num, override_flag, override_value); 46557 } 46558 #endif 46559 #endif 46560 46561 #if defined(INCLUDE_PTP) 46562 #ifdef BCM_TOMAHAWK3_SUPPORT 46563 int 46564 bcm_tomahawk3_ptp_primary_domain_get( 46565 int unit, 46566 bcm_ptp_stack_id_t ptp_id, 46567 int clock_num, 46568 int *primary_domain) 46569 { 46570 return bcm_esw_ptp_primary_domain_get(unit, ptp_id, clock_num, primary_domain); 46571 } 46572 #endif 46573 #endif 46574 46575 #if defined(INCLUDE_PTP) 46576 #ifdef BCM_TOMAHAWK3_SUPPORT 46577 int 46578 bcm_tomahawk3_ptp_primary_domain_set( 46579 int unit, 46580 bcm_ptp_stack_id_t ptp_id, 46581 int clock_num, 46582 int primary_domain) 46583 { 46584 return bcm_esw_ptp_primary_domain_set(unit, ptp_id, clock_num, primary_domain); 46585 } 46586 #endif 46587 #endif 46588 46589 #if defined(INCLUDE_PTP) 46590 #ifdef BCM_TOMAHAWK3_SUPPORT 46591 int 46592 bcm_tomahawk3_ptp_servo_configuration_get( 46593 int unit, 46594 bcm_ptp_stack_id_t ptp_id, 46595 int clock_num, 46596 bcm_ptp_servo_config_t *config) 46597 { 46598 return bcm_esw_ptp_servo_configuration_get(unit, ptp_id, clock_num, config); 46599 } 46600 #endif 46601 #endif 46602 46603 #if defined(INCLUDE_PTP) 46604 #ifdef BCM_TOMAHAWK3_SUPPORT 46605 int 46606 bcm_tomahawk3_ptp_servo_configuration_set( 46607 int unit, 46608 bcm_ptp_stack_id_t ptp_id, 46609 int clock_num, 46610 bcm_ptp_servo_config_t *config) 46611 { 46612 return bcm_esw_ptp_servo_configuration_set(unit, ptp_id, clock_num, config); 46613 } 46614 #endif 46615 #endif 46616 46617 #if defined(INCLUDE_PTP) 46618 #ifdef BCM_TOMAHAWK3_SUPPORT 46619 int 46620 bcm_tomahawk3_ptp_servo_status_get( 46621 int unit, 46622 bcm_ptp_stack_id_t ptp_id, 46623 int clock_num, 46624 bcm_ptp_servo_status_t *status) 46625 { 46626 return bcm_esw_ptp_servo_status_get(unit, ptp_id, clock_num, status); 46627 } 46628 #endif 46629 #endif 46630 46631 #if defined(INCLUDE_PTP) 46632 #ifdef BCM_TOMAHAWK3_SUPPORT 46633 int 46634 bcm_tomahawk3_ptp_servo_threshold_get( 46635 int unit, 46636 bcm_ptp_stack_id_t ptp_id, 46637 int clock_num, 46638 bcm_ptp_servo_threshold_t *threshold) 46639 { 46640 return bcm_esw_ptp_servo_threshold_get(unit, ptp_id, clock_num, threshold); 46641 } 46642 #endif 46643 #endif 46644 46645 #if defined(INCLUDE_PTP) 46646 #ifdef BCM_TOMAHAWK3_SUPPORT 46647 int 46648 bcm_tomahawk3_ptp_servo_threshold_set( 46649 int unit, 46650 bcm_ptp_stack_id_t ptp_id, 46651 int clock_num, 46652 bcm_ptp_servo_threshold_t *threshold) 46653 { 46654 return bcm_esw_ptp_servo_threshold_set(unit, ptp_id, clock_num, threshold); 46655 } 46656 #endif 46657 #endif 46658 46659 #if defined(INCLUDE_PTP) 46660 #ifdef BCM_TOMAHAWK3_SUPPORT 46661 int 46662 bcm_tomahawk3_ptp_signal_output_get( 46663 int unit, 46664 bcm_ptp_stack_id_t ptp_id, 46665 int clock_num, 46666 int *signal_output_count, 46667 bcm_ptp_signal_output_t *signal_output_id) 46668 { 46669 return bcm_esw_ptp_signal_output_get(unit, ptp_id, clock_num, signal_output_count, signal_output_id); 46670 } 46671 #endif 46672 #endif 46673 46674 #if defined(INCLUDE_PTP) 46675 #ifdef BCM_TOMAHAWK3_SUPPORT 46676 int 46677 bcm_tomahawk3_ptp_signal_output_remove( 46678 int unit, 46679 bcm_ptp_stack_id_t ptp_id, 46680 int clock_num, 46681 int signal_output_id) 46682 { 46683 return bcm_esw_ptp_signal_output_remove(unit, ptp_id, clock_num, signal_output_id); 46684 } 46685 #endif 46686 #endif 46687 46688 #if defined(INCLUDE_PTP) 46689 #ifdef BCM_TOMAHAWK3_SUPPORT 46690 int 46691 bcm_tomahawk3_ptp_signal_output_set( 46692 int unit, 46693 bcm_ptp_stack_id_t ptp_id, 46694 int clock_num, 46695 int *signal_output_id, 46696 bcm_ptp_signal_output_t *output_info) 46697 { 46698 return bcm_esw_ptp_signal_output_set(unit, ptp_id, clock_num, signal_output_id, output_info); 46699 } 46700 #endif 46701 #endif 46702 46703 #if defined(INCLUDE_PTP) 46704 #ifdef BCM_TOMAHAWK3_SUPPORT 46705 int 46706 bcm_tomahawk3_ptp_signaled_unicast_master_add( 46707 int unit, 46708 bcm_ptp_stack_id_t ptp_id, 46709 int clock_num, 46710 int port_num, 46711 bcm_ptp_clock_unicast_master_t *master_info, 46712 uint32 mask) 46713 { 46714 return bcm_esw_ptp_signaled_unicast_master_add(unit, ptp_id, clock_num, port_num, master_info, mask); 46715 } 46716 #endif 46717 #endif 46718 46719 #if defined(INCLUDE_PTP) 46720 #ifdef BCM_TOMAHAWK3_SUPPORT 46721 int 46722 bcm_tomahawk3_ptp_signaled_unicast_master_remove( 46723 int unit, 46724 bcm_ptp_stack_id_t ptp_id, 46725 int clock_num, 46726 int port_num, 46727 bcm_ptp_clock_peer_address_t *master_info) 46728 { 46729 return bcm_esw_ptp_signaled_unicast_master_remove(unit, ptp_id, clock_num, port_num, master_info); 46730 } 46731 #endif 46732 #endif 46733 46734 #if defined(INCLUDE_PTP) 46735 #ifdef BCM_TOMAHAWK3_SUPPORT 46736 int 46737 bcm_tomahawk3_ptp_signaled_unicast_slave_list( 46738 int unit, 46739 bcm_ptp_stack_id_t ptp_id, 46740 int clock_num, 46741 int port_num, 46742 int max_num_slaves, 46743 int *num_slaves, 46744 bcm_ptp_clock_peer_t *slave_info) 46745 { 46746 return bcm_esw_ptp_signaled_unicast_slave_list(unit, ptp_id, clock_num, port_num, max_num_slaves, num_slaves, slave_info); 46747 } 46748 #endif 46749 #endif 46750 46751 #if defined(INCLUDE_PTP) 46752 #ifdef BCM_TOMAHAWK3_SUPPORT 46753 int 46754 bcm_tomahawk3_ptp_signaled_unicast_slave_table_clear( 46755 int unit, 46756 bcm_ptp_stack_id_t ptp_id, 46757 int clock_num, 46758 int port_num, 46759 int callstack) 46760 { 46761 return bcm_esw_ptp_signaled_unicast_slave_table_clear(unit, ptp_id, clock_num, port_num, callstack); 46762 } 46763 #endif 46764 #endif 46765 46766 #if defined(INCLUDE_PTP) 46767 #ifdef BCM_TOMAHAWK3_SUPPORT 46768 int 46769 bcm_tomahawk3_ptp_signaling_arbiter_register( 46770 int unit, 46771 bcm_ptp_stack_id_t ptp_id, 46772 int clock_num, 46773 bcm_ptp_signaling_arbiter_t arb, 46774 void *user_data) 46775 { 46776 return bcm_esw_ptp_signaling_arbiter_register(unit, ptp_id, clock_num, arb, user_data); 46777 } 46778 #endif 46779 #endif 46780 46781 #if defined(INCLUDE_PTP) 46782 #ifdef BCM_TOMAHAWK3_SUPPORT 46783 int 46784 bcm_tomahawk3_ptp_signaling_arbiter_unregister( 46785 int unit, 46786 bcm_ptp_stack_id_t ptp_id, 46787 int clock_num) 46788 { 46789 return bcm_esw_ptp_signaling_arbiter_unregister(unit, ptp_id, clock_num); 46790 } 46791 #endif 46792 #endif 46793 46794 #if defined(INCLUDE_PTP) 46795 #ifdef BCM_TOMAHAWK3_SUPPORT 46796 int 46797 bcm_tomahawk3_ptp_stack_create( 46798 int unit, 46799 bcm_ptp_stack_info_t *ptp_info) 46800 { 46801 return bcm_esw_ptp_stack_create(unit, ptp_info); 46802 } 46803 #endif 46804 #endif 46805 46806 #if defined(INCLUDE_PTP) 46807 #ifdef BCM_TOMAHAWK3_SUPPORT 46808 int 46809 bcm_tomahawk3_ptp_stack_destroy( 46810 int unit, 46811 bcm_ptp_stack_id_t ptp_id) 46812 { 46813 return bcm_esw_ptp_stack_destroy(unit, ptp_id); 46814 } 46815 #endif 46816 #endif 46817 46818 #if defined(INCLUDE_PTP) 46819 #ifdef BCM_TOMAHAWK3_SUPPORT 46820 int 46821 bcm_tomahawk3_ptp_stack_get( 46822 int unit, 46823 bcm_ptp_stack_id_t ptp_id, 46824 bcm_ptp_stack_info_t *ptp_info) 46825 { 46826 return bcm_esw_ptp_stack_get(unit, ptp_id, ptp_info); 46827 } 46828 #endif 46829 #endif 46830 46831 #if defined(INCLUDE_PTP) 46832 #ifdef BCM_TOMAHAWK3_SUPPORT 46833 int 46834 bcm_tomahawk3_ptp_stack_get_all( 46835 int unit, 46836 int max_size, 46837 bcm_ptp_stack_info_t *ptp_info, 46838 int *no_of_stacks) 46839 { 46840 return bcm_esw_ptp_stack_get_all(unit, max_size, ptp_info, no_of_stacks); 46841 } 46842 #endif 46843 #endif 46844 46845 #if defined(INCLUDE_PTP) 46846 #ifdef BCM_TOMAHAWK3_SUPPORT 46847 int 46848 bcm_tomahawk3_ptp_static_unicast_master_add( 46849 int unit, 46850 bcm_ptp_stack_id_t ptp_id, 46851 int clock_num, 46852 int port_num, 46853 bcm_ptp_clock_unicast_master_t *master_info) 46854 { 46855 return bcm_esw_ptp_static_unicast_master_add(unit, ptp_id, clock_num, port_num, master_info); 46856 } 46857 #endif 46858 #endif 46859 46860 #if defined(INCLUDE_PTP) 46861 #ifdef BCM_TOMAHAWK3_SUPPORT 46862 int 46863 bcm_tomahawk3_ptp_static_unicast_master_list( 46864 int unit, 46865 bcm_ptp_stack_id_t ptp_id, 46866 int clock_num, 46867 int port_num, 46868 int max_num_masters, 46869 int *num_masters, 46870 bcm_ptp_clock_peer_address_t *master_addr) 46871 { 46872 return bcm_esw_ptp_static_unicast_master_list(unit, ptp_id, clock_num, port_num, max_num_masters, num_masters, master_addr); 46873 } 46874 #endif 46875 #endif 46876 46877 #if defined(INCLUDE_PTP) 46878 #ifdef BCM_TOMAHAWK3_SUPPORT 46879 int 46880 bcm_tomahawk3_ptp_static_unicast_master_remove( 46881 int unit, 46882 bcm_ptp_stack_id_t ptp_id, 46883 int clock_num, 46884 int port_num, 46885 bcm_ptp_clock_peer_address_t *master_info) 46886 { 46887 return bcm_esw_ptp_static_unicast_master_remove(unit, ptp_id, clock_num, port_num, master_info); 46888 } 46889 #endif 46890 #endif 46891 46892 #if defined(INCLUDE_PTP) 46893 #ifdef BCM_TOMAHAWK3_SUPPORT 46894 int 46895 bcm_tomahawk3_ptp_static_unicast_master_table_clear( 46896 int unit, 46897 bcm_ptp_stack_id_t ptp_id, 46898 int clock_num, 46899 int port_num) 46900 { 46901 return bcm_esw_ptp_static_unicast_master_table_clear(unit, ptp_id, clock_num, port_num); 46902 } 46903 #endif 46904 #endif 46905 46906 #if defined(INCLUDE_PTP) 46907 #ifdef BCM_TOMAHAWK3_SUPPORT 46908 int 46909 bcm_tomahawk3_ptp_static_unicast_master_table_size_get( 46910 int unit, 46911 bcm_ptp_stack_id_t ptp_id, 46912 int clock_num, 46913 int port_num, 46914 int *max_table_entries) 46915 { 46916 return bcm_esw_ptp_static_unicast_master_table_size_get(unit, ptp_id, clock_num, port_num, max_table_entries); 46917 } 46918 #endif 46919 #endif 46920 46921 #if defined(INCLUDE_PTP) 46922 #ifdef BCM_TOMAHAWK3_SUPPORT 46923 int 46924 bcm_tomahawk3_ptp_static_unicast_slave_add( 46925 int unit, 46926 bcm_ptp_stack_id_t ptp_id, 46927 int clock_num, 46928 int port_num, 46929 bcm_ptp_clock_peer_t *slave_info) 46930 { 46931 return bcm_esw_ptp_static_unicast_slave_add(unit, ptp_id, clock_num, port_num, slave_info); 46932 } 46933 #endif 46934 #endif 46935 46936 #if defined(INCLUDE_PTP) 46937 #ifdef BCM_TOMAHAWK3_SUPPORT 46938 int 46939 bcm_tomahawk3_ptp_static_unicast_slave_list( 46940 int unit, 46941 bcm_ptp_stack_id_t ptp_id, 46942 int clock_num, 46943 int port_num, 46944 int max_num_slaves, 46945 int *num_slaves, 46946 bcm_ptp_clock_peer_t *slave_info) 46947 { 46948 return bcm_esw_ptp_static_unicast_slave_list(unit, ptp_id, clock_num, port_num, max_num_slaves, num_slaves, slave_info); 46949 } 46950 #endif 46951 #endif 46952 46953 #if defined(INCLUDE_PTP) 46954 #ifdef BCM_TOMAHAWK3_SUPPORT 46955 int 46956 bcm_tomahawk3_ptp_static_unicast_slave_remove( 46957 int unit, 46958 bcm_ptp_stack_id_t ptp_id, 46959 int clock_num, 46960 int port_num, 46961 bcm_ptp_clock_peer_t *slave_info) 46962 { 46963 return bcm_esw_ptp_static_unicast_slave_remove(unit, ptp_id, clock_num, port_num, slave_info); 46964 } 46965 #endif 46966 #endif 46967 46968 #if defined(INCLUDE_PTP) 46969 #ifdef BCM_TOMAHAWK3_SUPPORT 46970 int 46971 bcm_tomahawk3_ptp_static_unicast_slave_table_clear( 46972 int unit, 46973 bcm_ptp_stack_id_t ptp_id, 46974 int clock_num, 46975 int port_num) 46976 { 46977 return bcm_esw_ptp_static_unicast_slave_table_clear(unit, ptp_id, clock_num, port_num); 46978 } 46979 #endif 46980 #endif 46981 46982 #if defined(INCLUDE_PTP) 46983 #ifdef BCM_TOMAHAWK3_SUPPORT 46984 int 46985 bcm_tomahawk3_ptp_sync_phy( 46986 int unit, 46987 bcm_ptp_stack_id_t ptp_id, 46988 int clock_num, 46989 bcm_ptp_sync_phy_input_t sync_input) 46990 { 46991 return bcm_esw_ptp_sync_phy(unit, ptp_id, clock_num, sync_input); 46992 } 46993 #endif 46994 #endif 46995 46996 #if defined(INCLUDE_PTP) 46997 #ifdef BCM_TOMAHAWK3_SUPPORT 46998 int 46999 bcm_tomahawk3_ptp_telecom_g8265_init( 47000 int unit, 47001 bcm_ptp_stack_id_t ptp_id, 47002 int clock_num) 47003 { 47004 return bcm_esw_ptp_telecom_g8265_init(unit, ptp_id, clock_num); 47005 } 47006 #endif 47007 #endif 47008 47009 #if defined(INCLUDE_PTP) 47010 #ifdef BCM_TOMAHAWK3_SUPPORT 47011 int 47012 bcm_tomahawk3_ptp_telecom_g8265_network_option_get( 47013 int unit, 47014 bcm_ptp_stack_id_t ptp_id, 47015 int clock_num, 47016 bcm_ptp_telecom_g8265_network_option_t *network_option) 47017 { 47018 return bcm_esw_ptp_telecom_g8265_network_option_get(unit, ptp_id, clock_num, network_option); 47019 } 47020 #endif 47021 #endif 47022 47023 #if defined(INCLUDE_PTP) 47024 #ifdef BCM_TOMAHAWK3_SUPPORT 47025 int 47026 bcm_tomahawk3_ptp_telecom_g8265_network_option_set( 47027 int unit, 47028 bcm_ptp_stack_id_t ptp_id, 47029 int clock_num, 47030 bcm_ptp_telecom_g8265_network_option_t network_option) 47031 { 47032 return bcm_esw_ptp_telecom_g8265_network_option_set(unit, ptp_id, clock_num, network_option); 47033 } 47034 #endif 47035 #endif 47036 47037 #if defined(INCLUDE_PTP) 47038 #ifdef BCM_TOMAHAWK3_SUPPORT 47039 int 47040 bcm_tomahawk3_ptp_telecom_g8265_packet_master_add( 47041 int unit, 47042 bcm_ptp_stack_id_t ptp_id, 47043 int clock_num, 47044 int port_num, 47045 bcm_ptp_clock_port_address_t *address) 47046 { 47047 return bcm_esw_ptp_telecom_g8265_packet_master_add(unit, ptp_id, clock_num, port_num, address); 47048 } 47049 #endif 47050 #endif 47051 47052 #if defined(INCLUDE_PTP) 47053 #ifdef BCM_TOMAHAWK3_SUPPORT 47054 int 47055 bcm_tomahawk3_ptp_telecom_g8265_packet_master_best_get( 47056 int unit, 47057 bcm_ptp_stack_id_t ptp_id, 47058 int clock_num, 47059 bcm_ptp_telecom_g8265_pktmaster_t *pktmaster) 47060 { 47061 return bcm_esw_ptp_telecom_g8265_packet_master_best_get(unit, ptp_id, clock_num, pktmaster); 47062 } 47063 #endif 47064 #endif 47065 47066 #if defined(INCLUDE_PTP) 47067 #ifdef BCM_TOMAHAWK3_SUPPORT 47068 int 47069 bcm_tomahawk3_ptp_telecom_g8265_packet_master_get( 47070 int unit, 47071 bcm_ptp_stack_id_t ptp_id, 47072 int clock_num, 47073 bcm_ptp_clock_port_address_t *address, 47074 bcm_ptp_telecom_g8265_pktmaster_t *pktmaster) 47075 { 47076 return bcm_esw_ptp_telecom_g8265_packet_master_get(unit, ptp_id, clock_num, address, pktmaster); 47077 } 47078 #endif 47079 #endif 47080 47081 #if defined(INCLUDE_PTP) 47082 #ifdef BCM_TOMAHAWK3_SUPPORT 47083 int 47084 bcm_tomahawk3_ptp_telecom_g8265_packet_master_list( 47085 int unit, 47086 bcm_ptp_stack_id_t ptp_id, 47087 int clock_num, 47088 int max_master_count, 47089 int *num_masters, 47090 int *best_master, 47091 bcm_ptp_telecom_g8265_pktmaster_t *pktmaster) 47092 { 47093 return bcm_esw_ptp_telecom_g8265_packet_master_list(unit, ptp_id, clock_num, max_master_count, num_masters, best_master, pktmaster); 47094 } 47095 #endif 47096 #endif 47097 47098 #if defined(INCLUDE_PTP) 47099 #ifdef BCM_TOMAHAWK3_SUPPORT 47100 int 47101 bcm_tomahawk3_ptp_telecom_g8265_packet_master_lockout_set( 47102 int unit, 47103 bcm_ptp_stack_id_t ptp_id, 47104 int clock_num, 47105 uint8 lockout, 47106 bcm_ptp_clock_port_address_t *address) 47107 { 47108 return bcm_esw_ptp_telecom_g8265_packet_master_lockout_set(unit, ptp_id, clock_num, lockout, address); 47109 } 47110 #endif 47111 #endif 47112 47113 #if defined(INCLUDE_PTP) 47114 #ifdef BCM_TOMAHAWK3_SUPPORT 47115 int 47116 bcm_tomahawk3_ptp_telecom_g8265_packet_master_non_reversion_set( 47117 int unit, 47118 bcm_ptp_stack_id_t ptp_id, 47119 int clock_num, 47120 uint8 nonres, 47121 bcm_ptp_clock_port_address_t *address) 47122 { 47123 return bcm_esw_ptp_telecom_g8265_packet_master_non_reversion_set(unit, ptp_id, clock_num, nonres, address); 47124 } 47125 #endif 47126 #endif 47127 47128 #if defined(INCLUDE_PTP) 47129 #ifdef BCM_TOMAHAWK3_SUPPORT 47130 int 47131 bcm_tomahawk3_ptp_telecom_g8265_packet_master_priority_override( 47132 int unit, 47133 bcm_ptp_stack_id_t ptp_id, 47134 int clock_num, 47135 uint8 override, 47136 bcm_ptp_clock_port_address_t *address) 47137 { 47138 return bcm_esw_ptp_telecom_g8265_packet_master_priority_override(unit, ptp_id, clock_num, override, address); 47139 } 47140 #endif 47141 #endif 47142 47143 #if defined(INCLUDE_PTP) 47144 #ifdef BCM_TOMAHAWK3_SUPPORT 47145 int 47146 bcm_tomahawk3_ptp_telecom_g8265_packet_master_priority_set( 47147 int unit, 47148 bcm_ptp_stack_id_t ptp_id, 47149 int clock_num, 47150 uint16 priority, 47151 bcm_ptp_clock_port_address_t *address) 47152 { 47153 return bcm_esw_ptp_telecom_g8265_packet_master_priority_set(unit, ptp_id, clock_num, priority, address); 47154 } 47155 #endif 47156 #endif 47157 47158 #if defined(INCLUDE_PTP) 47159 #ifdef BCM_TOMAHAWK3_SUPPORT 47160 int 47161 bcm_tomahawk3_ptp_telecom_g8265_packet_master_remove( 47162 int unit, 47163 bcm_ptp_stack_id_t ptp_id, 47164 int clock_num, 47165 int port_num, 47166 bcm_ptp_clock_port_address_t *address) 47167 { 47168 return bcm_esw_ptp_telecom_g8265_packet_master_remove(unit, ptp_id, clock_num, port_num, address); 47169 } 47170 #endif 47171 #endif 47172 47173 #if defined(INCLUDE_PTP) 47174 #ifdef BCM_TOMAHAWK3_SUPPORT 47175 int 47176 bcm_tomahawk3_ptp_telecom_g8265_packet_master_wait_duration_set( 47177 int unit, 47178 bcm_ptp_stack_id_t ptp_id, 47179 int clock_num, 47180 uint64 wait_sec, 47181 bcm_ptp_clock_port_address_t *address) 47182 { 47183 return bcm_esw_ptp_telecom_g8265_packet_master_wait_duration_set(unit, ptp_id, clock_num, wait_sec, address); 47184 } 47185 #endif 47186 #endif 47187 47188 #if defined(INCLUDE_PTP) 47189 #ifdef BCM_TOMAHAWK3_SUPPORT 47190 int 47191 bcm_tomahawk3_ptp_telecom_g8265_pktstats_thresholds_get( 47192 int unit, 47193 bcm_ptp_stack_id_t ptp_id, 47194 int clock_num, 47195 bcm_ptp_telecom_g8265_pktstats_t *thresholds) 47196 { 47197 return bcm_esw_ptp_telecom_g8265_pktstats_thresholds_get(unit, ptp_id, clock_num, thresholds); 47198 } 47199 #endif 47200 #endif 47201 47202 #if defined(INCLUDE_PTP) 47203 #ifdef BCM_TOMAHAWK3_SUPPORT 47204 int 47205 bcm_tomahawk3_ptp_telecom_g8265_pktstats_thresholds_set( 47206 int unit, 47207 bcm_ptp_stack_id_t ptp_id, 47208 int clock_num, 47209 bcm_ptp_telecom_g8265_pktstats_t thresholds) 47210 { 47211 return bcm_esw_ptp_telecom_g8265_pktstats_thresholds_set(unit, ptp_id, clock_num, thresholds); 47212 } 47213 #endif 47214 #endif 47215 47216 #if defined(INCLUDE_PTP) 47217 #ifdef BCM_TOMAHAWK3_SUPPORT 47218 int 47219 bcm_tomahawk3_ptp_telecom_g8265_quality_level_set( 47220 int unit, 47221 bcm_ptp_stack_id_t ptp_id, 47222 int clock_num, 47223 bcm_ptp_telecom_g8265_quality_level_t ql) 47224 { 47225 return bcm_esw_ptp_telecom_g8265_quality_level_set(unit, ptp_id, clock_num, ql); 47226 } 47227 #endif 47228 #endif 47229 47230 #if defined(INCLUDE_PTP) 47231 #ifdef BCM_TOMAHAWK3_SUPPORT 47232 int 47233 bcm_tomahawk3_ptp_telecom_g8265_receipt_timeout_get( 47234 int unit, 47235 bcm_ptp_stack_id_t ptp_id, 47236 int clock_num, 47237 bcm_ptp_message_type_t message_type, 47238 uint32 *receipt_timeout) 47239 { 47240 return bcm_esw_ptp_telecom_g8265_receipt_timeout_get(unit, ptp_id, clock_num, message_type, receipt_timeout); 47241 } 47242 #endif 47243 #endif 47244 47245 #if defined(INCLUDE_PTP) 47246 #ifdef BCM_TOMAHAWK3_SUPPORT 47247 int 47248 bcm_tomahawk3_ptp_telecom_g8265_receipt_timeout_set( 47249 int unit, 47250 bcm_ptp_stack_id_t ptp_id, 47251 int clock_num, 47252 bcm_ptp_message_type_t message_type, 47253 uint32 receipt_timeout) 47254 { 47255 return bcm_esw_ptp_telecom_g8265_receipt_timeout_set(unit, ptp_id, clock_num, message_type, receipt_timeout); 47256 } 47257 #endif 47258 #endif 47259 47260 #if defined(INCLUDE_PTP) 47261 #ifdef BCM_TOMAHAWK3_SUPPORT 47262 int 47263 bcm_tomahawk3_ptp_telecom_g8265_shutdown( 47264 int unit) 47265 { 47266 return bcm_esw_ptp_telecom_g8265_shutdown(unit); 47267 } 47268 #endif 47269 #endif 47270 47271 #if defined(INCLUDE_PTP) 47272 #ifdef BCM_TOMAHAWK3_SUPPORT 47273 int 47274 bcm_tomahawk3_ptp_time_format_set( 47275 int unit, 47276 bcm_ptp_stack_id_t ptp_id, 47277 bcm_ptp_time_type_t type) 47278 { 47279 return bcm_esw_ptp_time_format_set(unit, ptp_id, type); 47280 } 47281 #endif 47282 #endif 47283 47284 #if defined(INCLUDE_PTP) 47285 #ifdef BCM_TOMAHAWK3_SUPPORT 47286 int 47287 bcm_tomahawk3_ptp_timesource_input_status_get( 47288 int unit, 47289 bcm_ptp_stack_id_t ptp_id, 47290 int clock_num, 47291 bcm_ptp_timesource_status_t *status) 47292 { 47293 return bcm_esw_ptp_timesource_input_status_get(unit, ptp_id, clock_num, status); 47294 } 47295 #endif 47296 #endif 47297 47298 #if defined(INCLUDE_PTP) 47299 #ifdef BCM_TOMAHAWK3_SUPPORT 47300 int 47301 bcm_tomahawk3_ptp_tod_input_sources_get( 47302 int unit, 47303 bcm_ptp_stack_id_t ptp_id, 47304 int clock_num, 47305 int *num_tod_sources, 47306 bcm_ptp_tod_input_t *tod_sources) 47307 { 47308 return bcm_esw_ptp_tod_input_sources_get(unit, ptp_id, clock_num, num_tod_sources, tod_sources); 47309 } 47310 #endif 47311 #endif 47312 47313 #if defined(INCLUDE_PTP) 47314 #ifdef BCM_TOMAHAWK3_SUPPORT 47315 int 47316 bcm_tomahawk3_ptp_tod_input_sources_set( 47317 int unit, 47318 bcm_ptp_stack_id_t ptp_id, 47319 int clock_num, 47320 int num_tod_sources, 47321 bcm_ptp_tod_input_t *tod_sources) 47322 { 47323 return bcm_esw_ptp_tod_input_sources_set(unit, ptp_id, clock_num, num_tod_sources, tod_sources); 47324 } 47325 #endif 47326 #endif 47327 47328 #if defined(INCLUDE_PTP) 47329 #ifdef BCM_TOMAHAWK3_SUPPORT 47330 int 47331 bcm_tomahawk3_ptp_tod_output_get( 47332 int unit, 47333 bcm_ptp_stack_id_t ptp_id, 47334 int clock_num, 47335 int *tod_output_count, 47336 bcm_ptp_tod_output_t *tod_output) 47337 { 47338 return bcm_esw_ptp_tod_output_get(unit, ptp_id, clock_num, tod_output_count, tod_output); 47339 } 47340 #endif 47341 #endif 47342 47343 #if defined(INCLUDE_PTP) 47344 #ifdef BCM_TOMAHAWK3_SUPPORT 47345 int 47346 bcm_tomahawk3_ptp_tod_output_remove( 47347 int unit, 47348 bcm_ptp_stack_id_t ptp_id, 47349 int clock_num, 47350 int tod_output_id) 47351 { 47352 return bcm_esw_ptp_tod_output_remove(unit, ptp_id, clock_num, tod_output_id); 47353 } 47354 #endif 47355 #endif 47356 47357 #if defined(INCLUDE_PTP) 47358 #ifdef BCM_TOMAHAWK3_SUPPORT 47359 int 47360 bcm_tomahawk3_ptp_tod_output_set( 47361 int unit, 47362 bcm_ptp_stack_id_t ptp_id, 47363 int clock_num, 47364 int *tod_output_id, 47365 bcm_ptp_tod_output_t *output_info) 47366 { 47367 return bcm_esw_ptp_tod_output_set(unit, ptp_id, clock_num, tod_output_id, output_info); 47368 } 47369 #endif 47370 #endif 47371 47372 #if defined(INCLUDE_PTP) 47373 #ifdef BCM_TOMAHAWK3_SUPPORT 47374 int 47375 bcm_tomahawk3_ptp_transparent_clock_default_dataset_get( 47376 int unit, 47377 bcm_ptp_stack_id_t ptp_id, 47378 int clock_num, 47379 bcm_ptp_transparent_clock_default_dataset_t *data_set) 47380 { 47381 return bcm_esw_ptp_transparent_clock_default_dataset_get(unit, ptp_id, clock_num, data_set); 47382 } 47383 #endif 47384 #endif 47385 47386 #if defined(INCLUDE_PTP) 47387 #ifdef BCM_TOMAHAWK3_SUPPORT 47388 int 47389 bcm_tomahawk3_ptp_transparent_clock_port_dataset_get( 47390 int unit, 47391 bcm_ptp_stack_id_t ptp_id, 47392 int clock_num, 47393 uint16 clock_port, 47394 bcm_ptp_transparent_clock_port_dataset_t *data_set) 47395 { 47396 return bcm_esw_ptp_transparent_clock_port_dataset_get(unit, ptp_id, clock_num, clock_port, data_set); 47397 } 47398 #endif 47399 #endif 47400 47401 #if defined(INCLUDE_PTP) 47402 #ifdef BCM_TOMAHAWK3_SUPPORT 47403 int 47404 bcm_tomahawk3_ptp_unicast_request_duration_get( 47405 int unit, 47406 bcm_ptp_stack_id_t ptp_id, 47407 int clock_num, 47408 int port_num, 47409 uint32 *duration) 47410 { 47411 return bcm_esw_ptp_unicast_request_duration_get(unit, ptp_id, clock_num, port_num, duration); 47412 } 47413 #endif 47414 #endif 47415 47416 #if defined(INCLUDE_PTP) 47417 #ifdef BCM_TOMAHAWK3_SUPPORT 47418 int 47419 bcm_tomahawk3_ptp_unicast_request_duration_max_get( 47420 int unit, 47421 bcm_ptp_stack_id_t ptp_id, 47422 int clock_num, 47423 int port_num, 47424 uint32 *duration_max) 47425 { 47426 return bcm_esw_ptp_unicast_request_duration_max_get(unit, ptp_id, clock_num, port_num, duration_max); 47427 } 47428 #endif 47429 #endif 47430 47431 #if defined(INCLUDE_PTP) 47432 #ifdef BCM_TOMAHAWK3_SUPPORT 47433 int 47434 bcm_tomahawk3_ptp_unicast_request_duration_max_set( 47435 int unit, 47436 bcm_ptp_stack_id_t ptp_id, 47437 int clock_num, 47438 int port_num, 47439 uint32 duration_max) 47440 { 47441 return bcm_esw_ptp_unicast_request_duration_max_set(unit, ptp_id, clock_num, port_num, duration_max); 47442 } 47443 #endif 47444 #endif 47445 47446 #if defined(INCLUDE_PTP) 47447 #ifdef BCM_TOMAHAWK3_SUPPORT 47448 int 47449 bcm_tomahawk3_ptp_unicast_request_duration_min_get( 47450 int unit, 47451 bcm_ptp_stack_id_t ptp_id, 47452 int clock_num, 47453 int port_num, 47454 uint32 *duration_min) 47455 { 47456 return bcm_esw_ptp_unicast_request_duration_min_get(unit, ptp_id, clock_num, port_num, duration_min); 47457 } 47458 #endif 47459 #endif 47460 47461 #if defined(INCLUDE_PTP) 47462 #ifdef BCM_TOMAHAWK3_SUPPORT 47463 int 47464 bcm_tomahawk3_ptp_unicast_request_duration_min_set( 47465 int unit, 47466 bcm_ptp_stack_id_t ptp_id, 47467 int clock_num, 47468 int port_num, 47469 uint32 duration_min) 47470 { 47471 return bcm_esw_ptp_unicast_request_duration_min_set(unit, ptp_id, clock_num, port_num, duration_min); 47472 } 47473 #endif 47474 #endif 47475 47476 #if defined(INCLUDE_PTP) 47477 #ifdef BCM_TOMAHAWK3_SUPPORT 47478 int 47479 bcm_tomahawk3_ptp_unicast_request_duration_set( 47480 int unit, 47481 bcm_ptp_stack_id_t ptp_id, 47482 int clock_num, 47483 int port_num, 47484 uint32 duration) 47485 { 47486 return bcm_esw_ptp_unicast_request_duration_set(unit, ptp_id, clock_num, port_num, duration); 47487 } 47488 #endif 47489 #endif 47490 47491 int 47492 bcm_tomahawk3_qos_control_get( 47493 int unit, 47494 bcm_qos_control_type_t type, 47495 int *arg) 47496 { 47497 return BCM_E_UNAVAIL; 47498 } 47499 47500 int 47501 bcm_tomahawk3_qos_control_set( 47502 int unit, 47503 bcm_qos_control_type_t type, 47504 int arg) 47505 { 47506 return BCM_E_UNAVAIL; 47507 } 47508 47509 #ifdef BCM_TOMAHAWK3_SUPPORT 47510 int 47511 bcm_tomahawk3_qos_detach( 47512 int unit) 47513 { 47514 return bcm_esw_qos_detach(unit); 47515 } 47516 #endif 47517 47518 #ifdef BCM_TOMAHAWK3_SUPPORT 47519 int 47520 bcm_tomahawk3_qos_init( 47521 int unit) 47522 { 47523 return bcm_esw_qos_init(unit); 47524 } 47525 #endif 47526 47527 #ifdef BCM_TOMAHAWK3_SUPPORT 47528 int 47529 bcm_tomahawk3_qos_map_add( 47530 int unit, 47531 uint32 flags, 47532 bcm_qos_map_t *map, 47533 int map_id) 47534 { 47535 return bcm_esw_qos_map_add(unit, flags, map, map_id); 47536 } 47537 #endif 47538 47539 int 47540 bcm_tomahawk3_qos_map_control_get( 47541 int unit, 47542 uint32 map_id, 47543 uint32 flags, 47544 bcm_qos_map_control_type_t type, 47545 uint64 *arg) 47546 { 47547 return BCM_E_UNAVAIL; 47548 } 47549 47550 int 47551 bcm_tomahawk3_qos_map_control_set( 47552 int unit, 47553 uint32 map_id, 47554 uint32 flags, 47555 bcm_qos_map_control_type_t type, 47556 uint64 arg) 47557 { 47558 return BCM_E_UNAVAIL; 47559 } 47560 47561 #ifdef BCM_TOMAHAWK3_SUPPORT 47562 int 47563 bcm_tomahawk3_qos_map_create( 47564 int unit, 47565 uint32 flags, 47566 int *map_id) 47567 { 47568 return bcm_esw_qos_map_create(unit, flags, map_id); 47569 } 47570 #endif 47571 47572 #ifdef BCM_TOMAHAWK3_SUPPORT 47573 int 47574 bcm_tomahawk3_qos_map_delete( 47575 int unit, 47576 uint32 flags, 47577 bcm_qos_map_t *map, 47578 int map_id) 47579 { 47580 return bcm_esw_qos_map_delete(unit, flags, map, map_id); 47581 } 47582 #endif 47583 47584 #ifdef BCM_TOMAHAWK3_SUPPORT 47585 int 47586 bcm_tomahawk3_qos_map_destroy( 47587 int unit, 47588 int map_id) 47589 { 47590 return bcm_esw_qos_map_destroy(unit, map_id); 47591 } 47592 #endif 47593 47594 int 47595 bcm_tomahawk3_qos_map_id_get_by_profile( 47596 int unit, 47597 uint32 flags, 47598 int profile, 47599 int *map_id) 47600 { 47601 return BCM_E_UNAVAIL; 47602 } 47603 47604 #ifdef BCM_TOMAHAWK3_SUPPORT 47605 int 47606 bcm_tomahawk3_qos_map_multi_get( 47607 int unit, 47608 uint32 flags, 47609 int map_id, 47610 int array_size, 47611 bcm_qos_map_t *array, 47612 int *array_count) 47613 { 47614 return bcm_esw_qos_map_multi_get(unit, flags, map_id, array_size, array, array_count); 47615 } 47616 #endif 47617 47618 #ifdef BCM_TOMAHAWK3_SUPPORT 47619 int 47620 bcm_tomahawk3_qos_multi_get( 47621 int unit, 47622 int array_size, 47623 int *map_ids_array, 47624 int *flags_array, 47625 int *array_count) 47626 { 47627 return bcm_esw_qos_multi_get(unit, array_size, map_ids_array, flags_array, array_count); 47628 } 47629 #endif 47630 47631 #ifdef BCM_TOMAHAWK3_SUPPORT 47632 int 47633 bcm_tomahawk3_qos_port_map_get( 47634 int unit, 47635 bcm_gport_t port, 47636 int *ing_map, 47637 int *egr_map) 47638 { 47639 return bcm_esw_qos_port_map_get(unit, port, ing_map, egr_map); 47640 } 47641 #endif 47642 47643 #ifdef BCM_TOMAHAWK3_SUPPORT 47644 int 47645 bcm_tomahawk3_qos_port_map_set( 47646 int unit, 47647 bcm_gport_t port, 47648 int ing_map, 47649 int egr_map) 47650 { 47651 return bcm_esw_qos_port_map_set(unit, port, ing_map, egr_map); 47652 } 47653 #endif 47654 47655 #ifdef BCM_TOMAHAWK3_SUPPORT 47656 int 47657 bcm_tomahawk3_qos_port_map_type_get( 47658 int unit, 47659 bcm_gport_t port, 47660 uint32 flags, 47661 int *map_id) 47662 { 47663 return bcm_esw_qos_port_map_type_get(unit, port, flags, map_id); 47664 } 47665 #endif 47666 47667 #ifdef BCM_TOMAHAWK3_SUPPORT 47668 int 47669 bcm_tomahawk3_qos_port_vlan_map_get( 47670 int unit, 47671 bcm_port_t port, 47672 bcm_vlan_t vid, 47673 int *ing_map, 47674 int *egr_map) 47675 { 47676 return bcm_esw_qos_port_vlan_map_get(unit, port, vid, ing_map, egr_map); 47677 } 47678 #endif 47679 47680 #ifdef BCM_TOMAHAWK3_SUPPORT 47681 int 47682 bcm_tomahawk3_qos_port_vlan_map_set( 47683 int unit, 47684 bcm_port_t port, 47685 bcm_vlan_t vid, 47686 int ing_map, 47687 int egr_map) 47688 { 47689 return bcm_esw_qos_port_vlan_map_set(unit, port, vid, ing_map, egr_map); 47690 } 47691 #endif 47692 47693 #ifdef BCM_TOMAHAWK3_SUPPORT 47694 int 47695 bcm_tomahawk3_range_create( 47696 int unit, 47697 int flags, 47698 bcm_range_config_t *range_cfg) 47699 { 47700 return bcm_esw_range_create(unit, flags, range_cfg); 47701 } 47702 #endif 47703 47704 #ifdef BCM_TOMAHAWK3_SUPPORT 47705 int 47706 bcm_tomahawk3_range_destroy( 47707 int unit, 47708 bcm_range_t rid) 47709 { 47710 return bcm_esw_range_destroy(unit, rid); 47711 } 47712 #endif 47713 47714 #ifdef BCM_TOMAHAWK3_SUPPORT 47715 int 47716 bcm_tomahawk3_range_get( 47717 int unit, 47718 bcm_range_config_t *range_cfg) 47719 { 47720 return bcm_esw_range_get(unit, range_cfg); 47721 } 47722 #endif 47723 47724 #ifdef BCM_TOMAHAWK3_SUPPORT 47725 int 47726 bcm_tomahawk3_range_group_create( 47727 int unit, 47728 bcm_range_group_config_t *range_group_config) 47729 { 47730 return bcm_esw_range_group_create(unit, range_group_config); 47731 } 47732 #endif 47733 47734 #ifdef BCM_TOMAHAWK3_SUPPORT 47735 int 47736 bcm_tomahawk3_range_group_delete( 47737 int unit, 47738 bcm_range_group_config_t *range_group_config) 47739 { 47740 return bcm_esw_range_group_delete(unit, range_group_config); 47741 } 47742 #endif 47743 47744 #ifdef BCM_TOMAHAWK3_SUPPORT 47745 int 47746 bcm_tomahawk3_range_group_get( 47747 int unit, 47748 bcm_range_group_config_t *range_group_config) 47749 { 47750 return bcm_esw_range_group_get(unit, range_group_config); 47751 } 47752 #endif 47753 47754 #ifdef BCM_TOMAHAWK3_SUPPORT 47755 int 47756 bcm_tomahawk3_range_group_update( 47757 int unit, 47758 bcm_range_group_config_t *range_group_config) 47759 { 47760 return bcm_esw_range_group_update(unit, range_group_config); 47761 } 47762 #endif 47763 47764 #ifdef BCM_TOMAHAWK3_SUPPORT 47765 int 47766 bcm_tomahawk3_range_oper_mode_get( 47767 int unit, 47768 bcm_range_oper_mode_t *oper_mode) 47769 { 47770 return bcm_esw_range_oper_mode_get(unit, oper_mode); 47771 } 47772 #endif 47773 47774 #ifdef BCM_TOMAHAWK3_SUPPORT 47775 int 47776 bcm_tomahawk3_range_oper_mode_set( 47777 int unit, 47778 bcm_range_oper_mode_t oper_mode) 47779 { 47780 return bcm_esw_range_oper_mode_set(unit, oper_mode); 47781 } 47782 #endif 47783 47784 #ifdef BCM_TOMAHAWK3_SUPPORT 47785 int 47786 bcm_tomahawk3_range_traverse( 47787 int unit, 47788 bcm_range_traverse_cb callback, 47789 void *user_data) 47790 { 47791 return bcm_esw_range_traverse(unit, callback, user_data); 47792 } 47793 #endif 47794 47795 #ifdef BCM_TOMAHAWK3_SUPPORT 47796 int 47797 bcm_tomahawk3_rate_bandwidth_get( 47798 int unit, 47799 bcm_port_t port, 47800 int flags, 47801 uint32 *kbits_sec, 47802 uint32 *kbits_burst) 47803 { 47804 return bcm_esw_rate_bandwidth_get(unit, port, flags, kbits_sec, kbits_burst); 47805 } 47806 #endif 47807 47808 #ifdef BCM_TOMAHAWK3_SUPPORT 47809 int 47810 bcm_tomahawk3_rate_bandwidth_set( 47811 int unit, 47812 bcm_port_t port, 47813 int flags, 47814 uint32 kbits_sec, 47815 uint32 kbits_burst) 47816 { 47817 return bcm_esw_rate_bandwidth_set(unit, port, flags, kbits_sec, kbits_burst); 47818 } 47819 #endif 47820 47821 #ifdef BCM_TOMAHAWK3_SUPPORT 47822 int 47823 bcm_tomahawk3_rate_bcast_get( 47824 int unit, 47825 int *pps, 47826 int *flags, 47827 int port) 47828 { 47829 return bcm_esw_rate_bcast_get(unit, pps, flags, port); 47830 } 47831 #endif 47832 47833 #ifdef BCM_TOMAHAWK3_SUPPORT 47834 int 47835 bcm_tomahawk3_rate_bcast_set( 47836 int unit, 47837 int pps, 47838 int flags, 47839 int port) 47840 { 47841 return bcm_esw_rate_bcast_set(unit, pps, flags, port); 47842 } 47843 #endif 47844 47845 #ifdef BCM_TOMAHAWK3_SUPPORT 47846 int 47847 bcm_tomahawk3_rate_dlfbc_get( 47848 int unit, 47849 int *pps, 47850 int *flags, 47851 int port) 47852 { 47853 return bcm_esw_rate_dlfbc_get(unit, pps, flags, port); 47854 } 47855 #endif 47856 47857 #ifdef BCM_TOMAHAWK3_SUPPORT 47858 int 47859 bcm_tomahawk3_rate_dlfbc_set( 47860 int unit, 47861 int pps, 47862 int flags, 47863 int port) 47864 { 47865 return bcm_esw_rate_dlfbc_set(unit, pps, flags, port); 47866 } 47867 #endif 47868 47869 #ifdef BCM_TOMAHAWK3_SUPPORT 47870 int 47871 bcm_tomahawk3_rate_get( 47872 int unit, 47873 int *pps, 47874 int *flags) 47875 { 47876 return bcm_esw_rate_get(unit, pps, flags); 47877 } 47878 #endif 47879 47880 #ifdef BCM_TOMAHAWK3_SUPPORT 47881 int 47882 bcm_tomahawk3_rate_mcast_get( 47883 int unit, 47884 int *pps, 47885 int *flags, 47886 int port) 47887 { 47888 return bcm_esw_rate_mcast_get(unit, pps, flags, port); 47889 } 47890 #endif 47891 47892 #ifdef BCM_TOMAHAWK3_SUPPORT 47893 int 47894 bcm_tomahawk3_rate_mcast_set( 47895 int unit, 47896 int pps, 47897 int flags, 47898 int port) 47899 { 47900 return bcm_esw_rate_mcast_set(unit, pps, flags, port); 47901 } 47902 #endif 47903 47904 #ifdef BCM_TOMAHAWK3_SUPPORT 47905 int 47906 bcm_tomahawk3_rate_packet_get( 47907 int unit, 47908 bcm_port_t port, 47909 bcm_rate_packet_t *pkt_rate) 47910 { 47911 return bcm_esw_rate_packet_get(unit, port, pkt_rate); 47912 } 47913 #endif 47914 47915 #ifdef BCM_TOMAHAWK3_SUPPORT 47916 int 47917 bcm_tomahawk3_rate_packet_set( 47918 int unit, 47919 bcm_port_t port, 47920 bcm_rate_packet_t *pkt_rate) 47921 { 47922 return bcm_esw_rate_packet_set(unit, port, pkt_rate); 47923 } 47924 #endif 47925 47926 #ifdef BCM_TOMAHAWK3_SUPPORT 47927 int 47928 bcm_tomahawk3_rate_set( 47929 int unit, 47930 int pps, 47931 int flags) 47932 { 47933 return bcm_esw_rate_set(unit, pps, flags); 47934 } 47935 #endif 47936 47937 #ifdef BCM_TOMAHAWK3_SUPPORT 47938 int 47939 bcm_tomahawk3_rate_type_get( 47940 int unit, 47941 bcm_rate_limit_t *rl) 47942 { 47943 return bcm_esw_rate_type_get(unit, rl); 47944 } 47945 #endif 47946 47947 #ifdef BCM_TOMAHAWK3_SUPPORT 47948 int 47949 bcm_tomahawk3_rate_type_set( 47950 int unit, 47951 bcm_rate_limit_t *rl) 47952 { 47953 return bcm_esw_rate_type_set(unit, rl); 47954 } 47955 #endif 47956 47957 #if defined(INCLUDE_REGEX) 47958 #ifdef BCM_TOMAHAWK3_SUPPORT 47959 int 47960 bcm_tomahawk3_regex_config_get( 47961 int unit, 47962 bcm_regex_config_t *config) 47963 { 47964 return bcm_esw_regex_config_get(unit, config); 47965 } 47966 #endif 47967 #endif 47968 47969 #if defined(INCLUDE_REGEX) 47970 #ifdef BCM_TOMAHAWK3_SUPPORT 47971 int 47972 bcm_tomahawk3_regex_config_set( 47973 int unit, 47974 bcm_regex_config_t *config) 47975 { 47976 return bcm_esw_regex_config_set(unit, config); 47977 } 47978 #endif 47979 #endif 47980 47981 #if defined(INCLUDE_REGEX) 47982 #ifdef BCM_TOMAHAWK3_SUPPORT 47983 int 47984 bcm_tomahawk3_regex_engine_create( 47985 int unit, 47986 bcm_regex_engine_config_t *config, 47987 bcm_regex_engine_t *engid) 47988 { 47989 return bcm_esw_regex_engine_create(unit, config, engid); 47990 } 47991 #endif 47992 #endif 47993 47994 #if defined(INCLUDE_REGEX) 47995 #ifdef BCM_TOMAHAWK3_SUPPORT 47996 int 47997 bcm_tomahawk3_regex_engine_destroy( 47998 int unit, 47999 bcm_regex_engine_t engid) 48000 { 48001 return bcm_esw_regex_engine_destroy(unit, engid); 48002 } 48003 #endif 48004 #endif 48005 48006 #if defined(INCLUDE_REGEX) 48007 #ifdef BCM_TOMAHAWK3_SUPPORT 48008 int 48009 bcm_tomahawk3_regex_engine_get( 48010 int unit, 48011 bcm_regex_engine_t engid, 48012 bcm_regex_engine_config_t *config) 48013 { 48014 return bcm_esw_regex_engine_get(unit, engid, config); 48015 } 48016 #endif 48017 #endif 48018 48019 #if defined(INCLUDE_REGEX) 48020 #ifdef BCM_TOMAHAWK3_SUPPORT 48021 int 48022 bcm_tomahawk3_regex_engine_info_get( 48023 int unit, 48024 int engine_id, 48025 bcm_regex_engine_info_t *regex_engine_info) 48026 { 48027 return bcm_esw_regex_engine_info_get(unit, engine_id, regex_engine_info); 48028 } 48029 #endif 48030 #endif 48031 48032 #if defined(INCLUDE_REGEX) 48033 #ifdef BCM_TOMAHAWK3_SUPPORT 48034 int 48035 bcm_tomahawk3_regex_engine_traverse( 48036 int unit, 48037 bcm_regex_engine_traverse_cb cb, 48038 void *user_data) 48039 { 48040 return bcm_esw_regex_engine_traverse(unit, cb, user_data); 48041 } 48042 #endif 48043 #endif 48044 48045 #if defined(INCLUDE_REGEX) 48046 #ifdef BCM_TOMAHAWK3_SUPPORT 48047 int 48048 bcm_tomahawk3_regex_exclude_add( 48049 int unit, 48050 uint8 protocol, 48051 uint16 l4_start, 48052 uint16 l4_end) 48053 { 48054 return bcm_esw_regex_exclude_add(unit, protocol, l4_start, l4_end); 48055 } 48056 #endif 48057 #endif 48058 48059 #if defined(INCLUDE_REGEX) 48060 #ifdef BCM_TOMAHAWK3_SUPPORT 48061 int 48062 bcm_tomahawk3_regex_exclude_delete( 48063 int unit, 48064 uint8 protocol, 48065 uint16 l4_start, 48066 uint16 l4_end) 48067 { 48068 return bcm_esw_regex_exclude_delete(unit, protocol, l4_start, l4_end); 48069 } 48070 #endif 48071 #endif 48072 48073 #if defined(INCLUDE_REGEX) 48074 #ifdef BCM_TOMAHAWK3_SUPPORT 48075 int 48076 bcm_tomahawk3_regex_exclude_delete_all( 48077 int unit) 48078 { 48079 return bcm_esw_regex_exclude_delete_all(unit); 48080 } 48081 #endif 48082 #endif 48083 48084 #if defined(INCLUDE_REGEX) 48085 #ifdef BCM_TOMAHAWK3_SUPPORT 48086 int 48087 bcm_tomahawk3_regex_exclude_get( 48088 int unit, 48089 int array_size, 48090 uint8 *protocol, 48091 uint16 *l4low, 48092 uint16 *l4high, 48093 int *array_count) 48094 { 48095 return bcm_esw_regex_exclude_get(unit, array_size, protocol, l4low, l4high, array_count); 48096 } 48097 #endif 48098 #endif 48099 48100 #if defined(INCLUDE_REGEX) 48101 #ifdef BCM_TOMAHAWK3_SUPPORT 48102 int 48103 bcm_tomahawk3_regex_get_match_id( 48104 int unit, 48105 int signature_id, 48106 int *match_id) 48107 { 48108 return bcm_esw_regex_get_match_id(unit, signature_id, match_id); 48109 } 48110 #endif 48111 #endif 48112 48113 #if defined(INCLUDE_REGEX) 48114 #ifdef BCM_TOMAHAWK3_SUPPORT 48115 int 48116 bcm_tomahawk3_regex_get_sig_id( 48117 int unit, 48118 int match_id, 48119 int *signature_id) 48120 { 48121 return bcm_esw_regex_get_sig_id(unit, match_id, signature_id); 48122 } 48123 #endif 48124 #endif 48125 48126 #if defined(INCLUDE_REGEX) 48127 #ifdef BCM_TOMAHAWK3_SUPPORT 48128 int 48129 bcm_tomahawk3_regex_info_get( 48130 int unit, 48131 bcm_regex_info_t *regex_info) 48132 { 48133 return bcm_esw_regex_info_get(unit, regex_info); 48134 } 48135 #endif 48136 #endif 48137 48138 #if defined(INCLUDE_REGEX) 48139 #ifdef BCM_TOMAHAWK3_SUPPORT 48140 int 48141 bcm_tomahawk3_regex_init( 48142 int unit) 48143 { 48144 return bcm_esw_regex_init(unit); 48145 } 48146 #endif 48147 #endif 48148 48149 #if defined(INCLUDE_REGEX) 48150 #ifdef BCM_TOMAHAWK3_SUPPORT 48151 int 48152 bcm_tomahawk3_regex_match_check( 48153 int unit, 48154 bcm_regex_match_t *matches, 48155 int count, 48156 int *metric) 48157 { 48158 return bcm_esw_regex_match_check(unit, matches, count, metric); 48159 } 48160 #endif 48161 #endif 48162 48163 #if defined(INCLUDE_REGEX) 48164 #ifdef BCM_TOMAHAWK3_SUPPORT 48165 int 48166 bcm_tomahawk3_regex_match_set( 48167 int unit, 48168 bcm_regex_engine_t engid, 48169 bcm_regex_match_t *matches, 48170 int count) 48171 { 48172 return bcm_esw_regex_match_set(unit, engid, matches, count); 48173 } 48174 #endif 48175 #endif 48176 48177 #if defined(INCLUDE_REGEX) 48178 #ifdef BCM_TOMAHAWK3_SUPPORT 48179 int 48180 bcm_tomahawk3_regex_policy_action_add( 48181 int unit, 48182 bcm_regex_policy_t policy, 48183 bcm_field_action_t action, 48184 uint32 param0, 48185 uint32 param1) 48186 { 48187 return bcm_esw_regex_policy_action_add(unit, policy, action, param0, param1); 48188 } 48189 #endif 48190 #endif 48191 48192 #if defined(INCLUDE_REGEX) 48193 #ifdef BCM_TOMAHAWK3_SUPPORT 48194 int 48195 bcm_tomahawk3_regex_policy_action_delete( 48196 int unit, 48197 bcm_regex_policy_t policy, 48198 bcm_field_action_t action, 48199 uint32 param0, 48200 uint32 param1) 48201 { 48202 return bcm_esw_regex_policy_action_delete(unit, policy, action, param0, param1); 48203 } 48204 #endif 48205 #endif 48206 48207 #if defined(INCLUDE_REGEX) 48208 #ifdef BCM_TOMAHAWK3_SUPPORT 48209 int 48210 bcm_tomahawk3_regex_policy_action_get( 48211 int unit, 48212 bcm_regex_policy_t policy, 48213 bcm_field_action_t action, 48214 uint32 *param0, 48215 uint32 *param1) 48216 { 48217 return bcm_esw_regex_policy_action_get(unit, policy, action, param0, param1); 48218 } 48219 #endif 48220 #endif 48221 48222 #if defined(INCLUDE_REGEX) 48223 #ifdef BCM_TOMAHAWK3_SUPPORT 48224 int 48225 bcm_tomahawk3_regex_policy_action_mac_add( 48226 int unit, 48227 bcm_regex_policy_t policy, 48228 bcm_field_action_t action, 48229 bcm_mac_t mac) 48230 { 48231 return bcm_esw_regex_policy_action_mac_add(unit, policy, action, mac); 48232 } 48233 #endif 48234 #endif 48235 48236 #if defined(INCLUDE_REGEX) 48237 #ifdef BCM_TOMAHAWK3_SUPPORT 48238 int 48239 bcm_tomahawk3_regex_policy_action_mac_get( 48240 int unit, 48241 bcm_regex_policy_t policy, 48242 bcm_field_action_t action, 48243 bcm_mac_t *mac) 48244 { 48245 return bcm_esw_regex_policy_action_mac_get(unit, policy, action, mac); 48246 } 48247 #endif 48248 #endif 48249 48250 #if defined(INCLUDE_REGEX) 48251 #ifdef BCM_TOMAHAWK3_SUPPORT 48252 int 48253 bcm_tomahawk3_regex_policy_action_ports_add( 48254 int unit, 48255 bcm_regex_policy_t policy, 48256 bcm_field_action_t action, 48257 bcm_pbmp_t pbmp) 48258 { 48259 return bcm_esw_regex_policy_action_ports_add(unit, policy, action, pbmp); 48260 } 48261 #endif 48262 #endif 48263 48264 #if defined(INCLUDE_REGEX) 48265 #ifdef BCM_TOMAHAWK3_SUPPORT 48266 int 48267 bcm_tomahawk3_regex_policy_action_ports_get( 48268 int unit, 48269 bcm_regex_policy_t policy, 48270 bcm_field_action_t action, 48271 bcm_pbmp_t *pbmp) 48272 { 48273 return bcm_esw_regex_policy_action_ports_get(unit, policy, action, pbmp); 48274 } 48275 #endif 48276 #endif 48277 48278 #if defined(INCLUDE_REGEX) 48279 #ifdef BCM_TOMAHAWK3_SUPPORT 48280 int 48281 bcm_tomahawk3_regex_policy_action_remove( 48282 int unit, 48283 bcm_regex_policy_t policy, 48284 bcm_field_action_t action) 48285 { 48286 return bcm_esw_regex_policy_action_remove(unit, policy, action); 48287 } 48288 #endif 48289 #endif 48290 48291 #if defined(INCLUDE_REGEX) 48292 #ifdef BCM_TOMAHAWK3_SUPPORT 48293 int 48294 bcm_tomahawk3_regex_policy_action_remove_all( 48295 int unit, 48296 bcm_regex_policy_t policy) 48297 { 48298 return bcm_esw_regex_policy_action_remove_all(unit, policy); 48299 } 48300 #endif 48301 #endif 48302 48303 #if defined(INCLUDE_REGEX) 48304 #ifdef BCM_TOMAHAWK3_SUPPORT 48305 int 48306 bcm_tomahawk3_regex_policy_create( 48307 int unit, 48308 int flags, 48309 bcm_regex_policy_t *policy) 48310 { 48311 return bcm_esw_regex_policy_create(unit, flags, policy); 48312 } 48313 #endif 48314 #endif 48315 48316 #if defined(INCLUDE_REGEX) 48317 #ifdef BCM_TOMAHAWK3_SUPPORT 48318 int 48319 bcm_tomahawk3_regex_policy_destroy( 48320 int unit, 48321 bcm_regex_policy_t policy) 48322 { 48323 return bcm_esw_regex_policy_destroy(unit, policy); 48324 } 48325 #endif 48326 #endif 48327 48328 #if defined(INCLUDE_REGEX) 48329 #ifdef BCM_TOMAHAWK3_SUPPORT 48330 int 48331 bcm_tomahawk3_regex_policy_destroy_all( 48332 int unit) 48333 { 48334 return bcm_esw_regex_policy_destroy_all(unit); 48335 } 48336 #endif 48337 #endif 48338 48339 #if defined(INCLUDE_REGEX) 48340 #ifdef BCM_TOMAHAWK3_SUPPORT 48341 int 48342 bcm_tomahawk3_regex_policy_install( 48343 int unit, 48344 bcm_regex_policy_t policy) 48345 { 48346 return bcm_esw_regex_policy_install(unit, policy); 48347 } 48348 #endif 48349 #endif 48350 48351 #if defined(INCLUDE_REGEX) 48352 #ifdef BCM_TOMAHAWK3_SUPPORT 48353 int 48354 bcm_tomahawk3_regex_policy_policer_attach( 48355 int unit, 48356 bcm_regex_policy_t policy, 48357 int level, 48358 bcm_policer_t policer_id) 48359 { 48360 return bcm_esw_regex_policy_policer_attach(unit, policy, level, policer_id); 48361 } 48362 #endif 48363 #endif 48364 48365 #if defined(INCLUDE_REGEX) 48366 #ifdef BCM_TOMAHAWK3_SUPPORT 48367 int 48368 bcm_tomahawk3_regex_policy_policer_detach( 48369 int unit, 48370 bcm_regex_policy_t policy, 48371 int level) 48372 { 48373 return bcm_esw_regex_policy_policer_detach(unit, policy, level); 48374 } 48375 #endif 48376 #endif 48377 48378 #if defined(INCLUDE_REGEX) 48379 #ifdef BCM_TOMAHAWK3_SUPPORT 48380 int 48381 bcm_tomahawk3_regex_policy_policer_detach_all( 48382 int unit, 48383 bcm_regex_policy_t policy) 48384 { 48385 return bcm_esw_regex_policy_policer_detach_all(unit, policy); 48386 } 48387 #endif 48388 #endif 48389 48390 #if defined(INCLUDE_REGEX) 48391 #ifdef BCM_TOMAHAWK3_SUPPORT 48392 int 48393 bcm_tomahawk3_regex_policy_policer_get( 48394 int unit, 48395 bcm_regex_policy_t policy, 48396 int level, 48397 bcm_policer_t *policer_id) 48398 { 48399 return bcm_esw_regex_policy_policer_get(unit, policy, level, policer_id); 48400 } 48401 #endif 48402 #endif 48403 48404 #if defined(INCLUDE_REGEX) 48405 #ifdef BCM_TOMAHAWK3_SUPPORT 48406 int 48407 bcm_tomahawk3_regex_policy_remove( 48408 int unit, 48409 bcm_regex_policy_t policy) 48410 { 48411 return bcm_esw_regex_policy_remove(unit, policy); 48412 } 48413 #endif 48414 #endif 48415 48416 #if defined(INCLUDE_REGEX) 48417 #ifdef BCM_TOMAHAWK3_SUPPORT 48418 int 48419 bcm_tomahawk3_regex_policy_stat_attach( 48420 int unit, 48421 bcm_regex_policy_t policy, 48422 int stat_id) 48423 { 48424 return bcm_esw_regex_policy_stat_attach(unit, policy, stat_id); 48425 } 48426 #endif 48427 #endif 48428 48429 #if defined(INCLUDE_REGEX) 48430 #ifdef BCM_TOMAHAWK3_SUPPORT 48431 int 48432 bcm_tomahawk3_regex_policy_stat_detach( 48433 int unit, 48434 bcm_regex_policy_t policy, 48435 int stat_id) 48436 { 48437 return bcm_esw_regex_policy_stat_detach(unit, policy, stat_id); 48438 } 48439 #endif 48440 #endif 48441 48442 #if defined(INCLUDE_REGEX) 48443 #ifdef BCM_TOMAHAWK3_SUPPORT 48444 int 48445 bcm_tomahawk3_regex_policy_stat_get( 48446 int unit, 48447 bcm_regex_policy_t policy, 48448 int *stat_id) 48449 { 48450 return bcm_esw_regex_policy_stat_get(unit, policy, stat_id); 48451 } 48452 #endif 48453 #endif 48454 48455 #if defined(INCLUDE_REGEX) 48456 #ifdef BCM_TOMAHAWK3_SUPPORT 48457 int 48458 bcm_tomahawk3_regex_report_register( 48459 int unit, 48460 uint32 reports, 48461 bcm_regex_report_cb callback, 48462 void *user_data) 48463 { 48464 return bcm_esw_regex_report_register(unit, reports, callback, user_data); 48465 } 48466 #endif 48467 #endif 48468 48469 #if defined(INCLUDE_REGEX) 48470 #ifdef BCM_TOMAHAWK3_SUPPORT 48471 int 48472 bcm_tomahawk3_regex_report_unregister( 48473 int unit, 48474 uint32 reports, 48475 bcm_regex_report_cb callback, 48476 void *user_data) 48477 { 48478 return bcm_esw_regex_report_unregister(unit, reports, callback, user_data); 48479 } 48480 #endif 48481 #endif 48482 48483 #if defined(INCLUDE_REGEX) 48484 #ifdef BCM_TOMAHAWK3_SUPPORT 48485 int 48486 bcm_tomahawk3_regex_session_add( 48487 int unit, 48488 int flags, 48489 bcm_regex_session_key_t *key, 48490 bcm_regex_session_t *session) 48491 { 48492 return bcm_esw_regex_session_add(unit, flags, key, session); 48493 } 48494 #endif 48495 #endif 48496 48497 #if defined(INCLUDE_REGEX) 48498 #ifdef BCM_TOMAHAWK3_SUPPORT 48499 int 48500 bcm_tomahawk3_regex_session_delete( 48501 int unit, 48502 bcm_regex_session_key_t *key) 48503 { 48504 return bcm_esw_regex_session_delete(unit, key); 48505 } 48506 #endif 48507 #endif 48508 48509 #if defined(INCLUDE_REGEX) 48510 #ifdef BCM_TOMAHAWK3_SUPPORT 48511 int 48512 bcm_tomahawk3_regex_session_delete_all( 48513 int unit) 48514 { 48515 return bcm_esw_regex_session_delete_all(unit); 48516 } 48517 #endif 48518 #endif 48519 48520 #if defined(INCLUDE_REGEX) 48521 #ifdef BCM_TOMAHAWK3_SUPPORT 48522 int 48523 bcm_tomahawk3_regex_session_get( 48524 int unit, 48525 int flags, 48526 bcm_regex_session_key_t *key, 48527 bcm_regex_session_t *session) 48528 { 48529 return bcm_esw_regex_session_get(unit, flags, key, session); 48530 } 48531 #endif 48532 #endif 48533 48534 #if defined(INCLUDE_REGEX) 48535 #ifdef BCM_TOMAHAWK3_SUPPORT 48536 int 48537 bcm_tomahawk3_regex_session_policy_update( 48538 int unit, 48539 int flags, 48540 int flow_index, 48541 bcm_regex_policy_t policy) 48542 { 48543 return bcm_esw_regex_session_policy_update(unit, flags, flow_index, policy); 48544 } 48545 #endif 48546 #endif 48547 48548 #if defined(INCLUDE_REGEX) 48549 #ifdef BCM_TOMAHAWK3_SUPPORT 48550 int 48551 bcm_tomahawk3_regex_session_traverse( 48552 int unit, 48553 int flags, 48554 bcm_regex_session_traverse_cb cb, 48555 void *user_data) 48556 { 48557 return bcm_esw_regex_session_traverse(unit, flags, cb, user_data); 48558 } 48559 #endif 48560 #endif 48561 48562 #if defined(INCLUDE_REGEX) 48563 #ifdef BCM_TOMAHAWK3_SUPPORT 48564 int 48565 bcm_tomahawk3_regex_stat_create( 48566 int unit, 48567 int flags, 48568 int nstat, 48569 bcm_field_stat_t *stat_arr, 48570 int *stat_id) 48571 { 48572 return bcm_esw_regex_stat_create(unit, flags, nstat, stat_arr, stat_id); 48573 } 48574 #endif 48575 #endif 48576 48577 #if defined(INCLUDE_REGEX) 48578 #ifdef BCM_TOMAHAWK3_SUPPORT 48579 int 48580 bcm_tomahawk3_regex_stat_destroy( 48581 int unit, 48582 int stat_id) 48583 { 48584 return bcm_esw_regex_stat_destroy(unit, stat_id); 48585 } 48586 #endif 48587 #endif 48588 48589 #if defined(INCLUDE_REGEX) 48590 #ifdef BCM_TOMAHAWK3_SUPPORT 48591 int 48592 bcm_tomahawk3_regex_stat_get( 48593 int unit, 48594 bcm_regex_stat_t type, 48595 uint64 *val) 48596 { 48597 return bcm_esw_regex_stat_get(unit, type, val); 48598 } 48599 #endif 48600 #endif 48601 48602 #if defined(INCLUDE_REGEX) 48603 #ifdef BCM_TOMAHAWK3_SUPPORT 48604 int 48605 bcm_tomahawk3_regex_stat_set( 48606 int unit, 48607 bcm_regex_stat_t type, 48608 uint64 val) 48609 { 48610 return bcm_esw_regex_stat_set(unit, type, val); 48611 } 48612 #endif 48613 #endif 48614 48615 #ifdef BCM_TOMAHAWK3_SUPPORT 48616 int 48617 bcm_tomahawk3_rx_CopyToCpu_config_add( 48618 int unit, 48619 uint32 options, 48620 bcm_rx_CopyToCpu_config_t *copyToCpu_config) 48621 { 48622 return bcm_esw_rx_CopyToCpu_config_add(unit, options, copyToCpu_config); 48623 } 48624 #endif 48625 48626 #ifdef BCM_TOMAHAWK3_SUPPORT 48627 int 48628 bcm_tomahawk3_rx_CopyToCpu_config_delete( 48629 int unit, 48630 int index) 48631 { 48632 return bcm_esw_rx_CopyToCpu_config_delete(unit, index); 48633 } 48634 #endif 48635 48636 #ifdef BCM_TOMAHAWK3_SUPPORT 48637 int 48638 bcm_tomahawk3_rx_CopyToCpu_config_delete_all( 48639 int unit) 48640 { 48641 return bcm_esw_rx_CopyToCpu_config_delete_all(unit); 48642 } 48643 #endif 48644 48645 #ifdef BCM_TOMAHAWK3_SUPPORT 48646 int 48647 bcm_tomahawk3_rx_CopyToCpu_config_get( 48648 int unit, 48649 int index, 48650 bcm_rx_CopyToCpu_config_t *copyToCpu_config) 48651 { 48652 return bcm_esw_rx_CopyToCpu_config_get(unit, index, copyToCpu_config); 48653 } 48654 #endif 48655 48656 #ifdef BCM_TOMAHAWK3_SUPPORT 48657 int 48658 bcm_tomahawk3_rx_CopyToCpu_config_get_all( 48659 int unit, 48660 int entries_max, 48661 bcm_rx_CopyToCpu_config_t *copyToCpu_config, 48662 int *entries_count) 48663 { 48664 return bcm_esw_rx_CopyToCpu_config_get_all(unit, entries_max, copyToCpu_config, entries_count); 48665 } 48666 #endif 48667 48668 #ifdef BCM_TOMAHAWK3_SUPPORT 48669 int 48670 bcm_tomahawk3_rx_active( 48671 int unit) 48672 { 48673 return bcm_esw_rx_active(unit); 48674 } 48675 #endif 48676 48677 #ifdef BCM_TOMAHAWK3_SUPPORT 48678 int 48679 bcm_tomahawk3_rx_alloc( 48680 int unit, 48681 int pkt_size, 48682 uint32 flags, 48683 void **buf) 48684 { 48685 return bcm_esw_rx_alloc(unit, pkt_size, flags, buf); 48686 } 48687 #endif 48688 48689 #ifdef BCM_TOMAHAWK3_SUPPORT 48690 int 48691 bcm_tomahawk3_rx_burst_get( 48692 int unit, 48693 int *burst) 48694 { 48695 return bcm_esw_rx_burst_get(unit, burst); 48696 } 48697 #endif 48698 48699 #ifdef BCM_TOMAHAWK3_SUPPORT 48700 int 48701 bcm_tomahawk3_rx_burst_set( 48702 int unit, 48703 int burst) 48704 { 48705 return bcm_esw_rx_burst_set(unit, burst); 48706 } 48707 #endif 48708 48709 #ifdef BCM_TOMAHAWK3_SUPPORT 48710 int 48711 bcm_tomahawk3_rx_cfg_get( 48712 int unit, 48713 bcm_rx_cfg_t *cfg) 48714 { 48715 return bcm_esw_rx_cfg_get(unit, cfg); 48716 } 48717 #endif 48718 48719 #ifdef BCM_TOMAHAWK3_SUPPORT 48720 int 48721 bcm_tomahawk3_rx_cfg_init( 48722 int unit) 48723 { 48724 return bcm_esw_rx_cfg_init(unit); 48725 } 48726 #endif 48727 48728 #ifdef BCM_TOMAHAWK3_SUPPORT 48729 int 48730 bcm_tomahawk3_rx_channels_running( 48731 int unit, 48732 uint32 *channels) 48733 { 48734 return bcm_esw_rx_channels_running(unit, channels); 48735 } 48736 #endif 48737 48738 #ifdef BCM_TOMAHAWK3_SUPPORT 48739 int 48740 bcm_tomahawk3_rx_clear( 48741 int unit) 48742 { 48743 return bcm_esw_rx_clear(unit); 48744 } 48745 #endif 48746 48747 #ifdef BCM_TOMAHAWK3_SUPPORT 48748 int 48749 bcm_tomahawk3_rx_control_get( 48750 int unit, 48751 bcm_rx_control_t type, 48752 int *arg) 48753 { 48754 return bcm_esw_rx_control_get(unit, type, arg); 48755 } 48756 #endif 48757 48758 #ifdef BCM_TOMAHAWK3_SUPPORT 48759 int 48760 bcm_tomahawk3_rx_control_set( 48761 int unit, 48762 bcm_rx_control_t type, 48763 int arg) 48764 { 48765 return bcm_esw_rx_control_set(unit, type, arg); 48766 } 48767 #endif 48768 48769 #ifdef BCM_TOMAHAWK3_SUPPORT 48770 int 48771 bcm_tomahawk3_rx_cos_burst_get( 48772 int unit, 48773 int cos, 48774 int *burst) 48775 { 48776 return bcm_esw_rx_cos_burst_get(unit, cos, burst); 48777 } 48778 #endif 48779 48780 #ifdef BCM_TOMAHAWK3_SUPPORT 48781 int 48782 bcm_tomahawk3_rx_cos_burst_set( 48783 int unit, 48784 int cos, 48785 int burst) 48786 { 48787 return bcm_esw_rx_cos_burst_set(unit, cos, burst); 48788 } 48789 #endif 48790 48791 #ifdef BCM_TOMAHAWK3_SUPPORT 48792 int 48793 bcm_tomahawk3_rx_cos_max_len_get( 48794 int unit, 48795 int cos, 48796 int *max_q_len) 48797 { 48798 return bcm_esw_rx_cos_max_len_get(unit, cos, max_q_len); 48799 } 48800 #endif 48801 48802 #ifdef BCM_TOMAHAWK3_SUPPORT 48803 int 48804 bcm_tomahawk3_rx_cos_max_len_set( 48805 int unit, 48806 int cos, 48807 int max_q_len) 48808 { 48809 return bcm_esw_rx_cos_max_len_set(unit, cos, max_q_len); 48810 } 48811 #endif 48812 48813 #ifdef BCM_TOMAHAWK3_SUPPORT 48814 int 48815 bcm_tomahawk3_rx_cos_rate_get( 48816 int unit, 48817 int cos, 48818 int *pps) 48819 { 48820 return bcm_esw_rx_cos_rate_get(unit, cos, pps); 48821 } 48822 #endif 48823 48824 #ifdef BCM_TOMAHAWK3_SUPPORT 48825 int 48826 bcm_tomahawk3_rx_cos_rate_set( 48827 int unit, 48828 int cos, 48829 int pps) 48830 { 48831 return bcm_esw_rx_cos_rate_set(unit, cos, pps); 48832 } 48833 #endif 48834 48835 #ifdef BCM_TOMAHAWK3_SUPPORT 48836 int 48837 bcm_tomahawk3_rx_cosq_mapping_delete( 48838 int unit, 48839 int index) 48840 { 48841 return bcm_esw_rx_cosq_mapping_delete(unit, index); 48842 } 48843 #endif 48844 48845 #ifdef BCM_TOMAHAWK3_SUPPORT 48846 int 48847 bcm_tomahawk3_rx_cosq_mapping_extended_get( 48848 int unit, 48849 bcm_rx_cosq_mapping_t *rx_cosq_mapping) 48850 { 48851 return bcm_esw_rx_cosq_mapping_extended_get(unit, rx_cosq_mapping); 48852 } 48853 #endif 48854 48855 #ifdef BCM_TOMAHAWK3_SUPPORT 48856 int 48857 bcm_tomahawk3_rx_cosq_mapping_extended_set( 48858 int unit, 48859 uint32 options, 48860 bcm_rx_cosq_mapping_t *rx_cosq_mapping) 48861 { 48862 return bcm_esw_rx_cosq_mapping_extended_set(unit, options, rx_cosq_mapping); 48863 } 48864 #endif 48865 48866 #ifdef BCM_TOMAHAWK3_SUPPORT 48867 int 48868 bcm_tomahawk3_rx_cosq_mapping_get( 48869 int unit, 48870 int index, 48871 bcm_rx_reasons_t *reasons, 48872 bcm_rx_reasons_t *reasons_mask, 48873 uint8 *int_prio, 48874 uint8 *int_prio_mask, 48875 uint32 *packet_type, 48876 uint32 *packet_type_mask, 48877 bcm_cos_queue_t *cosq) 48878 { 48879 return bcm_esw_rx_cosq_mapping_get(unit, index, reasons, reasons_mask, int_prio, int_prio_mask, packet_type, packet_type_mask, cosq); 48880 } 48881 #endif 48882 48883 #ifdef BCM_TOMAHAWK3_SUPPORT 48884 int 48885 bcm_tomahawk3_rx_cosq_mapping_reasons_get( 48886 int unit, 48887 bcm_rx_reasons_t *reasons) 48888 { 48889 return bcm_esw_rx_cosq_mapping_reasons_get(unit, reasons); 48890 } 48891 #endif 48892 48893 #ifdef BCM_TOMAHAWK3_SUPPORT 48894 int 48895 bcm_tomahawk3_rx_cosq_mapping_set( 48896 int unit, 48897 int index, 48898 bcm_rx_reasons_t reasons, 48899 bcm_rx_reasons_t reasons_mask, 48900 uint8 int_prio, 48901 uint8 int_prio_mask, 48902 uint32 packet_type, 48903 uint32 packet_type_mask, 48904 bcm_cos_queue_t cosq) 48905 { 48906 return bcm_esw_rx_cosq_mapping_set(unit, index, reasons, reasons_mask, int_prio, int_prio_mask, packet_type, packet_type_mask, cosq); 48907 } 48908 #endif 48909 48910 #ifdef BCM_TOMAHAWK3_SUPPORT 48911 int 48912 bcm_tomahawk3_rx_cosq_mapping_size_get( 48913 int unit, 48914 int *size) 48915 { 48916 return bcm_esw_rx_cosq_mapping_size_get(unit, size); 48917 } 48918 #endif 48919 48920 #ifdef BCM_TOMAHAWK3_SUPPORT 48921 int 48922 bcm_tomahawk3_rx_cpu_rate_get( 48923 int unit, 48924 int *pps) 48925 { 48926 return bcm_esw_rx_cpu_rate_get(unit, pps); 48927 } 48928 #endif 48929 48930 #ifdef BCM_TOMAHAWK3_SUPPORT 48931 int 48932 bcm_tomahawk3_rx_cpu_rate_set( 48933 int unit, 48934 int pps) 48935 { 48936 return bcm_esw_rx_cpu_rate_set(unit, pps); 48937 } 48938 #endif 48939 48940 #ifdef BCM_TOMAHAWK3_SUPPORT 48941 int 48942 bcm_tomahawk3_rx_free( 48943 int unit, 48944 void *pkt_data) 48945 { 48946 return bcm_esw_rx_free(unit, pkt_data); 48947 } 48948 #endif 48949 48950 #ifdef BCM_TOMAHAWK3_SUPPORT 48951 int 48952 bcm_tomahawk3_rx_free_enqueue( 48953 int unit, 48954 void *pkt_data) 48955 { 48956 return bcm_esw_rx_free_enqueue(unit, pkt_data); 48957 } 48958 #endif 48959 48960 #ifdef BCM_TOMAHAWK3_SUPPORT 48961 int 48962 bcm_tomahawk3_rx_init( 48963 int unit) 48964 { 48965 return bcm_esw_rx_init(unit); 48966 } 48967 #endif 48968 48969 #ifdef BCM_TOMAHAWK3_SUPPORT 48970 int 48971 bcm_tomahawk3_rx_mtu_get( 48972 int unit, 48973 bcm_rx_mtu_config_t *config) 48974 { 48975 return bcm_esw_rx_mtu_get(unit, config); 48976 } 48977 #endif 48978 48979 int 48980 bcm_tomahawk3_rx_mtu_profile_get( 48981 int unit, 48982 uint32 flags, 48983 bcm_rx_mtu_profile_key_t *mtu_key, 48984 bcm_rx_mtu_profile_value_t *mtu_value) 48985 { 48986 return BCM_E_UNAVAIL; 48987 } 48988 48989 int 48990 bcm_tomahawk3_rx_mtu_profile_set( 48991 int unit, 48992 uint32 flags, 48993 bcm_rx_mtu_profile_key_t *mtu_key, 48994 bcm_rx_mtu_profile_value_t *mtu_value) 48995 { 48996 return BCM_E_UNAVAIL; 48997 } 48998 48999 #ifdef BCM_TOMAHAWK3_SUPPORT 49000 int 49001 bcm_tomahawk3_rx_mtu_set( 49002 int unit, 49003 bcm_rx_mtu_config_t *config) 49004 { 49005 return bcm_esw_rx_mtu_set(unit, config); 49006 } 49007 #endif 49008 49009 #ifdef BCM_TOMAHAWK3_SUPPORT 49010 int 49011 bcm_tomahawk3_rx_queue_channel_get( 49012 int unit, 49013 bcm_cos_queue_t queue_id, 49014 bcm_rx_chan_t *chan_id) 49015 { 49016 return bcm_esw_rx_queue_channel_get(unit, queue_id, chan_id); 49017 } 49018 #endif 49019 49020 #ifdef BCM_TOMAHAWK3_SUPPORT 49021 int 49022 bcm_tomahawk3_rx_queue_channel_set( 49023 int unit, 49024 bcm_cos_queue_t queue_id, 49025 bcm_rx_chan_t chan_id) 49026 { 49027 return bcm_esw_rx_queue_channel_set(unit, queue_id, chan_id); 49028 } 49029 #endif 49030 49031 #ifdef BCM_TOMAHAWK3_SUPPORT 49032 int 49033 bcm_tomahawk3_rx_queue_max_get( 49034 int unit, 49035 bcm_cos_queue_t *cosq) 49036 { 49037 return bcm_esw_rx_queue_max_get(unit, cosq); 49038 } 49039 #endif 49040 49041 #ifdef BCM_TOMAHAWK3_SUPPORT 49042 int 49043 bcm_tomahawk3_rx_queue_packet_count_get( 49044 int unit, 49045 bcm_cos_queue_t cosq, 49046 int *packet_count) 49047 { 49048 return bcm_esw_rx_queue_packet_count_get(unit, cosq, packet_count); 49049 } 49050 #endif 49051 49052 #ifdef BCM_TOMAHAWK3_SUPPORT 49053 int 49054 bcm_tomahawk3_rx_queue_rate_limit_status_get( 49055 int unit, 49056 bcm_cos_queue_t cosq, 49057 int *packet_tokens) 49058 { 49059 return bcm_esw_rx_queue_rate_limit_status_get(unit, cosq, packet_tokens); 49060 } 49061 #endif 49062 49063 #ifdef BCM_TOMAHAWK3_SUPPORT 49064 int 49065 bcm_tomahawk3_rx_queue_register( 49066 int unit, 49067 const char *name, 49068 bcm_cos_queue_t cosq, 49069 bcm_rx_cb_f callback, 49070 uint8 priority, 49071 void *cookie, 49072 uint32 flags) 49073 { 49074 return bcm_esw_rx_queue_register(unit, name, cosq, callback, priority, cookie, flags); 49075 } 49076 #endif 49077 49078 #ifdef BCM_TOMAHAWK3_SUPPORT 49079 int 49080 bcm_tomahawk3_rx_queue_unregister( 49081 int unit, 49082 bcm_cos_queue_t cosq, 49083 bcm_rx_cb_f callback, 49084 uint8 priority) 49085 { 49086 return bcm_esw_rx_queue_unregister(unit, cosq, callback, priority); 49087 } 49088 #endif 49089 49090 #ifdef BCM_TOMAHAWK3_SUPPORT 49091 int 49092 bcm_tomahawk3_rx_rate_get( 49093 int unit, 49094 int *pps) 49095 { 49096 return bcm_esw_rx_rate_get(unit, pps); 49097 } 49098 #endif 49099 49100 #ifdef BCM_TOMAHAWK3_SUPPORT 49101 int 49102 bcm_tomahawk3_rx_rate_set( 49103 int unit, 49104 int pps) 49105 { 49106 return bcm_esw_rx_rate_set(unit, pps); 49107 } 49108 #endif 49109 49110 #ifdef BCM_TOMAHAWK3_SUPPORT 49111 int 49112 bcm_tomahawk3_rx_reasons_get( 49113 int unit, 49114 bcm_rx_reasons_t *reasons) 49115 { 49116 return bcm_esw_rx_reasons_get(unit, reasons); 49117 } 49118 #endif 49119 49120 int 49121 bcm_tomahawk3_rx_reasons_policer_set( 49122 int unit, 49123 bcm_rx_reasons_t rx_reasons, 49124 bcm_policer_t polid) 49125 { 49126 return BCM_E_UNAVAIL; 49127 } 49128 49129 #ifdef BCM_TOMAHAWK3_SUPPORT 49130 int 49131 bcm_tomahawk3_rx_redirect_reasons_get( 49132 int unit, 49133 bcm_rx_redirect_t mode, 49134 bcm_rx_reasons_t *reasons) 49135 { 49136 return bcm_esw_rx_redirect_reasons_get(unit, mode, reasons); 49137 } 49138 #endif 49139 49140 #ifdef BCM_TOMAHAWK3_SUPPORT 49141 int 49142 bcm_tomahawk3_rx_redirect_reasons_set( 49143 int unit, 49144 bcm_rx_redirect_t mode, 49145 bcm_rx_reasons_t reasons) 49146 { 49147 return bcm_esw_rx_redirect_reasons_set(unit, mode, reasons); 49148 } 49149 #endif 49150 49151 #ifdef BCM_TOMAHAWK3_SUPPORT 49152 int 49153 bcm_tomahawk3_rx_register( 49154 int unit, 49155 const char *name, 49156 bcm_rx_cb_f callback, 49157 uint8 priority, 49158 void *cookie, 49159 uint32 flags) 49160 { 49161 return bcm_esw_rx_register(unit, name, callback, priority, cookie, flags); 49162 } 49163 #endif 49164 49165 #ifdef BCM_TOMAHAWK3_SUPPORT 49166 int 49167 bcm_tomahawk3_rx_remote_pkt_enqueue( 49168 int unit, 49169 bcm_pkt_t *pkt) 49170 { 49171 return bcm_esw_rx_remote_pkt_enqueue(unit, pkt); 49172 } 49173 #endif 49174 49175 #ifdef BCM_TOMAHAWK3_SUPPORT 49176 int 49177 bcm_tomahawk3_rx_sched_register( 49178 int unit, 49179 bcm_rx_sched_cb sched_cb) 49180 { 49181 return bcm_esw_rx_sched_register(unit, sched_cb); 49182 } 49183 #endif 49184 49185 #ifdef BCM_TOMAHAWK3_SUPPORT 49186 int 49187 bcm_tomahawk3_rx_sched_unregister( 49188 int unit) 49189 { 49190 return bcm_esw_rx_sched_unregister(unit); 49191 } 49192 #endif 49193 49194 #if defined(BROADCOM_DEBUG) 49195 #ifdef BCM_TOMAHAWK3_SUPPORT 49196 int 49197 bcm_tomahawk3_rx_show( 49198 int unit) 49199 { 49200 return bcm_esw_rx_show(unit); 49201 } 49202 #endif 49203 #endif 49204 49205 int 49206 bcm_tomahawk3_rx_snoop_create( 49207 int unit, 49208 int flags, 49209 int *snoop_cmnd) 49210 { 49211 return BCM_E_UNAVAIL; 49212 } 49213 49214 int 49215 bcm_tomahawk3_rx_snoop_destroy( 49216 int unit, 49217 int flags, 49218 int snoop_cmnd) 49219 { 49220 return BCM_E_UNAVAIL; 49221 } 49222 49223 int 49224 bcm_tomahawk3_rx_snoop_get( 49225 int unit, 49226 int snoop_cmnd, 49227 bcm_rx_snoop_config_t *config) 49228 { 49229 return BCM_E_UNAVAIL; 49230 } 49231 49232 int 49233 bcm_tomahawk3_rx_snoop_set( 49234 int unit, 49235 int snoop_cmnd, 49236 bcm_rx_snoop_config_t *config) 49237 { 49238 return BCM_E_UNAVAIL; 49239 } 49240 49241 #ifdef BCM_TOMAHAWK3_SUPPORT 49242 int 49243 bcm_tomahawk3_rx_start( 49244 int unit, 49245 bcm_rx_cfg_t *cfg) 49246 { 49247 return bcm_esw_rx_start(unit, cfg); 49248 } 49249 #endif 49250 49251 #ifdef BCM_TOMAHAWK3_SUPPORT 49252 int 49253 bcm_tomahawk3_rx_stop( 49254 int unit, 49255 bcm_rx_cfg_t *cfg) 49256 { 49257 return bcm_esw_rx_stop(unit, cfg); 49258 } 49259 #endif 49260 49261 int 49262 bcm_tomahawk3_rx_trap_action_profile_clear( 49263 int unit, 49264 bcm_rx_trap_t trap_type) 49265 { 49266 return BCM_E_UNAVAIL; 49267 } 49268 49269 int 49270 bcm_tomahawk3_rx_trap_action_profile_get( 49271 int unit, 49272 bcm_rx_trap_t trap_type, 49273 bcm_gport_t *gport) 49274 { 49275 return BCM_E_UNAVAIL; 49276 } 49277 49278 int 49279 bcm_tomahawk3_rx_trap_action_profile_set( 49280 int unit, 49281 uint32 flags, 49282 bcm_rx_trap_t trap_type, 49283 bcm_gport_t gport) 49284 { 49285 return BCM_E_UNAVAIL; 49286 } 49287 49288 int 49289 bcm_tomahawk3_rx_trap_get( 49290 int unit, 49291 int trap_id, 49292 bcm_rx_trap_config_t *config) 49293 { 49294 return BCM_E_UNAVAIL; 49295 } 49296 49297 int 49298 bcm_tomahawk3_rx_trap_lif_get( 49299 int unit, 49300 bcm_rx_trap_lif_config_t *lif_config_p) 49301 { 49302 return BCM_E_UNAVAIL; 49303 } 49304 49305 int 49306 bcm_tomahawk3_rx_trap_lif_set( 49307 int unit, 49308 uint32 flags, 49309 bcm_rx_trap_lif_config_t *lif_config_p) 49310 { 49311 return BCM_E_UNAVAIL; 49312 } 49313 49314 int 49315 bcm_tomahawk3_rx_trap_prog_get( 49316 int unit, 49317 uint8 prog_index, 49318 bcm_rx_trap_prog_config_t *prog_config_p) 49319 { 49320 return BCM_E_UNAVAIL; 49321 } 49322 49323 int 49324 bcm_tomahawk3_rx_trap_prog_set( 49325 int unit, 49326 uint32 flags, 49327 uint8 prog_index, 49328 bcm_rx_trap_prog_config_t *prog_config_p) 49329 { 49330 return BCM_E_UNAVAIL; 49331 } 49332 49333 int 49334 bcm_tomahawk3_rx_trap_protocol_clear( 49335 int unit, 49336 bcm_rx_trap_protocol_key_t *key_p) 49337 { 49338 return BCM_E_UNAVAIL; 49339 } 49340 49341 int 49342 bcm_tomahawk3_rx_trap_protocol_get( 49343 int unit, 49344 bcm_rx_trap_protocol_key_t *key_p, 49345 bcm_gport_t *trap_gport_p) 49346 { 49347 return BCM_E_UNAVAIL; 49348 } 49349 49350 int 49351 bcm_tomahawk3_rx_trap_protocol_profiles_get( 49352 int unit, 49353 bcm_gport_t port, 49354 bcm_rx_trap_protocol_profiles_t *protocol_profiles_p) 49355 { 49356 return BCM_E_UNAVAIL; 49357 } 49358 49359 int 49360 bcm_tomahawk3_rx_trap_protocol_profiles_set( 49361 int unit, 49362 bcm_gport_t port, 49363 bcm_rx_trap_protocol_profiles_t *protocol_profiles_p) 49364 { 49365 return BCM_E_UNAVAIL; 49366 } 49367 49368 int 49369 bcm_tomahawk3_rx_trap_protocol_set( 49370 int unit, 49371 bcm_rx_trap_protocol_key_t *key_p, 49372 bcm_gport_t trap_gport) 49373 { 49374 return BCM_E_UNAVAIL; 49375 } 49376 49377 int 49378 bcm_tomahawk3_rx_trap_set( 49379 int unit, 49380 int trap_id, 49381 bcm_rx_trap_config_t *config) 49382 { 49383 return BCM_E_UNAVAIL; 49384 } 49385 49386 int 49387 bcm_tomahawk3_rx_trap_sw_to_hw_id_map_get( 49388 int unit, 49389 uint32 flags, 49390 int sw_trap_id, 49391 int *hw_trap_id) 49392 { 49393 return BCM_E_UNAVAIL; 49394 } 49395 49396 int 49397 bcm_tomahawk3_rx_trap_type_create( 49398 int unit, 49399 int flags, 49400 bcm_rx_trap_t type, 49401 int *trap_id) 49402 { 49403 return BCM_E_UNAVAIL; 49404 } 49405 49406 int 49407 bcm_tomahawk3_rx_trap_type_destroy( 49408 int unit, 49409 int trap_id) 49410 { 49411 return BCM_E_UNAVAIL; 49412 } 49413 49414 int 49415 bcm_tomahawk3_rx_trap_type_from_id_get( 49416 int unit, 49417 int flags, 49418 int trap_id, 49419 bcm_rx_trap_t *trap_type) 49420 { 49421 return BCM_E_UNAVAIL; 49422 } 49423 49424 int 49425 bcm_tomahawk3_rx_trap_type_get( 49426 int unit, 49427 int flags, 49428 bcm_rx_trap_t type, 49429 int *trap_id) 49430 { 49431 return BCM_E_UNAVAIL; 49432 } 49433 49434 #ifdef BCM_TOMAHAWK3_SUPPORT 49435 int 49436 bcm_tomahawk3_rx_unit_next_get( 49437 int unit, 49438 int *next_unit) 49439 { 49440 return bcm_esw_rx_unit_next_get(unit, next_unit); 49441 } 49442 #endif 49443 49444 #ifdef BCM_TOMAHAWK3_SUPPORT 49445 int 49446 bcm_tomahawk3_rx_unregister( 49447 int unit, 49448 bcm_rx_cb_f callback, 49449 uint8 priority) 49450 { 49451 return bcm_esw_rx_unregister(unit, callback, priority); 49452 } 49453 #endif 49454 49455 #ifdef BCM_TOMAHAWK3_SUPPORT 49456 int 49457 bcm_tomahawk3_sat_config_get( 49458 int unit, 49459 bcm_sat_config_t *conf) 49460 { 49461 return bcm_common_sat_config_get(unit, conf); 49462 } 49463 #endif 49464 49465 #ifdef BCM_TOMAHAWK3_SUPPORT 49466 int 49467 bcm_tomahawk3_sat_config_set( 49468 int unit, 49469 bcm_sat_config_t *conf) 49470 { 49471 return bcm_common_sat_config_set(unit, conf); 49472 } 49473 #endif 49474 49475 #ifdef BCM_TOMAHAWK3_SUPPORT 49476 int 49477 bcm_tomahawk3_sat_ctf_availability_config_set( 49478 int unit, 49479 bcm_sat_ctf_t ctf_id, 49480 bcm_sat_ctf_availability_config_t *config) 49481 { 49482 return bcm_common_sat_ctf_availability_config_set(unit, ctf_id, config); 49483 } 49484 #endif 49485 49486 #ifdef BCM_TOMAHAWK3_SUPPORT 49487 int 49488 bcm_tomahawk3_sat_ctf_bin_limit_get( 49489 int unit, 49490 int max_bins_count, 49491 bcm_sat_ctf_bin_limit_t *bins, 49492 int *bins_count) 49493 { 49494 return bcm_common_sat_ctf_bin_limit_get(unit, max_bins_count, bins, bins_count); 49495 } 49496 #endif 49497 49498 #ifdef BCM_TOMAHAWK3_SUPPORT 49499 int 49500 bcm_tomahawk3_sat_ctf_bin_limit_set( 49501 int unit, 49502 int bins_count, 49503 bcm_sat_ctf_bin_limit_t *bins) 49504 { 49505 return bcm_common_sat_ctf_bin_limit_set(unit, bins_count, bins); 49506 } 49507 #endif 49508 49509 #ifdef BCM_TOMAHAWK3_SUPPORT 49510 int 49511 bcm_tomahawk3_sat_ctf_create( 49512 int unit, 49513 uint32 flags, 49514 bcm_sat_ctf_t *ctf_id) 49515 { 49516 return bcm_common_sat_ctf_create(unit, flags, ctf_id); 49517 } 49518 #endif 49519 49520 #ifdef BCM_TOMAHAWK3_SUPPORT 49521 int 49522 bcm_tomahawk3_sat_ctf_destroy( 49523 int unit, 49524 bcm_sat_ctf_t ctf_id) 49525 { 49526 return bcm_common_sat_ctf_destroy(unit, ctf_id); 49527 } 49528 #endif 49529 49530 #ifdef BCM_TOMAHAWK3_SUPPORT 49531 int 49532 bcm_tomahawk3_sat_ctf_destroy_all( 49533 int unit) 49534 { 49535 return bcm_common_sat_ctf_destroy_all(unit); 49536 } 49537 #endif 49538 49539 #ifdef BCM_TOMAHAWK3_SUPPORT 49540 int 49541 bcm_tomahawk3_sat_ctf_identifier_map( 49542 int unit, 49543 bcm_sat_ctf_identifier_t *identifier, 49544 bcm_sat_ctf_t ctf_id) 49545 { 49546 return bcm_common_sat_ctf_identifier_map(unit, identifier, ctf_id); 49547 } 49548 #endif 49549 49550 #ifdef BCM_TOMAHAWK3_SUPPORT 49551 int 49552 bcm_tomahawk3_sat_ctf_identifier_unmap( 49553 int unit, 49554 bcm_sat_ctf_identifier_t *identifier) 49555 { 49556 return bcm_common_sat_ctf_identifier_unmap(unit, identifier); 49557 } 49558 #endif 49559 49560 #ifdef BCM_TOMAHAWK3_SUPPORT 49561 int 49562 bcm_tomahawk3_sat_ctf_packet_config( 49563 int unit, 49564 bcm_sat_ctf_t ctf_id, 49565 bcm_sat_ctf_packet_info_t *packet_info) 49566 { 49567 return bcm_common_sat_ctf_packet_config(unit, ctf_id, packet_info); 49568 } 49569 #endif 49570 49571 #ifdef BCM_TOMAHAWK3_SUPPORT 49572 int 49573 bcm_tomahawk3_sat_ctf_reports_config_set( 49574 int unit, 49575 bcm_sat_ctf_t ctf_id, 49576 bcm_sat_ctf_report_config_t *reports) 49577 { 49578 return bcm_common_sat_ctf_reports_config_set(unit, ctf_id, reports); 49579 } 49580 #endif 49581 49582 #ifdef BCM_TOMAHAWK3_SUPPORT 49583 int 49584 bcm_tomahawk3_sat_ctf_stat_config_set( 49585 int unit, 49586 bcm_sat_ctf_t ctf_id, 49587 bcm_sat_ctf_stat_config_t *stat) 49588 { 49589 return bcm_common_sat_ctf_stat_config_set(unit, ctf_id, stat); 49590 } 49591 #endif 49592 49593 #ifdef BCM_TOMAHAWK3_SUPPORT 49594 int 49595 bcm_tomahawk3_sat_ctf_stat_get( 49596 int unit, 49597 bcm_sat_ctf_t ctf_id, 49598 uint32 flags, 49599 bcm_sat_ctf_stat_t *stat) 49600 { 49601 return bcm_common_sat_ctf_stat_get(unit, ctf_id, flags, stat); 49602 } 49603 #endif 49604 49605 #ifdef BCM_TOMAHAWK3_SUPPORT 49606 int 49607 bcm_tomahawk3_sat_ctf_trap_add( 49608 int unit, 49609 uint32 trap_id) 49610 { 49611 return bcm_common_sat_ctf_trap_add(unit, trap_id); 49612 } 49613 #endif 49614 49615 #ifdef BCM_TOMAHAWK3_SUPPORT 49616 int 49617 bcm_tomahawk3_sat_ctf_trap_data_to_session_map( 49618 int unit, 49619 uint32 trap_data, 49620 uint32 trap_data_mask, 49621 uint32 session_id) 49622 { 49623 return bcm_common_sat_ctf_trap_data_to_session_map(unit, trap_data, trap_data_mask, session_id); 49624 } 49625 #endif 49626 49627 #ifdef BCM_TOMAHAWK3_SUPPORT 49628 int 49629 bcm_tomahawk3_sat_ctf_trap_data_to_session_unmap( 49630 int unit, 49631 uint32 trap_data, 49632 uint32 trap_data_mask) 49633 { 49634 return bcm_common_sat_ctf_trap_data_to_session_unmap(unit, trap_data, trap_data_mask); 49635 } 49636 #endif 49637 49638 #ifdef BCM_TOMAHAWK3_SUPPORT 49639 int 49640 bcm_tomahawk3_sat_ctf_trap_remove( 49641 int unit, 49642 uint32 trap_id) 49643 { 49644 return bcm_common_sat_ctf_trap_remove(unit, trap_id); 49645 } 49646 #endif 49647 49648 #ifdef BCM_TOMAHAWK3_SUPPORT 49649 int 49650 bcm_tomahawk3_sat_ctf_trap_remove_all( 49651 int unit) 49652 { 49653 return bcm_common_sat_ctf_trap_remove_all(unit); 49654 } 49655 #endif 49656 49657 #ifdef BCM_TOMAHAWK3_SUPPORT 49658 int 49659 bcm_tomahawk3_sat_ctf_traverse( 49660 int unit, 49661 bcm_sat_ctf_traverse_cb cb, 49662 void *user_data) 49663 { 49664 return bcm_common_sat_ctf_traverse(unit, cb, user_data); 49665 } 49666 #endif 49667 49668 #ifdef BCM_TOMAHAWK3_SUPPORT 49669 int 49670 bcm_tomahawk3_sat_endpoint_create( 49671 int unit, 49672 bcm_sat_endpoint_info_t *endpoint_info) 49673 { 49674 return bcm_common_sat_endpoint_create(unit, endpoint_info); 49675 } 49676 #endif 49677 49678 #ifdef BCM_TOMAHAWK3_SUPPORT 49679 int 49680 bcm_tomahawk3_sat_endpoint_destroy( 49681 int unit, 49682 bcm_sat_endpoint_t endpoint, 49683 uint32 flags) 49684 { 49685 return bcm_common_sat_endpoint_destroy(unit, endpoint, flags); 49686 } 49687 #endif 49688 49689 #ifdef BCM_TOMAHAWK3_SUPPORT 49690 int 49691 bcm_tomahawk3_sat_endpoint_destroy_all( 49692 int unit, 49693 uint32 flags) 49694 { 49695 return bcm_common_sat_endpoint_destroy_all(unit, flags); 49696 } 49697 #endif 49698 49699 #ifdef BCM_TOMAHAWK3_SUPPORT 49700 int 49701 bcm_tomahawk3_sat_endpoint_get( 49702 int unit, 49703 bcm_sat_endpoint_t endpoint, 49704 uint32 flags, 49705 bcm_sat_endpoint_info_t *endpoint_info) 49706 { 49707 return bcm_common_sat_endpoint_get(unit, endpoint, flags, endpoint_info); 49708 } 49709 #endif 49710 49711 #ifdef BCM_TOMAHAWK3_SUPPORT 49712 int 49713 bcm_tomahawk3_sat_endpoint_traverse( 49714 int unit, 49715 uint32 flags, 49716 bcm_sat_endpoint_traverse_cb cb, 49717 void *user_data) 49718 { 49719 return bcm_common_sat_endpoint_traverse(unit, flags, cb, user_data); 49720 } 49721 #endif 49722 49723 #ifdef BCM_TOMAHAWK3_SUPPORT 49724 int 49725 bcm_tomahawk3_sat_event_register( 49726 int unit, 49727 bcm_sat_event_type_t event_type, 49728 bcm_sat_event_cb cb, 49729 void *user_data) 49730 { 49731 return bcm_common_sat_event_register(unit, event_type, cb, user_data); 49732 } 49733 #endif 49734 49735 #ifdef BCM_TOMAHAWK3_SUPPORT 49736 int 49737 bcm_tomahawk3_sat_event_unregister( 49738 int unit, 49739 bcm_sat_event_type_t event_type, 49740 bcm_sat_event_cb cb) 49741 { 49742 return bcm_common_sat_event_unregister(unit, event_type, cb); 49743 } 49744 #endif 49745 49746 #ifdef BCM_TOMAHAWK3_SUPPORT 49747 int 49748 bcm_tomahawk3_sat_gtf_bandwidth_get( 49749 int unit, 49750 bcm_sat_gtf_t gtf_id, 49751 int priority, 49752 bcm_sat_gtf_bandwidth_t *bw) 49753 { 49754 return bcm_common_sat_gtf_bandwidth_get(unit, gtf_id, priority, bw); 49755 } 49756 #endif 49757 49758 #ifdef BCM_TOMAHAWK3_SUPPORT 49759 int 49760 bcm_tomahawk3_sat_gtf_bandwidth_set( 49761 int unit, 49762 bcm_sat_gtf_t gtf_id, 49763 int priority, 49764 bcm_sat_gtf_bandwidth_t *bw) 49765 { 49766 return bcm_common_sat_gtf_bandwidth_set(unit, gtf_id, priority, bw); 49767 } 49768 #endif 49769 49770 #ifdef BCM_TOMAHAWK3_SUPPORT 49771 int 49772 bcm_tomahawk3_sat_gtf_create( 49773 int unit, 49774 uint32 flags, 49775 bcm_sat_gtf_t *gtf_id) 49776 { 49777 return bcm_common_sat_gtf_create(unit, flags, gtf_id); 49778 } 49779 #endif 49780 49781 #ifdef BCM_TOMAHAWK3_SUPPORT 49782 int 49783 bcm_tomahawk3_sat_gtf_destroy( 49784 int unit, 49785 bcm_sat_gtf_t gtf_id) 49786 { 49787 return bcm_common_sat_gtf_destroy(unit, gtf_id); 49788 } 49789 #endif 49790 49791 #ifdef BCM_TOMAHAWK3_SUPPORT 49792 int 49793 bcm_tomahawk3_sat_gtf_destroy_all( 49794 int unit) 49795 { 49796 return bcm_common_sat_gtf_destroy_all(unit); 49797 } 49798 #endif 49799 49800 #ifdef BCM_TOMAHAWK3_SUPPORT 49801 int 49802 bcm_tomahawk3_sat_gtf_packet_config( 49803 int unit, 49804 bcm_sat_gtf_t gtf_id, 49805 bcm_sat_gtf_packet_config_t *config) 49806 { 49807 return bcm_common_sat_gtf_packet_config(unit, gtf_id, config); 49808 } 49809 #endif 49810 49811 int 49812 bcm_tomahawk3_sat_gtf_packet_config_get( 49813 int unit, 49814 bcm_sat_gtf_t gtf_id, 49815 bcm_sat_gtf_packet_config_t *config) 49816 { 49817 return BCM_E_UNAVAIL; 49818 } 49819 49820 int 49821 bcm_tomahawk3_sat_gtf_packet_config_set( 49822 int unit, 49823 bcm_sat_gtf_t gtf_id, 49824 bcm_sat_gtf_packet_config_t *config) 49825 { 49826 return BCM_E_UNAVAIL; 49827 } 49828 49829 #ifdef BCM_TOMAHAWK3_SUPPORT 49830 int 49831 bcm_tomahawk3_sat_gtf_packet_start( 49832 int unit, 49833 bcm_sat_gtf_t gtf_id, 49834 bcm_sat_gtf_pri_t priority) 49835 { 49836 return bcm_common_sat_gtf_packet_start(unit, gtf_id, priority); 49837 } 49838 #endif 49839 49840 #ifdef BCM_TOMAHAWK3_SUPPORT 49841 int 49842 bcm_tomahawk3_sat_gtf_packet_stop( 49843 int unit, 49844 bcm_sat_gtf_t gtf_id, 49845 bcm_sat_gtf_pri_t priority) 49846 { 49847 return bcm_common_sat_gtf_packet_stop(unit, gtf_id, priority); 49848 } 49849 #endif 49850 49851 #ifdef BCM_TOMAHAWK3_SUPPORT 49852 int 49853 bcm_tomahawk3_sat_gtf_rate_pattern_get( 49854 int unit, 49855 bcm_sat_gtf_t gtf_id, 49856 int priority, 49857 bcm_sat_gtf_rate_pattern_t *config) 49858 { 49859 return bcm_common_sat_gtf_rate_pattern_get(unit, gtf_id, priority, config); 49860 } 49861 #endif 49862 49863 #ifdef BCM_TOMAHAWK3_SUPPORT 49864 int 49865 bcm_tomahawk3_sat_gtf_rate_pattern_set( 49866 int unit, 49867 bcm_sat_gtf_t gtf_id, 49868 int priority, 49869 bcm_sat_gtf_rate_pattern_t *config) 49870 { 49871 return bcm_common_sat_gtf_rate_pattern_set(unit, gtf_id, priority, config); 49872 } 49873 #endif 49874 49875 #ifdef BCM_TOMAHAWK3_SUPPORT 49876 int 49877 bcm_tomahawk3_sat_gtf_stat_get( 49878 int unit, 49879 bcm_sat_gtf_t gtf_id, 49880 int priority, 49881 uint32 flags, 49882 bcm_sat_gtf_stat_counter_t type, 49883 uint64 *value) 49884 { 49885 return bcm_common_sat_gtf_stat_get(unit, gtf_id, priority, flags, type, value); 49886 } 49887 #endif 49888 49889 int 49890 bcm_tomahawk3_sat_gtf_stat_multi_get( 49891 int unit, 49892 bcm_sat_gtf_t gtf_id, 49893 bcm_sat_gtf_stat_multi_t *stat) 49894 { 49895 return BCM_E_UNAVAIL; 49896 } 49897 49898 #ifdef BCM_TOMAHAWK3_SUPPORT 49899 int 49900 bcm_tomahawk3_sat_gtf_traverse( 49901 int unit, 49902 bcm_sat_gtf_traverse_cb cb, 49903 void *user_data) 49904 { 49905 return bcm_common_sat_gtf_traverse(unit, cb, user_data); 49906 } 49907 #endif 49908 49909 #ifdef BCM_TOMAHAWK3_SUPPORT 49910 int 49911 bcm_tomahawk3_srv6_sid_initiator_create( 49912 int unit, 49913 bcm_srv6_sid_initiator_info_t *info) 49914 { 49915 return bcm_esw_srv6_sid_initiator_create(unit, info); 49916 } 49917 #endif 49918 49919 #ifdef BCM_TOMAHAWK3_SUPPORT 49920 int 49921 bcm_tomahawk3_srv6_sid_initiator_delete( 49922 int unit, 49923 bcm_srv6_sid_initiator_info_t *info) 49924 { 49925 return bcm_esw_srv6_sid_initiator_delete(unit, info); 49926 } 49927 #endif 49928 49929 #ifdef BCM_TOMAHAWK3_SUPPORT 49930 int 49931 bcm_tomahawk3_srv6_sid_initiator_get( 49932 int unit, 49933 bcm_srv6_sid_initiator_info_t *info) 49934 { 49935 return bcm_esw_srv6_sid_initiator_get(unit, info); 49936 } 49937 #endif 49938 49939 #ifdef BCM_TOMAHAWK3_SUPPORT 49940 int 49941 bcm_tomahawk3_srv6_sid_initiator_traverse( 49942 int unit, 49943 bcm_srv6_sid_initiator_traverse_info_t additional_info, 49944 bcm_srv6_sid_initiator_traverse_cb cb, 49945 void *user_data) 49946 { 49947 return bcm_esw_srv6_sid_initiator_traverse(unit, additional_info, cb, user_data); 49948 } 49949 #endif 49950 49951 #ifdef BCM_TOMAHAWK3_SUPPORT 49952 int 49953 bcm_tomahawk3_srv6_srh_base_initiator_create( 49954 int unit, 49955 bcm_srv6_srh_base_initiator_info_t *info) 49956 { 49957 return bcm_esw_srv6_srh_base_initiator_create(unit, info); 49958 } 49959 #endif 49960 49961 #ifdef BCM_TOMAHAWK3_SUPPORT 49962 int 49963 bcm_tomahawk3_srv6_srh_base_initiator_delete( 49964 int unit, 49965 bcm_srv6_srh_base_initiator_info_t *info) 49966 { 49967 return bcm_esw_srv6_srh_base_initiator_delete(unit, info); 49968 } 49969 #endif 49970 49971 #ifdef BCM_TOMAHAWK3_SUPPORT 49972 int 49973 bcm_tomahawk3_srv6_srh_base_initiator_get( 49974 int unit, 49975 bcm_srv6_srh_base_initiator_info_t *info) 49976 { 49977 return bcm_esw_srv6_srh_base_initiator_get(unit, info); 49978 } 49979 #endif 49980 49981 #ifdef BCM_TOMAHAWK3_SUPPORT 49982 int 49983 bcm_tomahawk3_srv6_srh_base_initiator_traverse( 49984 int unit, 49985 bcm_srv6_srh_base_initiator_traverse_info_t additional_info, 49986 bcm_srv6_srh_base_initiator_traverse_cb cb, 49987 void *user_data) 49988 { 49989 return bcm_esw_srv6_srh_base_initiator_traverse(unit, additional_info, cb, user_data); 49990 } 49991 #endif 49992 49993 #ifdef BCM_TOMAHAWK3_SUPPORT 49994 int 49995 bcm_tomahawk3_srv6_terminator_next_protocol_add( 49996 int unit, 49997 bcm_srv6_terminator_next_protocol_mapping_t *info) 49998 { 49999 return bcm_esw_srv6_terminator_next_protocol_add(unit, info); 50000 } 50001 #endif 50002 50003 #ifdef BCM_TOMAHAWK3_SUPPORT 50004 int 50005 bcm_tomahawk3_srv6_terminator_next_protocol_delete( 50006 int unit, 50007 bcm_srv6_terminator_next_protocol_mapping_t *info) 50008 { 50009 return bcm_esw_srv6_terminator_next_protocol_delete(unit, info); 50010 } 50011 #endif 50012 50013 #ifdef BCM_TOMAHAWK3_SUPPORT 50014 int 50015 bcm_tomahawk3_srv6_terminator_next_protocol_get( 50016 int unit, 50017 bcm_srv6_terminator_next_protocol_mapping_t *info) 50018 { 50019 return bcm_esw_srv6_terminator_next_protocol_get(unit, info); 50020 } 50021 #endif 50022 50023 #ifdef BCM_TOMAHAWK3_SUPPORT 50024 int 50025 bcm_tomahawk3_srv6_terminator_next_protocol_traverse( 50026 int unit, 50027 bcm_srv6_terminator_next_protocol_traverse_info_t additional_info, 50028 bcm_srv6_terminator_next_protocol_traverse_cb cb, 50029 void *user_data) 50030 { 50031 return bcm_esw_srv6_terminator_next_protocol_traverse(unit, additional_info, cb, user_data); 50032 } 50033 #endif 50034 50035 #ifdef BCM_TOMAHAWK3_SUPPORT 50036 int 50037 bcm_tomahawk3_stat_clear( 50038 int unit, 50039 bcm_port_t port) 50040 { 50041 return bcm_esw_stat_clear(unit, port); 50042 } 50043 #endif 50044 50045 #ifdef BCM_TOMAHAWK3_SUPPORT 50046 int 50047 bcm_tomahawk3_stat_clear_single( 50048 int unit, 50049 bcm_port_t port, 50050 bcm_stat_val_t type) 50051 { 50052 return bcm_esw_stat_clear_single(unit, port, type); 50053 } 50054 #endif 50055 50056 #ifdef BCM_TOMAHAWK3_SUPPORT 50057 int 50058 bcm_tomahawk3_stat_control_get( 50059 int unit, 50060 int flags, 50061 bcm_stat_control_t type, 50062 int *arg) 50063 { 50064 return bcm_esw_stat_control_get(unit, flags, type, arg); 50065 } 50066 #endif 50067 50068 #ifdef BCM_TOMAHAWK3_SUPPORT 50069 int 50070 bcm_tomahawk3_stat_control_set( 50071 int unit, 50072 int flags, 50073 bcm_stat_control_t type, 50074 int arg) 50075 { 50076 return bcm_esw_stat_control_set(unit, flags, type, arg); 50077 } 50078 #endif 50079 50080 int 50081 bcm_tomahawk3_stat_counter_config_get( 50082 int unit, 50083 bcm_stat_counter_engine_t *engine, 50084 bcm_stat_counter_config_t *config) 50085 { 50086 return BCM_E_UNAVAIL; 50087 } 50088 50089 int 50090 bcm_tomahawk3_stat_counter_config_set( 50091 int unit, 50092 bcm_stat_counter_engine_t *engine, 50093 bcm_stat_counter_config_t *config) 50094 { 50095 return BCM_E_UNAVAIL; 50096 } 50097 50098 #ifdef BCM_TOMAHAWK3_SUPPORT 50099 int 50100 bcm_tomahawk3_stat_counter_database_control_get( 50101 int unit, 50102 uint32 flags, 50103 bcm_stat_counter_database_t *database, 50104 bcm_stat_counter_database_control_t control, 50105 uint32 *arg) 50106 { 50107 return bcm_esw_stat_counter_database_control_get(unit, flags, database, control, arg); 50108 } 50109 #endif 50110 50111 #ifdef BCM_TOMAHAWK3_SUPPORT 50112 int 50113 bcm_tomahawk3_stat_counter_database_control_set( 50114 int unit, 50115 uint32 flags, 50116 bcm_stat_counter_database_t *database, 50117 bcm_stat_counter_database_control_t control, 50118 uint32 arg) 50119 { 50120 return bcm_esw_stat_counter_database_control_set(unit, flags, database, control, arg); 50121 } 50122 #endif 50123 50124 #ifdef BCM_TOMAHAWK3_SUPPORT 50125 int 50126 bcm_tomahawk3_stat_counter_database_create( 50127 int unit, 50128 uint32 flags, 50129 bcm_core_t core_id, 50130 int *database_id) 50131 { 50132 return bcm_esw_stat_counter_database_create(unit, flags, core_id, database_id); 50133 } 50134 #endif 50135 50136 #ifdef BCM_TOMAHAWK3_SUPPORT 50137 int 50138 bcm_tomahawk3_stat_counter_database_destroy( 50139 int unit, 50140 uint32 flags, 50141 bcm_stat_counter_database_t *database) 50142 { 50143 return bcm_esw_stat_counter_database_destroy(unit, flags, database); 50144 } 50145 #endif 50146 50147 #ifdef BCM_TOMAHAWK3_SUPPORT 50148 int 50149 bcm_tomahawk3_stat_counter_database_enable_get( 50150 int unit, 50151 uint32 flags, 50152 bcm_stat_counter_database_t *database, 50153 bcm_stat_counter_enable_t *enable) 50154 { 50155 return bcm_esw_stat_counter_database_enable_get(unit, flags, database, enable); 50156 } 50157 #endif 50158 50159 #ifdef BCM_TOMAHAWK3_SUPPORT 50160 int 50161 bcm_tomahawk3_stat_counter_database_enable_set( 50162 int unit, 50163 uint32 flags, 50164 bcm_stat_counter_database_t *database, 50165 bcm_stat_counter_enable_t *enable) 50166 { 50167 return bcm_esw_stat_counter_database_enable_set(unit, flags, database, enable); 50168 } 50169 #endif 50170 50171 #ifdef BCM_TOMAHAWK3_SUPPORT 50172 int 50173 bcm_tomahawk3_stat_counter_engine_attach( 50174 int unit, 50175 uint32 flags, 50176 bcm_stat_counter_database_t *database, 50177 int engine_id) 50178 { 50179 return bcm_esw_stat_counter_engine_attach(unit, flags, database, engine_id); 50180 } 50181 #endif 50182 50183 #ifdef BCM_TOMAHAWK3_SUPPORT 50184 int 50185 bcm_tomahawk3_stat_counter_engine_control_get( 50186 int unit, 50187 uint32 flags, 50188 bcm_stat_engine_t *engine, 50189 bcm_stat_counter_engine_control_t control, 50190 uint32 *arg) 50191 { 50192 return bcm_esw_stat_counter_engine_control_get(unit, flags, engine, control, arg); 50193 } 50194 #endif 50195 50196 #ifdef BCM_TOMAHAWK3_SUPPORT 50197 int 50198 bcm_tomahawk3_stat_counter_engine_control_set( 50199 int unit, 50200 uint32 flags, 50201 bcm_stat_engine_t *engine, 50202 bcm_stat_counter_engine_control_t control, 50203 uint32 arg) 50204 { 50205 return bcm_esw_stat_counter_engine_control_set(unit, flags, engine, control, arg); 50206 } 50207 #endif 50208 50209 #ifdef BCM_TOMAHAWK3_SUPPORT 50210 int 50211 bcm_tomahawk3_stat_counter_engine_detach( 50212 int unit, 50213 uint32 flags, 50214 bcm_stat_counter_database_t *database, 50215 int engine_id) 50216 { 50217 return bcm_esw_stat_counter_engine_detach(unit, flags, database, engine_id); 50218 } 50219 #endif 50220 50221 #ifdef BCM_TOMAHAWK3_SUPPORT 50222 int 50223 bcm_tomahawk3_stat_counter_eviction_get( 50224 int unit, 50225 uint32 flags, 50226 bcm_stat_engine_t *engine, 50227 bcm_stat_eviction_t *eviction) 50228 { 50229 return bcm_esw_stat_counter_eviction_get(unit, flags, engine, eviction); 50230 } 50231 #endif 50232 50233 #ifdef BCM_TOMAHAWK3_SUPPORT 50234 int 50235 bcm_tomahawk3_stat_counter_eviction_set( 50236 int unit, 50237 uint32 flags, 50238 bcm_stat_engine_t *engine, 50239 bcm_stat_eviction_t *eviction) 50240 { 50241 return bcm_esw_stat_counter_eviction_set(unit, flags, engine, eviction); 50242 } 50243 #endif 50244 50245 #ifdef BCM_TOMAHAWK3_SUPPORT 50246 int 50247 bcm_tomahawk3_stat_counter_expansion_select_get( 50248 int unit, 50249 uint32 flags, 50250 bcm_stat_counter_interface_key_t *interface, 50251 bcm_stat_expansion_select_t *expansion_select) 50252 { 50253 return bcm_esw_stat_counter_expansion_select_get(unit, flags, interface, expansion_select); 50254 } 50255 #endif 50256 50257 #ifdef BCM_TOMAHAWK3_SUPPORT 50258 int 50259 bcm_tomahawk3_stat_counter_expansion_select_set( 50260 int unit, 50261 uint32 flags, 50262 bcm_stat_counter_interface_key_t *interface, 50263 bcm_stat_expansion_select_t *expansion_select) 50264 { 50265 return bcm_esw_stat_counter_expansion_select_set(unit, flags, interface, expansion_select); 50266 } 50267 #endif 50268 50269 #ifdef BCM_TOMAHAWK3_SUPPORT 50270 int 50271 bcm_tomahawk3_stat_counter_explicit_get( 50272 int unit, 50273 uint32 flags, 50274 bcm_stat_counter_explicit_input_data_t *stat_counter_input_data, 50275 bcm_stat_counter_output_data_t *stat_counter_output_data) 50276 { 50277 return bcm_esw_stat_counter_explicit_get(unit, flags, stat_counter_input_data, stat_counter_output_data); 50278 } 50279 #endif 50280 50281 int 50282 bcm_tomahawk3_stat_counter_filter_get( 50283 int unit, 50284 bcm_stat_counter_source_t source, 50285 int filter_max_count, 50286 bcm_stat_counter_filter_t *filter_array, 50287 int *filter_count) 50288 { 50289 return BCM_E_UNAVAIL; 50290 } 50291 50292 int 50293 bcm_tomahawk3_stat_counter_filter_group_get( 50294 int unit, 50295 uint32 flags, 50296 bcm_stat_counter_command_id_key_t *key, 50297 bcm_stat_counter_group_filter_t filter, 50298 int *is_active) 50299 { 50300 return BCM_E_UNAVAIL; 50301 } 50302 50303 int 50304 bcm_tomahawk3_stat_counter_filter_group_set( 50305 int unit, 50306 uint32 flags, 50307 bcm_stat_counter_command_id_key_t *key, 50308 bcm_stat_counter_group_filter_t filter, 50309 int is_active) 50310 { 50311 return BCM_E_UNAVAIL; 50312 } 50313 50314 int 50315 bcm_tomahawk3_stat_counter_filter_is_active_get( 50316 int unit, 50317 bcm_stat_counter_source_t source, 50318 bcm_stat_counter_filter_t filter, 50319 int *is_active) 50320 { 50321 return BCM_E_UNAVAIL; 50322 } 50323 50324 int 50325 bcm_tomahawk3_stat_counter_filter_set( 50326 int unit, 50327 bcm_stat_counter_source_t source, 50328 bcm_stat_counter_filter_t *filter_array, 50329 int filter_count, 50330 int is_active) 50331 { 50332 return BCM_E_UNAVAIL; 50333 } 50334 50335 int 50336 bcm_tomahawk3_stat_counter_get( 50337 int unit, 50338 uint32 flags, 50339 bcm_stat_counter_input_data_t *stat_counter_input_data, 50340 bcm_stat_counter_output_data_t *stat_counter_output_data) 50341 { 50342 return BCM_E_UNAVAIL; 50343 } 50344 50345 #ifdef BCM_TOMAHAWK3_SUPPORT 50346 int 50347 bcm_tomahawk3_stat_counter_interface_get( 50348 int unit, 50349 uint32 flags, 50350 bcm_stat_counter_database_t *database, 50351 bcm_stat_counter_interface_t *config) 50352 { 50353 return bcm_esw_stat_counter_interface_get(unit, flags, database, config); 50354 } 50355 #endif 50356 50357 #ifdef BCM_TOMAHAWK3_SUPPORT 50358 int 50359 bcm_tomahawk3_stat_counter_interface_set( 50360 int unit, 50361 uint32 flags, 50362 bcm_stat_counter_database_t *database, 50363 bcm_stat_counter_interface_t *config) 50364 { 50365 return bcm_esw_stat_counter_interface_set(unit, flags, database, config); 50366 } 50367 #endif 50368 50369 int 50370 bcm_tomahawk3_stat_counter_lif_counting_get( 50371 int unit, 50372 uint32 flags, 50373 bcm_stat_counter_source_t *source, 50374 bcm_stat_counter_lif_mask_t *counting_mask, 50375 bcm_stat_counter_lif_stack_id_t *lif_stack_id_to_count) 50376 { 50377 return BCM_E_UNAVAIL; 50378 } 50379 50380 int 50381 bcm_tomahawk3_stat_counter_lif_counting_range_get( 50382 int unit, 50383 uint32 flags, 50384 bcm_stat_counter_source_type_t source, 50385 bcm_stat_counter_lif_range_id_t range_id, 50386 bcm_stat_counter_lif_counting_range_t *lif_range) 50387 { 50388 return BCM_E_UNAVAIL; 50389 } 50390 50391 int 50392 bcm_tomahawk3_stat_counter_lif_counting_range_set( 50393 int unit, 50394 uint32 flags, 50395 bcm_stat_counter_source_type_t source, 50396 bcm_stat_counter_lif_range_id_t range_id, 50397 bcm_stat_counter_lif_counting_range_t *lif_range) 50398 { 50399 return BCM_E_UNAVAIL; 50400 } 50401 50402 int 50403 bcm_tomahawk3_stat_counter_lif_counting_set( 50404 int unit, 50405 uint32 flags, 50406 bcm_stat_counter_source_t *source, 50407 bcm_stat_counter_lif_mask_t *counting_mask, 50408 bcm_stat_counter_lif_stack_id_t lif_stack_id_to_count) 50409 { 50410 return BCM_E_UNAVAIL; 50411 } 50412 50413 #ifdef BCM_TOMAHAWK3_SUPPORT 50414 int 50415 bcm_tomahawk3_stat_counter_set_mapping_get( 50416 int unit, 50417 uint32 flags, 50418 bcm_stat_counter_database_t *database, 50419 bcm_stat_counter_set_map_t *counter_set_map) 50420 { 50421 return bcm_esw_stat_counter_set_mapping_get(unit, flags, database, counter_set_map); 50422 } 50423 #endif 50424 50425 #ifdef BCM_TOMAHAWK3_SUPPORT 50426 int 50427 bcm_tomahawk3_stat_counter_set_mapping_set( 50428 int unit, 50429 uint32 flags, 50430 bcm_stat_counter_database_t *database, 50431 bcm_stat_counter_set_map_t *counter_set_map) 50432 { 50433 return bcm_esw_stat_counter_set_mapping_set(unit, flags, database, counter_set_map); 50434 } 50435 #endif 50436 50437 #ifdef BCM_TOMAHAWK3_SUPPORT 50438 int 50439 bcm_tomahawk3_stat_custom_add( 50440 int unit, 50441 bcm_port_t port, 50442 bcm_stat_val_t type, 50443 bcm_custom_stat_trigger_t trigger) 50444 { 50445 return bcm_esw_stat_custom_add(unit, port, type, trigger); 50446 } 50447 #endif 50448 50449 #ifdef BCM_TOMAHAWK3_SUPPORT 50450 int 50451 bcm_tomahawk3_stat_custom_check( 50452 int unit, 50453 bcm_port_t port, 50454 bcm_stat_val_t type, 50455 bcm_custom_stat_trigger_t trigger, 50456 int *result) 50457 { 50458 return bcm_esw_stat_custom_check(unit, port, type, trigger, result); 50459 } 50460 #endif 50461 50462 #ifdef BCM_TOMAHAWK3_SUPPORT 50463 int 50464 bcm_tomahawk3_stat_custom_counter_id_move( 50465 int unit, 50466 bcm_stat_custom_base_index_action_t idx_action, 50467 bcm_stat_custom_counter_info_t counter_info_old, 50468 bcm_stat_custom_counter_info_t *counter_info_new) 50469 { 50470 return bcm_esw_stat_custom_counter_id_move(unit, idx_action, counter_info_old, counter_info_new); 50471 } 50472 #endif 50473 50474 #ifdef BCM_TOMAHAWK3_SUPPORT 50475 int 50476 bcm_tomahawk3_stat_custom_delete( 50477 int unit, 50478 bcm_port_t port, 50479 bcm_stat_val_t type, 50480 bcm_custom_stat_trigger_t trigger) 50481 { 50482 return bcm_esw_stat_custom_delete(unit, port, type, trigger); 50483 } 50484 #endif 50485 50486 #ifdef BCM_TOMAHAWK3_SUPPORT 50487 int 50488 bcm_tomahawk3_stat_custom_delete_all( 50489 int unit, 50490 bcm_port_t port, 50491 bcm_stat_val_t type) 50492 { 50493 return bcm_esw_stat_custom_delete_all(unit, port, type); 50494 } 50495 #endif 50496 50497 #ifdef BCM_TOMAHAWK3_SUPPORT 50498 int 50499 bcm_tomahawk3_stat_custom_get( 50500 int unit, 50501 bcm_port_t port, 50502 bcm_stat_val_t type, 50503 uint32 *flags) 50504 { 50505 return bcm_esw_stat_custom_get(unit, port, type, flags); 50506 } 50507 #endif 50508 50509 #ifdef BCM_TOMAHAWK3_SUPPORT 50510 int 50511 bcm_tomahawk3_stat_custom_group_create( 50512 int unit, 50513 uint32 mode_id, 50514 bcm_stat_object_t object, 50515 uint32 *stat_counter_id, 50516 uint32 *num_entries) 50517 { 50518 return bcm_esw_stat_custom_group_create(unit, mode_id, object, stat_counter_id, num_entries); 50519 } 50520 #endif 50521 50522 #ifdef BCM_TOMAHAWK3_SUPPORT 50523 int 50524 bcm_tomahawk3_stat_custom_group_id_create( 50525 int unit, 50526 uint32 mode_id, 50527 bcm_stat_object_t object, 50528 uint32 pool_id, 50529 uint32 base_idx, 50530 bcm_stat_custom_counter_info_t *counter_info) 50531 { 50532 return bcm_esw_stat_custom_group_id_create(unit, mode_id, object, pool_id, base_idx, counter_info); 50533 } 50534 #endif 50535 50536 #ifdef BCM_TOMAHAWK3_SUPPORT 50537 int 50538 bcm_tomahawk3_stat_custom_set( 50539 int unit, 50540 bcm_port_t port, 50541 bcm_stat_val_t type, 50542 uint32 flags) 50543 { 50544 return bcm_esw_stat_custom_set(unit, port, type, flags); 50545 } 50546 #endif 50547 50548 #ifdef BCM_TOMAHAWK3_SUPPORT 50549 int 50550 bcm_tomahawk3_stat_direct_get( 50551 int unit, 50552 bcm_port_t port, 50553 bcm_stat_val_t type, 50554 uint64 *value) 50555 { 50556 return bcm_esw_stat_direct_get(unit, port, type, value); 50557 } 50558 #endif 50559 50560 #ifdef BCM_TOMAHAWK3_SUPPORT 50561 int 50562 bcm_tomahawk3_stat_direct_multi_get( 50563 int unit, 50564 bcm_port_t port, 50565 int nstat, 50566 bcm_stat_val_t *stat_arr, 50567 uint64 *value_arr) 50568 { 50569 return bcm_esw_stat_direct_multi_get(unit, port, nstat, stat_arr, value_arr); 50570 } 50571 #endif 50572 50573 int 50574 bcm_tomahawk3_stat_egress_receive_tm_pointer_format_get( 50575 int unit, 50576 int flags, 50577 bcm_stat_egress_receive_tm_pointer_format_t *pointer_format) 50578 { 50579 return BCM_E_UNAVAIL; 50580 } 50581 50582 int 50583 bcm_tomahawk3_stat_egress_receive_tm_pointer_format_set( 50584 int unit, 50585 int flags, 50586 bcm_stat_egress_receive_tm_pointer_format_t *pointer_format) 50587 { 50588 return BCM_E_UNAVAIL; 50589 } 50590 50591 #ifdef BCM_TOMAHAWK3_SUPPORT 50592 int 50593 bcm_tomahawk3_stat_eviction_boundaries_get( 50594 int unit, 50595 uint32 flags, 50596 bcm_stat_engine_t *engine, 50597 bcm_stat_eviction_boundaries_t *boundaries) 50598 { 50599 return bcm_esw_stat_eviction_boundaries_get(unit, flags, engine, boundaries); 50600 } 50601 #endif 50602 50603 #ifdef BCM_TOMAHAWK3_SUPPORT 50604 int 50605 bcm_tomahawk3_stat_eviction_boundaries_set( 50606 int unit, 50607 uint32 flags, 50608 bcm_stat_engine_t *engine, 50609 bcm_stat_eviction_boundaries_t *boundaries) 50610 { 50611 return bcm_esw_stat_eviction_boundaries_set(unit, flags, engine, boundaries); 50612 } 50613 #endif 50614 50615 #ifdef BCM_TOMAHAWK3_SUPPORT 50616 int 50617 bcm_tomahawk3_stat_flex_counter_get( 50618 int unit, 50619 uint32 stat_counter_id, 50620 bcm_stat_flex_stat_t stat, 50621 uint32 num_entries, 50622 uint32 *counter_indexes, 50623 bcm_stat_value_t *counter_values) 50624 { 50625 return bcm_esw_stat_flex_counter_get(unit, stat_counter_id, stat, num_entries, counter_indexes, counter_values); 50626 } 50627 #endif 50628 50629 #ifdef BCM_TOMAHAWK3_SUPPORT 50630 int 50631 bcm_tomahawk3_stat_flex_counter_set( 50632 int unit, 50633 uint32 stat_counter_id, 50634 bcm_stat_flex_stat_t stat, 50635 uint32 num_entries, 50636 uint32 *counter_indexes, 50637 bcm_stat_value_t *counter_values) 50638 { 50639 return bcm_esw_stat_flex_counter_set(unit, stat_counter_id, stat, num_entries, counter_indexes, counter_values); 50640 } 50641 #endif 50642 50643 #ifdef BCM_TOMAHAWK3_SUPPORT 50644 int 50645 bcm_tomahawk3_stat_flex_counter_sync_get( 50646 int unit, 50647 uint32 stat_counter_id, 50648 bcm_stat_flex_stat_t stat, 50649 uint32 num_entries, 50650 uint32 *counter_indexes, 50651 bcm_stat_value_t *counter_values) 50652 { 50653 return bcm_esw_stat_flex_counter_sync_get(unit, stat_counter_id, stat, num_entries, counter_indexes, counter_values); 50654 } 50655 #endif 50656 50657 #ifdef BCM_TOMAHAWK3_SUPPORT 50658 int 50659 bcm_tomahawk3_stat_flex_pool_info_multi_get( 50660 int unit, 50661 bcm_stat_flex_direction_t direction, 50662 uint32 num_pools, 50663 bcm_stat_flex_pool_stat_info_t *flex_pool_stat, 50664 uint32 *actual_num_pools) 50665 { 50666 return bcm_esw_stat_flex_pool_info_multi_get(unit, direction, num_pools, flex_pool_stat, actual_num_pools); 50667 } 50668 #endif 50669 50670 #ifdef BCM_TOMAHAWK3_SUPPORT 50671 int 50672 bcm_tomahawk3_stat_get( 50673 int unit, 50674 bcm_port_t port, 50675 bcm_stat_val_t type, 50676 uint64 *value) 50677 { 50678 return bcm_esw_stat_get(unit, port, type, value); 50679 } 50680 #endif 50681 50682 #ifdef BCM_TOMAHAWK3_SUPPORT 50683 int 50684 bcm_tomahawk3_stat_get32( 50685 int unit, 50686 bcm_port_t port, 50687 bcm_stat_val_t type, 50688 uint32 *value) 50689 { 50690 return bcm_esw_stat_get32(unit, port, type, value); 50691 } 50692 #endif 50693 50694 #ifdef BCM_TOMAHAWK3_SUPPORT 50695 int 50696 bcm_tomahawk3_stat_group_create( 50697 int unit, 50698 bcm_stat_object_t object, 50699 bcm_stat_group_mode_t group_mode, 50700 uint32 *stat_counter_id, 50701 uint32 *num_entries) 50702 { 50703 return bcm_esw_stat_group_create(unit, object, group_mode, stat_counter_id, num_entries); 50704 } 50705 #endif 50706 50707 #ifdef BCM_TOMAHAWK3_SUPPORT 50708 int 50709 bcm_tomahawk3_stat_group_destroy( 50710 int unit, 50711 uint32 stat_counter_id) 50712 { 50713 return bcm_esw_stat_group_destroy(unit, stat_counter_id); 50714 } 50715 #endif 50716 50717 #ifdef BCM_TOMAHAWK3_SUPPORT 50718 int 50719 bcm_tomahawk3_stat_group_drop_reasons_get( 50720 int unit, 50721 uint32 flags, 50722 bcm_stat_counter_group_filter_t group, 50723 int max_drop_reason_count, 50724 bcm_cosq_drop_reason_t *drop_reasons_array, 50725 int *drop_reasons_count) 50726 { 50727 return bcm_esw_stat_group_drop_reasons_get(unit, flags, group, max_drop_reason_count, drop_reasons_array, drop_reasons_count); 50728 } 50729 #endif 50730 50731 #ifdef BCM_TOMAHAWK3_SUPPORT 50732 int 50733 bcm_tomahawk3_stat_group_drop_reasons_set( 50734 int unit, 50735 uint32 flags, 50736 bcm_stat_counter_group_filter_t group, 50737 bcm_cosq_drop_reason_t *drop_reasons_array, 50738 int drop_reasons_count) 50739 { 50740 return bcm_esw_stat_group_drop_reasons_set(unit, flags, group, drop_reasons_array, drop_reasons_count); 50741 } 50742 #endif 50743 50744 #ifdef BCM_TOMAHAWK3_SUPPORT 50745 int 50746 bcm_tomahawk3_stat_group_dump( 50747 int unit, 50748 bcm_stat_object_t object, 50749 bcm_stat_group_mode_t group_mode) 50750 { 50751 return bcm_esw_stat_group_dump(unit, object, group_mode); 50752 } 50753 #endif 50754 50755 #ifdef BCM_TOMAHAWK3_SUPPORT 50756 int 50757 bcm_tomahawk3_stat_group_dump_all( 50758 int unit) 50759 { 50760 return bcm_esw_stat_group_dump_all(unit); 50761 } 50762 #endif 50763 50764 #ifdef BCM_TOMAHAWK3_SUPPORT 50765 int 50766 bcm_tomahawk3_stat_group_mode_attr_class_id_create( 50767 int unit, 50768 bcm_stat_group_mode_attr_t attr, 50769 uint32 num_of_attr_values, 50770 uint32 *attr_values, 50771 bcm_stat_group_mode_attr_class_id_t *attr_class_id) 50772 { 50773 return bcm_esw_stat_group_mode_attr_class_id_create(unit, attr, num_of_attr_values, attr_values, attr_class_id); 50774 } 50775 #endif 50776 50777 #ifdef BCM_TOMAHAWK3_SUPPORT 50778 int 50779 bcm_tomahawk3_stat_group_mode_attr_class_id_destroy( 50780 int unit, 50781 bcm_stat_group_mode_attr_class_id_t attr_class_id) 50782 { 50783 return bcm_esw_stat_group_mode_attr_class_id_destroy(unit, attr_class_id); 50784 } 50785 #endif 50786 50787 #ifdef BCM_TOMAHAWK3_SUPPORT 50788 int 50789 bcm_tomahawk3_stat_group_mode_id_config_create( 50790 int unit, 50791 uint32 options, 50792 bcm_stat_group_mode_id_config_t *stat_config, 50793 uint32 num_selectors, 50794 bcm_stat_group_mode_attr_selector_t *attr_sel, 50795 uint32 *mode_id) 50796 { 50797 return bcm_esw_stat_group_mode_id_config_create(unit, options, stat_config, num_selectors, attr_sel, mode_id); 50798 } 50799 #endif 50800 50801 #ifdef BCM_TOMAHAWK3_SUPPORT 50802 int 50803 bcm_tomahawk3_stat_group_mode_id_config_get( 50804 int unit, 50805 uint32 mode_id, 50806 bcm_stat_group_mode_id_config_t *config, 50807 uint32 num_selectors, 50808 bcm_stat_group_mode_attr_selector_t *attr_sel, 50809 uint32 *actual_num_selectors) 50810 { 50811 return bcm_esw_stat_group_mode_id_config_get(unit, mode_id, config, num_selectors, attr_sel, actual_num_selectors); 50812 } 50813 #endif 50814 50815 #ifdef BCM_TOMAHAWK3_SUPPORT 50816 int 50817 bcm_tomahawk3_stat_group_mode_id_create( 50818 int unit, 50819 uint32 flags, 50820 uint32 total_counters, 50821 uint32 num_selectors, 50822 bcm_stat_group_mode_attr_selector_t *attr_selectors, 50823 uint32 *mode_id) 50824 { 50825 return bcm_esw_stat_group_mode_id_create(unit, flags, total_counters, num_selectors, attr_selectors, mode_id); 50826 } 50827 #endif 50828 50829 #ifdef BCM_TOMAHAWK3_SUPPORT 50830 int 50831 bcm_tomahawk3_stat_group_mode_id_destroy( 50832 int unit, 50833 uint32 mode_id) 50834 { 50835 return bcm_esw_stat_group_mode_id_destroy(unit, mode_id); 50836 } 50837 #endif 50838 50839 #ifdef BCM_TOMAHAWK3_SUPPORT 50840 int 50841 bcm_tomahawk3_stat_group_mode_id_get( 50842 int unit, 50843 uint32 mode_id, 50844 uint32 *flags, 50845 uint32 *total_counters, 50846 uint32 num_selectors, 50847 bcm_stat_group_mode_attr_selector_t *attr_selectors, 50848 uint32 *actual_num_selectors) 50849 { 50850 return bcm_esw_stat_group_mode_id_get(unit, mode_id, flags, total_counters, num_selectors, attr_selectors, actual_num_selectors); 50851 } 50852 #endif 50853 50854 #ifdef BCM_TOMAHAWK3_SUPPORT 50855 int 50856 bcm_tomahawk3_stat_id_get_all( 50857 int unit, 50858 bcm_stat_object_t object, 50859 int stat_max, 50860 uint32 *stat_array, 50861 int *stat_count) 50862 { 50863 return bcm_esw_stat_id_get_all(unit, object, stat_max, stat_array, stat_count); 50864 } 50865 #endif 50866 50867 #ifdef BCM_TOMAHAWK3_SUPPORT 50868 int 50869 bcm_tomahawk3_stat_init( 50870 int unit) 50871 { 50872 return bcm_esw_stat_init(unit); 50873 } 50874 #endif 50875 50876 #ifdef BCM_TOMAHAWK3_SUPPORT 50877 int 50878 bcm_tomahawk3_stat_latency_port_stat_id_get( 50879 int unit, 50880 int flags, 50881 bcm_stat_latency_port_stat_id_key_t *key, 50882 int *stat_id) 50883 { 50884 return bcm_esw_stat_latency_port_stat_id_get(unit, flags, key, stat_id); 50885 } 50886 #endif 50887 50888 int 50889 bcm_tomahawk3_stat_lif_counting_profile_get( 50890 int unit, 50891 uint32 flags, 50892 int lif_counting_profile, 50893 bcm_stat_lif_counting_t *lif_counting) 50894 { 50895 return BCM_E_UNAVAIL; 50896 } 50897 50898 int 50899 bcm_tomahawk3_stat_lif_counting_profile_set( 50900 int unit, 50901 uint32 flags, 50902 int lif_counting_profile, 50903 bcm_stat_lif_counting_t *lif_counting) 50904 { 50905 return BCM_E_UNAVAIL; 50906 } 50907 50908 int 50909 bcm_tomahawk3_stat_lif_counting_stack_level_priority_get( 50910 int unit, 50911 uint32 flags, 50912 bcm_stat_lif_counting_source_t *source, 50913 bcm_stat_counter_lif_stack_id_t lif_stack_level, 50914 int *priority) 50915 { 50916 return BCM_E_UNAVAIL; 50917 } 50918 50919 int 50920 bcm_tomahawk3_stat_lif_counting_stack_level_priority_set( 50921 int unit, 50922 uint32 flags, 50923 bcm_stat_lif_counting_source_t *source, 50924 bcm_stat_counter_lif_stack_id_t lif_stack_level, 50925 int priority) 50926 { 50927 return BCM_E_UNAVAIL; 50928 } 50929 50930 #ifdef BCM_TOMAHAWK3_SUPPORT 50931 int 50932 bcm_tomahawk3_stat_multi_get( 50933 int unit, 50934 bcm_port_t port, 50935 int nstat, 50936 bcm_stat_val_t *stat_arr, 50937 uint64 *value_arr) 50938 { 50939 return bcm_esw_stat_multi_get(unit, port, nstat, stat_arr, value_arr); 50940 } 50941 #endif 50942 50943 #ifdef BCM_TOMAHAWK3_SUPPORT 50944 int 50945 bcm_tomahawk3_stat_multi_get32( 50946 int unit, 50947 bcm_port_t port, 50948 int nstat, 50949 bcm_stat_val_t *stat_arr, 50950 uint32 *value_arr) 50951 { 50952 return bcm_esw_stat_multi_get32(unit, port, nstat, stat_arr, value_arr); 50953 } 50954 #endif 50955 50956 #ifdef BCM_TOMAHAWK3_SUPPORT 50957 int 50958 bcm_tomahawk3_stat_pkt_size_adjust_select_get( 50959 int unit, 50960 int flags, 50961 bcm_stat_counter_command_id_key_t *key, 50962 bcm_stat_pkt_size_adjust_select_type_t select_type, 50963 int *enable) 50964 { 50965 return bcm_esw_stat_pkt_size_adjust_select_get(unit, flags, key, select_type, enable); 50966 } 50967 #endif 50968 50969 #ifdef BCM_TOMAHAWK3_SUPPORT 50970 int 50971 bcm_tomahawk3_stat_pkt_size_adjust_select_set( 50972 int unit, 50973 int flags, 50974 bcm_stat_counter_command_id_key_t *key, 50975 bcm_stat_pkt_size_adjust_select_type_t select_type, 50976 int enable) 50977 { 50978 return bcm_esw_stat_pkt_size_adjust_select_set(unit, flags, key, select_type, enable); 50979 } 50980 #endif 50981 50982 #ifdef BCM_TOMAHAWK3_SUPPORT 50983 int 50984 bcm_tomahawk3_stat_pp_profile_create( 50985 int unit, 50986 int flags, 50987 bcm_stat_counter_interface_type_t engine_source, 50988 int *stat_pp_profile, 50989 bcm_stat_pp_profile_info_t *stat_pp_profile_info) 50990 { 50991 return bcm_esw_stat_pp_profile_create(unit, flags, engine_source, stat_pp_profile, stat_pp_profile_info); 50992 } 50993 #endif 50994 50995 #ifdef BCM_TOMAHAWK3_SUPPORT 50996 int 50997 bcm_tomahawk3_stat_pp_profile_delete( 50998 int unit, 50999 int stat_pp_profile) 51000 { 51001 return bcm_esw_stat_pp_profile_delete(unit, stat_pp_profile); 51002 } 51003 #endif 51004 51005 #ifdef BCM_TOMAHAWK3_SUPPORT 51006 int 51007 bcm_tomahawk3_stat_pp_profile_get( 51008 int unit, 51009 int stat_pp_profile, 51010 bcm_stat_pp_profile_info_t *stat_pp_profile_info) 51011 { 51012 return bcm_esw_stat_pp_profile_get(unit, stat_pp_profile, stat_pp_profile_info); 51013 } 51014 #endif 51015 51016 #ifdef BCM_TOMAHAWK3_SUPPORT 51017 int 51018 bcm_tomahawk3_stat_stif_record_format_get( 51019 int unit, 51020 int flags, 51021 int max_nof_elements, 51022 bcm_stat_stif_record_format_element_t *elements_array, 51023 int *nof_elements) 51024 { 51025 return bcm_esw_stat_stif_record_format_get(unit, flags, max_nof_elements, elements_array, nof_elements); 51026 } 51027 #endif 51028 51029 #ifdef BCM_TOMAHAWK3_SUPPORT 51030 int 51031 bcm_tomahawk3_stat_stif_record_format_set( 51032 int unit, 51033 int flags, 51034 int nof_elements, 51035 bcm_stat_stif_record_format_element_t *record_format_elements) 51036 { 51037 return bcm_esw_stat_stif_record_format_set(unit, flags, nof_elements, record_format_elements); 51038 } 51039 #endif 51040 51041 #ifdef BCM_TOMAHAWK3_SUPPORT 51042 int 51043 bcm_tomahawk3_stat_stif_source_mapping_get( 51044 int unit, 51045 int flags, 51046 bcm_stat_stif_source_t source, 51047 bcm_port_t *port) 51048 { 51049 return bcm_esw_stat_stif_source_mapping_get(unit, flags, source, port); 51050 } 51051 #endif 51052 51053 #ifdef BCM_TOMAHAWK3_SUPPORT 51054 int 51055 bcm_tomahawk3_stat_stif_source_mapping_set( 51056 int unit, 51057 int flags, 51058 bcm_stat_stif_source_t source, 51059 bcm_port_t port) 51060 { 51061 return bcm_esw_stat_stif_source_mapping_set(unit, flags, source, port); 51062 } 51063 #endif 51064 51065 #ifdef BCM_TOMAHAWK3_SUPPORT 51066 int 51067 bcm_tomahawk3_stat_sync( 51068 int unit) 51069 { 51070 return bcm_esw_stat_sync(unit); 51071 } 51072 #endif 51073 51074 #ifdef BCM_TOMAHAWK3_SUPPORT 51075 int 51076 bcm_tomahawk3_stat_sync_get( 51077 int unit, 51078 bcm_port_t port, 51079 bcm_stat_val_t type, 51080 uint64 *value) 51081 { 51082 return bcm_esw_stat_sync_get(unit, port, type, value); 51083 } 51084 #endif 51085 51086 #ifdef BCM_TOMAHAWK3_SUPPORT 51087 int 51088 bcm_tomahawk3_stat_sync_get32( 51089 int unit, 51090 bcm_port_t port, 51091 bcm_stat_val_t type, 51092 uint32 *value) 51093 { 51094 return bcm_esw_stat_sync_get32(unit, port, type, value); 51095 } 51096 #endif 51097 51098 #ifdef BCM_TOMAHAWK3_SUPPORT 51099 int 51100 bcm_tomahawk3_stat_sync_multi_get( 51101 int unit, 51102 bcm_port_t port, 51103 int nstat, 51104 bcm_stat_val_t *stat_arr, 51105 uint64 *value_arr) 51106 { 51107 return bcm_esw_stat_sync_multi_get(unit, port, nstat, stat_arr, value_arr); 51108 } 51109 #endif 51110 51111 #ifdef BCM_TOMAHAWK3_SUPPORT 51112 int 51113 bcm_tomahawk3_stat_sync_multi_get32( 51114 int unit, 51115 bcm_port_t port, 51116 int nstat, 51117 bcm_stat_val_t *stat_arr, 51118 uint32 *value_arr) 51119 { 51120 return bcm_esw_stat_sync_multi_get32(unit, port, nstat, stat_arr, value_arr); 51121 } 51122 #endif 51123 51124 int 51125 bcm_tomahawk3_stat_threshold_get( 51126 int unit, 51127 bcm_port_t port, 51128 bcm_stat_val_t stat, 51129 bcm_stat_threshold_t *threshold) 51130 { 51131 return BCM_E_UNAVAIL; 51132 } 51133 51134 int 51135 bcm_tomahawk3_stat_threshold_set( 51136 int unit, 51137 bcm_port_t port, 51138 bcm_stat_val_t stat, 51139 bcm_stat_threshold_t *threshold) 51140 { 51141 return BCM_E_UNAVAIL; 51142 } 51143 51144 #ifdef BCM_TOMAHAWK3_SUPPORT 51145 int 51146 bcm_tomahawk3_stg_clear( 51147 int unit) 51148 { 51149 return bcm_esw_stg_clear(unit); 51150 } 51151 #endif 51152 51153 #ifdef BCM_TOMAHAWK3_SUPPORT 51154 int 51155 bcm_tomahawk3_stg_count_get( 51156 int unit, 51157 int *max_stg) 51158 { 51159 return bcm_esw_stg_count_get(unit, max_stg); 51160 } 51161 #endif 51162 51163 #ifdef BCM_TOMAHAWK3_SUPPORT 51164 int 51165 bcm_tomahawk3_stg_create( 51166 int unit, 51167 bcm_stg_t *stg_ptr) 51168 { 51169 return bcm_esw_stg_create(unit, stg_ptr); 51170 } 51171 #endif 51172 51173 #ifdef BCM_TOMAHAWK3_SUPPORT 51174 int 51175 bcm_tomahawk3_stg_create_id( 51176 int unit, 51177 bcm_stg_t stg) 51178 { 51179 return bcm_esw_stg_create_id(unit, stg); 51180 } 51181 #endif 51182 51183 #ifdef BCM_TOMAHAWK3_SUPPORT 51184 int 51185 bcm_tomahawk3_stg_default_get( 51186 int unit, 51187 bcm_stg_t *stg_ptr) 51188 { 51189 return bcm_esw_stg_default_get(unit, stg_ptr); 51190 } 51191 #endif 51192 51193 #ifdef BCM_TOMAHAWK3_SUPPORT 51194 int 51195 bcm_tomahawk3_stg_default_set( 51196 int unit, 51197 bcm_stg_t stg) 51198 { 51199 return bcm_esw_stg_default_set(unit, stg); 51200 } 51201 #endif 51202 51203 #ifdef BCM_TOMAHAWK3_SUPPORT 51204 int 51205 bcm_tomahawk3_stg_destroy( 51206 int unit, 51207 bcm_stg_t stg) 51208 { 51209 return bcm_esw_stg_destroy(unit, stg); 51210 } 51211 #endif 51212 51213 #ifdef BCM_TOMAHAWK3_SUPPORT 51214 int 51215 bcm_tomahawk3_stg_init( 51216 int unit) 51217 { 51218 return bcm_esw_stg_init(unit); 51219 } 51220 #endif 51221 51222 #ifdef BCM_TOMAHAWK3_SUPPORT 51223 int 51224 bcm_tomahawk3_stg_list( 51225 int unit, 51226 bcm_stg_t **list, 51227 int *count) 51228 { 51229 return bcm_esw_stg_list(unit, list, count); 51230 } 51231 #endif 51232 51233 #ifdef BCM_TOMAHAWK3_SUPPORT 51234 int 51235 bcm_tomahawk3_stg_list_destroy( 51236 int unit, 51237 bcm_stg_t *list, 51238 int count) 51239 { 51240 return bcm_esw_stg_list_destroy(unit, list, count); 51241 } 51242 #endif 51243 51244 #ifdef BCM_TOMAHAWK3_SUPPORT 51245 int 51246 bcm_tomahawk3_stg_stp_get( 51247 int unit, 51248 bcm_stg_t stg, 51249 bcm_port_t port, 51250 int *stp_state) 51251 { 51252 return bcm_esw_stg_stp_get(unit, stg, port, stp_state); 51253 } 51254 #endif 51255 51256 #ifdef BCM_TOMAHAWK3_SUPPORT 51257 int 51258 bcm_tomahawk3_stg_stp_set( 51259 int unit, 51260 bcm_stg_t stg, 51261 bcm_port_t port, 51262 int stp_state) 51263 { 51264 return bcm_esw_stg_stp_set(unit, stg, port, stp_state); 51265 } 51266 #endif 51267 51268 #ifdef BCM_TOMAHAWK3_SUPPORT 51269 int 51270 bcm_tomahawk3_stg_vlan_add( 51271 int unit, 51272 bcm_stg_t stg, 51273 bcm_vlan_t vid) 51274 { 51275 return bcm_esw_stg_vlan_add(unit, stg, vid); 51276 } 51277 #endif 51278 51279 #ifdef BCM_TOMAHAWK3_SUPPORT 51280 int 51281 bcm_tomahawk3_stg_vlan_list( 51282 int unit, 51283 bcm_stg_t stg, 51284 bcm_vlan_t **list, 51285 int *count) 51286 { 51287 return bcm_esw_stg_vlan_list(unit, stg, list, count); 51288 } 51289 #endif 51290 51291 #ifdef BCM_TOMAHAWK3_SUPPORT 51292 int 51293 bcm_tomahawk3_stg_vlan_list_destroy( 51294 int unit, 51295 bcm_vlan_t *list, 51296 int count) 51297 { 51298 return bcm_esw_stg_vlan_list_destroy(unit, list, count); 51299 } 51300 #endif 51301 51302 #ifdef BCM_TOMAHAWK3_SUPPORT 51303 int 51304 bcm_tomahawk3_stg_vlan_remove( 51305 int unit, 51306 bcm_stg_t stg, 51307 bcm_vlan_t vid) 51308 { 51309 return bcm_esw_stg_vlan_remove(unit, stg, vid); 51310 } 51311 #endif 51312 51313 #ifdef BCM_TOMAHAWK3_SUPPORT 51314 int 51315 bcm_tomahawk3_stg_vlan_remove_all( 51316 int unit, 51317 bcm_stg_t stg) 51318 { 51319 return bcm_esw_stg_vlan_remove_all(unit, stg); 51320 } 51321 #endif 51322 51323 int 51324 bcm_tomahawk3_stk_domain_stk_trunk_add( 51325 int unit, 51326 int tm_domain, 51327 bcm_trunk_t stk_trunk) 51328 { 51329 return BCM_E_UNAVAIL; 51330 } 51331 51332 int 51333 bcm_tomahawk3_stk_domain_stk_trunk_delete( 51334 int unit, 51335 int tm_domain, 51336 bcm_trunk_t stk_trunk) 51337 { 51338 return BCM_E_UNAVAIL; 51339 } 51340 51341 int 51342 bcm_tomahawk3_stk_domain_stk_trunk_get( 51343 int unit, 51344 bcm_trunk_t stk_trunk, 51345 int domain_max, 51346 int *domain_array, 51347 int *domain_count) 51348 { 51349 return BCM_E_UNAVAIL; 51350 } 51351 51352 int 51353 bcm_tomahawk3_stk_fmod_lmod_mapping_get( 51354 int unit, 51355 bcm_port_t port, 51356 bcm_module_t *fmod, 51357 bcm_module_t *lmod) 51358 { 51359 return BCM_E_UNAVAIL; 51360 } 51361 51362 int 51363 bcm_tomahawk3_stk_fmod_lmod_mapping_set( 51364 int unit, 51365 bcm_port_t port, 51366 bcm_module_t fmod, 51367 bcm_module_t lmod) 51368 { 51369 return BCM_E_UNAVAIL; 51370 } 51371 51372 int 51373 bcm_tomahawk3_stk_fmod_smod_mapping_get( 51374 int unit, 51375 bcm_port_t port, 51376 bcm_module_t fmod, 51377 bcm_module_t *smod, 51378 bcm_port_t *sport, 51379 uint32 *nports) 51380 { 51381 return BCM_E_UNAVAIL; 51382 } 51383 51384 int 51385 bcm_tomahawk3_stk_fmod_smod_mapping_set( 51386 int unit, 51387 bcm_port_t port, 51388 bcm_module_t fmod, 51389 bcm_module_t smod, 51390 bcm_port_t sport, 51391 uint32 nports) 51392 { 51393 return BCM_E_UNAVAIL; 51394 } 51395 51396 int 51397 bcm_tomahawk3_stk_gport_sysport_get( 51398 int unit, 51399 bcm_gport_t gport, 51400 bcm_gport_t *sysport) 51401 { 51402 return BCM_E_UNAVAIL; 51403 } 51404 51405 int 51406 bcm_tomahawk3_stk_init( 51407 int unit) 51408 { 51409 return BCM_E_UNAVAIL; 51410 } 51411 51412 int 51413 bcm_tomahawk3_stk_mode_get( 51414 int unit, 51415 uint32 *flags) 51416 { 51417 return BCM_E_UNAVAIL; 51418 } 51419 51420 int 51421 bcm_tomahawk3_stk_mode_set( 51422 int unit, 51423 uint32 flags) 51424 { 51425 return BCM_E_UNAVAIL; 51426 } 51427 51428 int 51429 bcm_tomahawk3_stk_modid_config_add( 51430 int unit, 51431 bcm_stk_modid_config_t *modid) 51432 { 51433 return BCM_E_UNAVAIL; 51434 } 51435 51436 int 51437 bcm_tomahawk3_stk_modid_config_delete( 51438 int unit, 51439 bcm_stk_modid_config_t *modid) 51440 { 51441 return BCM_E_UNAVAIL; 51442 } 51443 51444 int 51445 bcm_tomahawk3_stk_modid_config_delete_all( 51446 int unit) 51447 { 51448 return BCM_E_UNAVAIL; 51449 } 51450 51451 int 51452 bcm_tomahawk3_stk_modid_config_get( 51453 int unit, 51454 bcm_stk_modid_config_t *modid) 51455 { 51456 return BCM_E_UNAVAIL; 51457 } 51458 51459 int 51460 bcm_tomahawk3_stk_modid_config_get_all( 51461 int unit, 51462 int modid_max, 51463 bcm_stk_modid_config_t *modid_array, 51464 int *modid_count) 51465 { 51466 return BCM_E_UNAVAIL; 51467 } 51468 51469 int 51470 bcm_tomahawk3_stk_modid_config_set( 51471 int unit, 51472 bcm_stk_modid_config_t *modid) 51473 { 51474 return BCM_E_UNAVAIL; 51475 } 51476 51477 #ifdef BCM_TOMAHAWK3_SUPPORT 51478 int 51479 bcm_tomahawk3_stk_modid_count( 51480 int unit, 51481 int *num_modid) 51482 { 51483 return bcm_esw_stk_modid_count(unit, num_modid); 51484 } 51485 #endif 51486 51487 int 51488 bcm_tomahawk3_stk_modid_domain_add( 51489 int unit, 51490 int modid, 51491 int tm_domain) 51492 { 51493 return BCM_E_UNAVAIL; 51494 } 51495 51496 int 51497 bcm_tomahawk3_stk_modid_domain_delete( 51498 int unit, 51499 int modid, 51500 int tm_domain) 51501 { 51502 return BCM_E_UNAVAIL; 51503 } 51504 51505 int 51506 bcm_tomahawk3_stk_modid_domain_get( 51507 int unit, 51508 int tm_domain, 51509 int mod_max, 51510 int *mod_array, 51511 int *mod_count) 51512 { 51513 return BCM_E_UNAVAIL; 51514 } 51515 51516 #ifdef BCM_TOMAHAWK3_SUPPORT 51517 int 51518 bcm_tomahawk3_stk_modid_get( 51519 int unit, 51520 int *modid) 51521 { 51522 return bcm_esw_stk_modid_get(unit, modid); 51523 } 51524 #endif 51525 51526 #ifdef BCM_TOMAHAWK3_SUPPORT 51527 int 51528 bcm_tomahawk3_stk_modid_set( 51529 int unit, 51530 int modid) 51531 { 51532 return bcm_esw_stk_modid_set(unit, modid); 51533 } 51534 #endif 51535 51536 int 51537 bcm_tomahawk3_stk_modmap_enable_get( 51538 int unit, 51539 bcm_port_t port, 51540 int *enable) 51541 { 51542 return BCM_E_UNAVAIL; 51543 } 51544 51545 int 51546 bcm_tomahawk3_stk_modmap_enable_set( 51547 int unit, 51548 bcm_port_t port, 51549 int enable) 51550 { 51551 return BCM_E_UNAVAIL; 51552 } 51553 51554 int 51555 bcm_tomahawk3_stk_modmap_map( 51556 int unit, 51557 int setget, 51558 bcm_module_t mod_in, 51559 bcm_port_t port_in, 51560 bcm_module_t *mod_out, 51561 bcm_port_t *port_out) 51562 { 51563 return BCM_E_UNAVAIL; 51564 } 51565 51566 int 51567 bcm_tomahawk3_stk_modmap_register( 51568 int unit, 51569 bcm_stk_modmap_cb_t func) 51570 { 51571 return BCM_E_UNAVAIL; 51572 } 51573 51574 int 51575 bcm_tomahawk3_stk_modmap_unregister( 51576 int unit) 51577 { 51578 return BCM_E_UNAVAIL; 51579 } 51580 51581 int 51582 bcm_tomahawk3_stk_modport_add( 51583 int unit, 51584 int modid, 51585 bcm_port_t port) 51586 { 51587 return BCM_E_UNAVAIL; 51588 } 51589 51590 int 51591 bcm_tomahawk3_stk_modport_clear( 51592 int unit, 51593 int modid) 51594 { 51595 return BCM_E_UNAVAIL; 51596 } 51597 51598 int 51599 bcm_tomahawk3_stk_modport_clear_all( 51600 int unit) 51601 { 51602 return BCM_E_UNAVAIL; 51603 } 51604 51605 int 51606 bcm_tomahawk3_stk_modport_delete( 51607 int unit, 51608 int modid, 51609 bcm_port_t port) 51610 { 51611 return BCM_E_UNAVAIL; 51612 } 51613 51614 int 51615 bcm_tomahawk3_stk_modport_get( 51616 int unit, 51617 int modid, 51618 int *port) 51619 { 51620 return BCM_E_UNAVAIL; 51621 } 51622 51623 int 51624 bcm_tomahawk3_stk_modport_get_all( 51625 int unit, 51626 int modid, 51627 int port_max, 51628 int *port_array, 51629 int *port_count) 51630 { 51631 return BCM_E_UNAVAIL; 51632 } 51633 51634 int 51635 bcm_tomahawk3_stk_modport_remote_map_get( 51636 int unit, 51637 bcm_gport_t port, 51638 uint32 flags, 51639 int *remote_modid, 51640 bcm_port_t *remote_port) 51641 { 51642 return BCM_E_UNAVAIL; 51643 } 51644 51645 int 51646 bcm_tomahawk3_stk_modport_remote_map_set( 51647 int unit, 51648 bcm_gport_t port, 51649 uint32 flags, 51650 int remote_modid, 51651 bcm_port_t remote_port) 51652 { 51653 return BCM_E_UNAVAIL; 51654 } 51655 51656 int 51657 bcm_tomahawk3_stk_modport_set( 51658 int unit, 51659 int modid, 51660 int port) 51661 { 51662 return BCM_E_UNAVAIL; 51663 } 51664 51665 int 51666 bcm_tomahawk3_stk_module_control_get( 51667 int unit, 51668 uint32 flags, 51669 bcm_module_t module, 51670 bcm_stk_module_control_t control, 51671 int *arg) 51672 { 51673 return BCM_E_UNAVAIL; 51674 } 51675 51676 int 51677 bcm_tomahawk3_stk_module_control_set( 51678 int unit, 51679 uint32 flags, 51680 bcm_module_t module, 51681 bcm_stk_module_control_t control, 51682 int arg) 51683 { 51684 return BCM_E_UNAVAIL; 51685 } 51686 51687 int 51688 bcm_tomahawk3_stk_module_enable( 51689 int unit, 51690 bcm_module_t modid, 51691 int nports, 51692 int enable) 51693 { 51694 return BCM_E_UNAVAIL; 51695 } 51696 51697 int 51698 bcm_tomahawk3_stk_module_max_get( 51699 int unit, 51700 uint32 flags, 51701 bcm_module_t *max_module) 51702 { 51703 return BCM_E_UNAVAIL; 51704 } 51705 51706 int 51707 bcm_tomahawk3_stk_module_max_set( 51708 int unit, 51709 uint32 flags, 51710 bcm_module_t max_module) 51711 { 51712 return BCM_E_UNAVAIL; 51713 } 51714 51715 #ifdef BCM_TOMAHAWK3_SUPPORT 51716 int 51717 bcm_tomahawk3_stk_my_modid_get( 51718 int unit, 51719 int *my_modid) 51720 { 51721 return bcm_esw_stk_my_modid_get(unit, my_modid); 51722 } 51723 #endif 51724 51725 #ifdef BCM_TOMAHAWK3_SUPPORT 51726 int 51727 bcm_tomahawk3_stk_my_modid_set( 51728 int unit, 51729 int my_modid) 51730 { 51731 return bcm_esw_stk_my_modid_set(unit, my_modid); 51732 } 51733 #endif 51734 51735 int 51736 bcm_tomahawk3_stk_pbmp_get( 51737 int unit, 51738 bcm_pbmp_t *cur_pbm, 51739 bcm_pbmp_t *inactive_pbm) 51740 { 51741 return BCM_E_UNAVAIL; 51742 } 51743 51744 int 51745 bcm_tomahawk3_stk_port_get( 51746 int unit, 51747 bcm_port_t port, 51748 uint32 *flags) 51749 { 51750 return BCM_E_UNAVAIL; 51751 } 51752 51753 int 51754 bcm_tomahawk3_stk_port_modmap_group_get( 51755 int unit, 51756 bcm_port_t port, 51757 int *group) 51758 { 51759 return BCM_E_UNAVAIL; 51760 } 51761 51762 int 51763 bcm_tomahawk3_stk_port_modmap_group_max_get( 51764 int unit, 51765 int *max_group) 51766 { 51767 return BCM_E_UNAVAIL; 51768 } 51769 51770 int 51771 bcm_tomahawk3_stk_port_modmap_group_set( 51772 int unit, 51773 bcm_port_t port, 51774 int group) 51775 { 51776 return BCM_E_UNAVAIL; 51777 } 51778 51779 int 51780 bcm_tomahawk3_stk_port_modport_add( 51781 int unit, 51782 bcm_port_t ing_port, 51783 bcm_module_t dest_modid, 51784 bcm_port_t dest_port) 51785 { 51786 return BCM_E_UNAVAIL; 51787 } 51788 51789 int 51790 bcm_tomahawk3_stk_port_modport_clear( 51791 int unit, 51792 bcm_port_t ing_port, 51793 bcm_module_t dest_modid) 51794 { 51795 return BCM_E_UNAVAIL; 51796 } 51797 51798 int 51799 bcm_tomahawk3_stk_port_modport_clear_all( 51800 int unit, 51801 bcm_port_t ing_port) 51802 { 51803 return BCM_E_UNAVAIL; 51804 } 51805 51806 int 51807 bcm_tomahawk3_stk_port_modport_delete( 51808 int unit, 51809 bcm_port_t ing_port, 51810 bcm_module_t dest_modid, 51811 bcm_port_t dest_port) 51812 { 51813 return BCM_E_UNAVAIL; 51814 } 51815 51816 int 51817 bcm_tomahawk3_stk_port_modport_get( 51818 int unit, 51819 bcm_port_t ing_port, 51820 bcm_module_t dest_modid, 51821 bcm_port_t *dest_port) 51822 { 51823 return BCM_E_UNAVAIL; 51824 } 51825 51826 int 51827 bcm_tomahawk3_stk_port_modport_get_all( 51828 int unit, 51829 bcm_port_t ing_port, 51830 bcm_module_t dest_modid, 51831 int dest_port_max, 51832 bcm_port_t *dest_port_array, 51833 int *dest_port_count) 51834 { 51835 return BCM_E_UNAVAIL; 51836 } 51837 51838 int 51839 bcm_tomahawk3_stk_port_modport_set( 51840 int unit, 51841 bcm_port_t ing_port, 51842 bcm_module_t dest_modid, 51843 bcm_port_t dest_port) 51844 { 51845 return BCM_E_UNAVAIL; 51846 } 51847 51848 int 51849 bcm_tomahawk3_stk_port_set( 51850 int unit, 51851 bcm_port_t port, 51852 uint32 flags) 51853 { 51854 return BCM_E_UNAVAIL; 51855 } 51856 51857 int 51858 bcm_tomahawk3_stk_sysport_gport_get( 51859 int unit, 51860 bcm_gport_t sysport, 51861 bcm_gport_t *gport) 51862 { 51863 return BCM_E_UNAVAIL; 51864 } 51865 51866 int 51867 bcm_tomahawk3_stk_sysport_gport_set( 51868 int unit, 51869 bcm_gport_t sysport, 51870 bcm_gport_t gport) 51871 { 51872 return BCM_E_UNAVAIL; 51873 } 51874 51875 int 51876 bcm_tomahawk3_stk_system_gport_map_create( 51877 int unit, 51878 bcm_stk_system_gport_map_t *sys_gport_map) 51879 { 51880 return BCM_E_UNAVAIL; 51881 } 51882 51883 int 51884 bcm_tomahawk3_stk_system_gport_map_destroy( 51885 int unit, 51886 bcm_gport_t system_gport) 51887 { 51888 return BCM_E_UNAVAIL; 51889 } 51890 51891 int 51892 bcm_tomahawk3_stk_system_gport_map_get( 51893 int unit, 51894 bcm_stk_system_gport_map_t *sys_gport_map) 51895 { 51896 return BCM_E_UNAVAIL; 51897 } 51898 51899 int 51900 bcm_tomahawk3_stk_ucbitmap_del( 51901 int unit, 51902 bcm_port_t port, 51903 int modid, 51904 bcm_pbmp_t pbmp) 51905 { 51906 return BCM_E_UNAVAIL; 51907 } 51908 51909 int 51910 bcm_tomahawk3_stk_ucbitmap_get( 51911 int unit, 51912 int port, 51913 int modid, 51914 bcm_pbmp_t *pbmp) 51915 { 51916 return BCM_E_UNAVAIL; 51917 } 51918 51919 int 51920 bcm_tomahawk3_stk_ucbitmap_set( 51921 int unit, 51922 int port, 51923 int modid, 51924 bcm_pbmp_t pbmp) 51925 { 51926 return BCM_E_UNAVAIL; 51927 } 51928 51929 int 51930 bcm_tomahawk3_stk_update_callback_register( 51931 int unit, 51932 bcm_stk_cb_f cb, 51933 void *cookie) 51934 { 51935 return BCM_E_UNAVAIL; 51936 } 51937 51938 int 51939 bcm_tomahawk3_stk_update_callback_unregister( 51940 int unit, 51941 bcm_stk_cb_f cb, 51942 void *cookie) 51943 { 51944 return BCM_E_UNAVAIL; 51945 } 51946 51947 #ifdef BCM_TOMAHAWK3_SUPPORT 51948 int 51949 bcm_tomahawk3_subport_cleanup( 51950 int unit) 51951 { 51952 return bcm_esw_subport_cleanup(unit); 51953 } 51954 #endif 51955 51956 #ifdef BCM_TOMAHAWK3_SUPPORT 51957 int 51958 bcm_tomahawk3_subport_gport_modport_get( 51959 int unit, 51960 bcm_gport_t subport_gport, 51961 bcm_module_t *module, 51962 bcm_port_t *port) 51963 { 51964 return bcm_esw_subport_gport_modport_get(unit, subport_gport, module, port); 51965 } 51966 #endif 51967 51968 #ifdef BCM_TOMAHAWK3_SUPPORT 51969 int 51970 bcm_tomahawk3_subport_group_create( 51971 int unit, 51972 bcm_subport_group_config_t *config, 51973 bcm_gport_t *group) 51974 { 51975 return bcm_esw_subport_group_create(unit, config, group); 51976 } 51977 #endif 51978 51979 #ifdef BCM_TOMAHAWK3_SUPPORT 51980 int 51981 bcm_tomahawk3_subport_group_destroy( 51982 int unit, 51983 bcm_gport_t group) 51984 { 51985 return bcm_esw_subport_group_destroy(unit, group); 51986 } 51987 #endif 51988 51989 #ifdef BCM_TOMAHAWK3_SUPPORT 51990 int 51991 bcm_tomahawk3_subport_group_get( 51992 int unit, 51993 bcm_gport_t group, 51994 bcm_subport_group_config_t *config) 51995 { 51996 return bcm_esw_subport_group_get(unit, group, config); 51997 } 51998 #endif 51999 52000 #ifdef BCM_TOMAHAWK3_SUPPORT 52001 int 52002 bcm_tomahawk3_subport_group_linkphy_config_get( 52003 int unit, 52004 bcm_gport_t port, 52005 bcm_subport_group_linkphy_config_t *linkphy_config) 52006 { 52007 return bcm_esw_subport_group_linkphy_config_get(unit, port, linkphy_config); 52008 } 52009 #endif 52010 52011 #ifdef BCM_TOMAHAWK3_SUPPORT 52012 int 52013 bcm_tomahawk3_subport_group_linkphy_config_set( 52014 int unit, 52015 bcm_gport_t port, 52016 bcm_subport_group_linkphy_config_t *linkphy_config) 52017 { 52018 return bcm_esw_subport_group_linkphy_config_set(unit, port, linkphy_config); 52019 } 52020 #endif 52021 52022 #ifdef BCM_TOMAHAWK3_SUPPORT 52023 int 52024 bcm_tomahawk3_subport_group_traverse( 52025 int unit, 52026 bcm_gport_t subport_group, 52027 bcm_subport_port_traverse_cb cb, 52028 void *user_data) 52029 { 52030 return bcm_esw_subport_group_traverse(unit, subport_group, cb, user_data); 52031 } 52032 #endif 52033 52034 #ifdef BCM_TOMAHAWK3_SUPPORT 52035 int 52036 bcm_tomahawk3_subport_init( 52037 int unit) 52038 { 52039 return bcm_esw_subport_init(unit); 52040 } 52041 #endif 52042 52043 #ifdef BCM_TOMAHAWK3_SUPPORT 52044 int 52045 bcm_tomahawk3_subport_linkphy_rx_error_register( 52046 int unit, 52047 bcm_subport_linkphy_rx_errors_t errors, 52048 bcm_subport_linkphy_rx_error_reg_info_t *reg_info, 52049 void *user_data) 52050 { 52051 return bcm_esw_subport_linkphy_rx_error_register(unit, errors, reg_info, user_data); 52052 } 52053 #endif 52054 52055 #ifdef BCM_TOMAHAWK3_SUPPORT 52056 int 52057 bcm_tomahawk3_subport_linkphy_rx_error_unregister( 52058 int unit, 52059 bcm_subport_linkphy_rx_errors_t errors) 52060 { 52061 return bcm_esw_subport_linkphy_rx_error_unregister(unit, errors); 52062 } 52063 #endif 52064 52065 #ifdef BCM_TOMAHAWK3_SUPPORT 52066 int 52067 bcm_tomahawk3_subport_port_add( 52068 int unit, 52069 bcm_subport_config_t *config, 52070 bcm_gport_t *port) 52071 { 52072 return bcm_esw_subport_port_add(unit, config, port); 52073 } 52074 #endif 52075 52076 #ifdef BCM_TOMAHAWK3_SUPPORT 52077 int 52078 bcm_tomahawk3_subport_port_delete( 52079 int unit, 52080 bcm_gport_t port) 52081 { 52082 return bcm_esw_subport_port_delete(unit, port); 52083 } 52084 #endif 52085 52086 #ifdef BCM_TOMAHAWK3_SUPPORT 52087 int 52088 bcm_tomahawk3_subport_port_get( 52089 int unit, 52090 bcm_gport_t port, 52091 bcm_subport_config_t *config) 52092 { 52093 return bcm_esw_subport_port_get(unit, port, config); 52094 } 52095 #endif 52096 52097 #ifdef BCM_TOMAHAWK3_SUPPORT 52098 int 52099 bcm_tomahawk3_subport_port_stat_get( 52100 int unit, 52101 bcm_gport_t port, 52102 int stream_id, 52103 bcm_subport_stat_t stat_type, 52104 uint64 *val) 52105 { 52106 return bcm_esw_subport_port_stat_get(unit, port, stream_id, stat_type, val); 52107 } 52108 #endif 52109 52110 #ifdef BCM_TOMAHAWK3_SUPPORT 52111 int 52112 bcm_tomahawk3_subport_port_stat_set( 52113 int unit, 52114 bcm_gport_t port, 52115 int stream_id, 52116 bcm_subport_stat_t stat_type, 52117 uint64 val) 52118 { 52119 return bcm_esw_subport_port_stat_set(unit, port, stream_id, stat_type, val); 52120 } 52121 #endif 52122 52123 #ifdef BCM_TOMAHAWK3_SUPPORT 52124 int 52125 bcm_tomahawk3_subport_port_traverse( 52126 int unit, 52127 bcm_subport_port_traverse_cb cb, 52128 void *user_data) 52129 { 52130 return bcm_esw_subport_port_traverse(unit, cb, user_data); 52131 } 52132 #endif 52133 52134 #ifdef BCM_TOMAHAWK3_SUPPORT 52135 int 52136 bcm_tomahawk3_switch_agm_create( 52137 int unit, 52138 uint32 options, 52139 bcm_switch_agm_info_t *agm_info) 52140 { 52141 return bcm_esw_switch_agm_create(unit, options, agm_info); 52142 } 52143 #endif 52144 52145 #ifdef BCM_TOMAHAWK3_SUPPORT 52146 int 52147 bcm_tomahawk3_switch_agm_destroy( 52148 int unit, 52149 bcm_switch_agm_id_t agm_id) 52150 { 52151 return bcm_esw_switch_agm_destroy(unit, agm_id); 52152 } 52153 #endif 52154 52155 #ifdef BCM_TOMAHAWK3_SUPPORT 52156 int 52157 bcm_tomahawk3_switch_agm_enable_get( 52158 int unit, 52159 bcm_switch_agm_id_t agm_id, 52160 int *enable) 52161 { 52162 return bcm_esw_switch_agm_enable_get(unit, agm_id, enable); 52163 } 52164 #endif 52165 52166 #ifdef BCM_TOMAHAWK3_SUPPORT 52167 int 52168 bcm_tomahawk3_switch_agm_enable_set( 52169 int unit, 52170 bcm_switch_agm_id_t agm_id, 52171 int enable) 52172 { 52173 return bcm_esw_switch_agm_enable_set(unit, agm_id, enable); 52174 } 52175 #endif 52176 52177 #ifdef BCM_TOMAHAWK3_SUPPORT 52178 int 52179 bcm_tomahawk3_switch_agm_get( 52180 int unit, 52181 bcm_switch_agm_info_t *agm_info) 52182 { 52183 return bcm_esw_switch_agm_get(unit, agm_info); 52184 } 52185 #endif 52186 52187 #ifdef BCM_TOMAHAWK3_SUPPORT 52188 int 52189 bcm_tomahawk3_switch_agm_l3_ecmp_attach_get( 52190 int unit, 52191 bcm_switch_agm_id_t agm_id, 52192 bcm_if_t *l3_ecmp_id) 52193 { 52194 return bcm_esw_switch_agm_l3_ecmp_attach_get(unit, agm_id, l3_ecmp_id); 52195 } 52196 #endif 52197 52198 #ifdef BCM_TOMAHAWK3_SUPPORT 52199 int 52200 bcm_tomahawk3_switch_agm_stat_clear( 52201 int unit, 52202 bcm_switch_agm_id_t agm_id) 52203 { 52204 return bcm_esw_switch_agm_stat_clear(unit, agm_id); 52205 } 52206 #endif 52207 52208 #ifdef BCM_TOMAHAWK3_SUPPORT 52209 int 52210 bcm_tomahawk3_switch_agm_stat_get( 52211 int unit, 52212 bcm_switch_agm_id_t agm_id, 52213 int nstat, 52214 bcm_switch_agm_stat_t *stat_arr) 52215 { 52216 return bcm_esw_switch_agm_stat_get(unit, agm_id, nstat, stat_arr); 52217 } 52218 #endif 52219 52220 #ifdef BCM_TOMAHAWK3_SUPPORT 52221 int 52222 bcm_tomahawk3_switch_agm_traverse( 52223 int unit, 52224 int flags, 52225 bcm_switch_agm_traverse_cb trav_fn, 52226 void *user_data) 52227 { 52228 return bcm_esw_switch_agm_traverse(unit, flags, trav_fn, user_data); 52229 } 52230 #endif 52231 52232 #ifdef BCM_TOMAHAWK3_SUPPORT 52233 int 52234 bcm_tomahawk3_switch_agm_trunk_attach_get( 52235 int unit, 52236 bcm_switch_agm_id_t agm_id, 52237 bcm_trunk_t *trunk_id) 52238 { 52239 return bcm_esw_switch_agm_trunk_attach_get(unit, agm_id, trunk_id); 52240 } 52241 #endif 52242 52243 #ifdef BCM_TOMAHAWK3_SUPPORT 52244 int 52245 bcm_tomahawk3_switch_chip_info_get( 52246 int unit, 52247 bcm_switch_chip_info_t info_type, 52248 int max_size, 52249 void *data_buf, 52250 int *actual_size) 52251 { 52252 return bcm_esw_switch_chip_info_get(unit, info_type, max_size, data_buf, actual_size); 52253 } 52254 #endif 52255 52256 #ifdef BCM_TOMAHAWK3_SUPPORT 52257 int 52258 bcm_tomahawk3_switch_control_get( 52259 int unit, 52260 bcm_switch_control_t type, 52261 int *arg) 52262 { 52263 return bcm_esw_switch_control_get(unit, type, arg); 52264 } 52265 #endif 52266 52267 int 52268 bcm_tomahawk3_switch_control_indexed_get( 52269 int unit, 52270 bcm_switch_control_key_t key, 52271 bcm_switch_control_info_t *value) 52272 { 52273 return BCM_E_UNAVAIL; 52274 } 52275 52276 #ifdef BCM_TOMAHAWK3_SUPPORT 52277 int 52278 bcm_tomahawk3_switch_control_indexed_port_get( 52279 int unit, 52280 bcm_port_t port, 52281 bcm_switch_control_key_t key, 52282 bcm_switch_control_info_t *value) 52283 { 52284 return bcm_esw_switch_control_indexed_port_get(unit, port, key, value); 52285 } 52286 #endif 52287 52288 #ifdef BCM_TOMAHAWK3_SUPPORT 52289 int 52290 bcm_tomahawk3_switch_control_indexed_port_set( 52291 int unit, 52292 bcm_port_t port, 52293 bcm_switch_control_key_t key, 52294 bcm_switch_control_info_t value) 52295 { 52296 return bcm_esw_switch_control_indexed_port_set(unit, port, key, value); 52297 } 52298 #endif 52299 52300 int 52301 bcm_tomahawk3_switch_control_indexed_set( 52302 int unit, 52303 bcm_switch_control_key_t key, 52304 bcm_switch_control_info_t value) 52305 { 52306 return BCM_E_UNAVAIL; 52307 } 52308 52309 #ifdef BCM_TOMAHAWK3_SUPPORT 52310 int 52311 bcm_tomahawk3_switch_control_port_get( 52312 int unit, 52313 bcm_port_t port, 52314 bcm_switch_control_t type, 52315 int *arg) 52316 { 52317 return bcm_esw_switch_control_port_get(unit, port, type, arg); 52318 } 52319 #endif 52320 52321 #ifdef BCM_TOMAHAWK3_SUPPORT 52322 int 52323 bcm_tomahawk3_switch_control_port_set( 52324 int unit, 52325 bcm_port_t port, 52326 bcm_switch_control_t type, 52327 int arg) 52328 { 52329 return bcm_esw_switch_control_port_set(unit, port, type, arg); 52330 } 52331 #endif 52332 52333 #ifdef BCM_TOMAHAWK3_SUPPORT 52334 int 52335 bcm_tomahawk3_switch_control_set( 52336 int unit, 52337 bcm_switch_control_t type, 52338 int arg) 52339 { 52340 return bcm_esw_switch_control_set(unit, type, arg); 52341 } 52342 #endif 52343 52344 #ifdef BCM_TOMAHAWK3_SUPPORT 52345 int 52346 bcm_tomahawk3_switch_dosattack_event_get( 52347 int unit, 52348 uint32 flags, 52349 bcm_switch_dosattack_event_t event, 52350 int *arg) 52351 { 52352 return bcm_esw_switch_dosattack_event_get(unit, flags, event, arg); 52353 } 52354 #endif 52355 52356 #ifdef BCM_TOMAHAWK3_SUPPORT 52357 int 52358 bcm_tomahawk3_switch_dosattack_event_set( 52359 int unit, 52360 uint32 flags, 52361 bcm_switch_dosattack_event_t event, 52362 int arg) 52363 { 52364 return bcm_esw_switch_dosattack_event_set(unit, flags, event, arg); 52365 } 52366 #endif 52367 52368 #ifdef BCM_TOMAHAWK3_SUPPORT 52369 int 52370 bcm_tomahawk3_switch_dram_init( 52371 int unit, 52372 uint32 flags) 52373 { 52374 return bcm_esw_switch_dram_init(unit, flags); 52375 } 52376 #endif 52377 52378 #ifdef BCM_TOMAHAWK3_SUPPORT 52379 int 52380 bcm_tomahawk3_switch_dram_power_down( 52381 int unit, 52382 uint32 flags) 52383 { 52384 return bcm_esw_switch_dram_power_down(unit, flags); 52385 } 52386 #endif 52387 52388 #ifdef BCM_TOMAHAWK3_SUPPORT 52389 int 52390 bcm_tomahawk3_switch_dram_power_down_cb_register( 52391 int unit, 52392 uint32 flags, 52393 bcm_switch_dram_power_down_callback_t callback, 52394 void *userdata) 52395 { 52396 return bcm_esw_switch_dram_power_down_cb_register(unit, flags, callback, userdata); 52397 } 52398 #endif 52399 52400 #ifdef BCM_TOMAHAWK3_SUPPORT 52401 int 52402 bcm_tomahawk3_switch_dram_power_down_cb_unregister( 52403 int unit, 52404 bcm_switch_dram_power_down_callback_t callback, 52405 void *userdata) 52406 { 52407 return bcm_esw_switch_dram_power_down_cb_unregister(unit, callback, userdata); 52408 } 52409 #endif 52410 52411 #ifdef BCM_TOMAHAWK3_SUPPORT 52412 int 52413 bcm_tomahawk3_switch_dram_traffic_enable_set( 52414 int unit, 52415 uint32 flags, 52416 uint32 enable) 52417 { 52418 return bcm_esw_switch_dram_traffic_enable_set(unit, flags, enable); 52419 } 52420 #endif 52421 52422 int 52423 bcm_tomahawk3_switch_dram_vendor_info_get( 52424 int unit, 52425 bcm_switch_dram_vendor_info_t *info) 52426 { 52427 return BCM_E_UNAVAIL; 52428 } 52429 52430 #ifdef BCM_TOMAHAWK3_SUPPORT 52431 int 52432 bcm_tomahawk3_switch_encap_create( 52433 int unit, 52434 bcm_switch_encap_info_t *encap_info, 52435 bcm_if_t *encap_id) 52436 { 52437 return bcm_esw_switch_encap_create(unit, encap_info, encap_id); 52438 } 52439 #endif 52440 52441 #ifdef BCM_TOMAHAWK3_SUPPORT 52442 int 52443 bcm_tomahawk3_switch_encap_destroy( 52444 int unit, 52445 bcm_if_t encap_id) 52446 { 52447 return bcm_esw_switch_encap_destroy(unit, encap_id); 52448 } 52449 #endif 52450 52451 #ifdef BCM_TOMAHAWK3_SUPPORT 52452 int 52453 bcm_tomahawk3_switch_encap_destroy_all( 52454 int unit) 52455 { 52456 return bcm_esw_switch_encap_destroy_all(unit); 52457 } 52458 #endif 52459 52460 #ifdef BCM_TOMAHAWK3_SUPPORT 52461 int 52462 bcm_tomahawk3_switch_encap_get( 52463 int unit, 52464 bcm_if_t encap_id, 52465 bcm_switch_encap_info_t *encap_info) 52466 { 52467 return bcm_esw_switch_encap_get(unit, encap_id, encap_info); 52468 } 52469 #endif 52470 52471 #ifdef BCM_TOMAHAWK3_SUPPORT 52472 int 52473 bcm_tomahawk3_switch_encap_set( 52474 int unit, 52475 bcm_if_t encap_id, 52476 bcm_switch_encap_info_t *encap_info) 52477 { 52478 return bcm_esw_switch_encap_set(unit, encap_id, encap_info); 52479 } 52480 #endif 52481 52482 #ifdef BCM_TOMAHAWK3_SUPPORT 52483 int 52484 bcm_tomahawk3_switch_encap_traverse( 52485 int unit, 52486 bcm_switch_encap_traverse_cb cb_fn, 52487 void *user_data) 52488 { 52489 return bcm_esw_switch_encap_traverse(unit, cb_fn, user_data); 52490 } 52491 #endif 52492 52493 #ifdef BCM_TOMAHAWK3_SUPPORT 52494 int 52495 bcm_tomahawk3_switch_event_control_get( 52496 int unit, 52497 bcm_switch_event_t event, 52498 bcm_switch_event_control_t type, 52499 uint32 *value) 52500 { 52501 return bcm_esw_switch_event_control_get(unit, event, type, value); 52502 } 52503 #endif 52504 52505 #ifdef BCM_TOMAHAWK3_SUPPORT 52506 int 52507 bcm_tomahawk3_switch_event_control_set( 52508 int unit, 52509 bcm_switch_event_t event, 52510 bcm_switch_event_control_t type, 52511 uint32 value) 52512 { 52513 return bcm_esw_switch_event_control_set(unit, event, type, value); 52514 } 52515 #endif 52516 52517 #ifdef BCM_TOMAHAWK3_SUPPORT 52518 int 52519 bcm_tomahawk3_switch_event_register( 52520 int unit, 52521 bcm_switch_event_cb_t cb, 52522 void *userdata) 52523 { 52524 return bcm_esw_switch_event_register(unit, cb, userdata); 52525 } 52526 #endif 52527 52528 #ifdef BCM_TOMAHAWK3_SUPPORT 52529 int 52530 bcm_tomahawk3_switch_event_unregister( 52531 int unit, 52532 bcm_switch_event_cb_t cb, 52533 void *userdata) 52534 { 52535 return bcm_esw_switch_event_unregister(unit, cb, userdata); 52536 } 52537 #endif 52538 52539 int 52540 bcm_tomahawk3_switch_fec_property_get( 52541 int unit, 52542 bcm_switch_fec_property_config_t *fec_config) 52543 { 52544 return BCM_E_UNAVAIL; 52545 } 52546 52547 #ifdef BCM_TOMAHAWK3_SUPPORT 52548 int 52549 bcm_tomahawk3_switch_hard_reset_cb_register( 52550 int unit, 52551 uint32 flags, 52552 bcm_switch_hard_reset_callback_t callback, 52553 void *userdata) 52554 { 52555 return bcm_esw_switch_hard_reset_cb_register(unit, flags, callback, userdata); 52556 } 52557 #endif 52558 52559 #ifdef BCM_TOMAHAWK3_SUPPORT 52560 int 52561 bcm_tomahawk3_switch_hard_reset_cb_unregister( 52562 int unit, 52563 bcm_switch_hard_reset_callback_t callback, 52564 void *userdata) 52565 { 52566 return bcm_esw_switch_hard_reset_cb_unregister(unit, callback, userdata); 52567 } 52568 #endif 52569 52570 #ifdef BCM_TOMAHAWK3_SUPPORT 52571 int 52572 bcm_tomahawk3_switch_hash_banks_config_get( 52573 int unit, 52574 bcm_switch_hash_table_t hash_table, 52575 uint32 bank_num, 52576 int *hash_type, 52577 uint32 *hash_offset) 52578 { 52579 return bcm_esw_switch_hash_banks_config_get(unit, hash_table, bank_num, hash_type, hash_offset); 52580 } 52581 #endif 52582 52583 #ifdef BCM_TOMAHAWK3_SUPPORT 52584 int 52585 bcm_tomahawk3_switch_hash_banks_config_set( 52586 int unit, 52587 bcm_switch_hash_table_t hash_table, 52588 uint32 bank_num, 52589 int hash_type, 52590 uint32 hash_offset) 52591 { 52592 return bcm_esw_switch_hash_banks_config_set(unit, hash_table, bank_num, hash_type, hash_offset); 52593 } 52594 #endif 52595 52596 #ifdef BCM_TOMAHAWK3_SUPPORT 52597 int 52598 bcm_tomahawk3_switch_hash_banks_max_get( 52599 int unit, 52600 bcm_switch_hash_table_t hash_table, 52601 uint32 *bank_count) 52602 { 52603 return bcm_esw_switch_hash_banks_max_get(unit, hash_table, bank_count); 52604 } 52605 #endif 52606 52607 #ifdef BCM_TOMAHAWK3_SUPPORT 52608 int 52609 bcm_tomahawk3_switch_hash_entry_create( 52610 int unit, 52611 bcm_field_group_t group, 52612 bcm_hash_entry_t *entry) 52613 { 52614 return bcm_esw_switch_hash_entry_create(unit, group, entry); 52615 } 52616 #endif 52617 52618 #ifdef BCM_TOMAHAWK3_SUPPORT 52619 int 52620 bcm_tomahawk3_switch_hash_entry_create_qset( 52621 int unit, 52622 bcm_field_qset_t qset, 52623 bcm_hash_entry_t *entry) 52624 { 52625 return bcm_esw_switch_hash_entry_create_qset(unit, qset, entry); 52626 } 52627 #endif 52628 52629 #ifdef BCM_TOMAHAWK3_SUPPORT 52630 int 52631 bcm_tomahawk3_switch_hash_entry_destroy( 52632 int unit, 52633 bcm_hash_entry_t entry) 52634 { 52635 return bcm_esw_switch_hash_entry_destroy(unit, entry); 52636 } 52637 #endif 52638 52639 #ifdef BCM_TOMAHAWK3_SUPPORT 52640 int 52641 bcm_tomahawk3_switch_hash_entry_get( 52642 int unit, 52643 bcm_hash_entry_t entry, 52644 bcm_switch_hash_entry_config_t *config) 52645 { 52646 return bcm_esw_switch_hash_entry_get(unit, entry, config); 52647 } 52648 #endif 52649 52650 #ifdef BCM_TOMAHAWK3_SUPPORT 52651 int 52652 bcm_tomahawk3_switch_hash_entry_install( 52653 int unit, 52654 bcm_hash_entry_t entry, 52655 uint32 offset) 52656 { 52657 return bcm_esw_switch_hash_entry_install(unit, entry, offset); 52658 } 52659 #endif 52660 52661 #ifdef BCM_TOMAHAWK3_SUPPORT 52662 int 52663 bcm_tomahawk3_switch_hash_entry_reinstall( 52664 int unit, 52665 bcm_hash_entry_t entry, 52666 uint32 offset) 52667 { 52668 return bcm_esw_switch_hash_entry_reinstall(unit, entry, offset); 52669 } 52670 #endif 52671 52672 #ifdef BCM_TOMAHAWK3_SUPPORT 52673 int 52674 bcm_tomahawk3_switch_hash_entry_remove( 52675 int unit, 52676 bcm_hash_entry_t entry) 52677 { 52678 return bcm_esw_switch_hash_entry_remove(unit, entry); 52679 } 52680 #endif 52681 52682 #ifdef BCM_TOMAHAWK3_SUPPORT 52683 int 52684 bcm_tomahawk3_switch_hash_entry_set( 52685 int unit, 52686 bcm_hash_entry_t entry, 52687 bcm_switch_hash_entry_config_t *config) 52688 { 52689 return bcm_esw_switch_hash_entry_set(unit, entry, config); 52690 } 52691 #endif 52692 52693 #ifdef BCM_TOMAHAWK3_SUPPORT 52694 int 52695 bcm_tomahawk3_switch_hash_entry_traverse( 52696 int unit, 52697 int flags, 52698 bcm_switch_hash_entry_traverse_cb cb_fn, 52699 void *user_data) 52700 { 52701 return bcm_esw_switch_hash_entry_traverse(unit, flags, cb_fn, user_data); 52702 } 52703 #endif 52704 52705 #ifdef BCM_TOMAHAWK3_SUPPORT 52706 int 52707 bcm_tomahawk3_switch_hash_qualify_data( 52708 int unit, 52709 bcm_hash_entry_t entry, 52710 int qual_id, 52711 uint32 data, 52712 uint32 mask) 52713 { 52714 return bcm_esw_switch_hash_qualify_data(unit, entry, qual_id, data, mask); 52715 } 52716 #endif 52717 52718 #ifdef BCM_TOMAHAWK3_SUPPORT 52719 int 52720 bcm_tomahawk3_switch_hash_qualify_udf( 52721 int unit, 52722 bcm_hash_entry_t entry, 52723 bcm_udf_id_t udf_id, 52724 int length, 52725 uint8 *data, 52726 uint8 *mask) 52727 { 52728 return bcm_esw_switch_hash_qualify_udf(unit, entry, udf_id, length, data, mask); 52729 } 52730 #endif 52731 52732 #ifdef BCM_TOMAHAWK3_SUPPORT 52733 int 52734 bcm_tomahawk3_switch_hash_qualify_udf_get( 52735 int unit, 52736 bcm_hash_entry_t entry, 52737 bcm_udf_id_t udf_id, 52738 int max_length, 52739 uint8 *data, 52740 uint8 *mask, 52741 int *actual_length) 52742 { 52743 return bcm_esw_switch_hash_qualify_udf_get(unit, entry, udf_id, max_length, data, mask, actual_length); 52744 } 52745 #endif 52746 52747 #ifdef BCM_TOMAHAWK3_SUPPORT 52748 int 52749 bcm_tomahawk3_switch_ipv6_reserved_multicast_addr_get( 52750 int unit, 52751 bcm_ip6_t *ip6_addr, 52752 bcm_ip6_t *ip6_mask) 52753 { 52754 return bcm_esw_switch_ipv6_reserved_multicast_addr_get(unit, ip6_addr, ip6_mask); 52755 } 52756 #endif 52757 52758 #ifdef BCM_TOMAHAWK3_SUPPORT 52759 int 52760 bcm_tomahawk3_switch_ipv6_reserved_multicast_addr_multi_get( 52761 int unit, 52762 int inner, 52763 int num, 52764 bcm_ip6_t *ip6_addr, 52765 bcm_ip6_t *ip6_mask) 52766 { 52767 return bcm_esw_switch_ipv6_reserved_multicast_addr_multi_get(unit, inner, num, ip6_addr, ip6_mask); 52768 } 52769 #endif 52770 52771 #ifdef BCM_TOMAHAWK3_SUPPORT 52772 int 52773 bcm_tomahawk3_switch_ipv6_reserved_multicast_addr_multi_set( 52774 int unit, 52775 int inner, 52776 int num, 52777 bcm_ip6_t *ip6_addr, 52778 bcm_ip6_t *ip6_mask) 52779 { 52780 return bcm_esw_switch_ipv6_reserved_multicast_addr_multi_set(unit, inner, num, ip6_addr, ip6_mask); 52781 } 52782 #endif 52783 52784 #ifdef BCM_TOMAHAWK3_SUPPORT 52785 int 52786 bcm_tomahawk3_switch_ipv6_reserved_multicast_addr_set( 52787 int unit, 52788 bcm_ip6_t ip6_addr, 52789 bcm_ip6_t ip6_mask) 52790 { 52791 return bcm_esw_switch_ipv6_reserved_multicast_addr_set(unit, ip6_addr, ip6_mask); 52792 } 52793 #endif 52794 52795 #ifdef BCM_TOMAHAWK3_SUPPORT 52796 int 52797 bcm_tomahawk3_switch_kbp_apptype_info_get( 52798 int unit, 52799 bcm_core_t core, 52800 bcm_field_AppType_t apptype, 52801 bcm_switch_kbp_apptype_info_t *apptype_info) 52802 { 52803 return bcm_esw_switch_kbp_apptype_info_get(unit, core, apptype, apptype_info); 52804 } 52805 #endif 52806 52807 #ifdef BCM_TOMAHAWK3_SUPPORT 52808 int 52809 bcm_tomahawk3_switch_kbp_info_get( 52810 int unit, 52811 bcm_core_t core, 52812 bcm_switch_kbp_info_t *kbp_info) 52813 { 52814 return bcm_esw_switch_kbp_info_get(unit, core, kbp_info); 52815 } 52816 #endif 52817 52818 int 52819 bcm_tomahawk3_switch_l3_protocol_group_get( 52820 int unit, 52821 uint32 *group_members, 52822 bcm_l3_protocol_group_id_t *group_id) 52823 { 52824 return BCM_E_UNAVAIL; 52825 } 52826 52827 int 52828 bcm_tomahawk3_switch_l3_protocol_group_set( 52829 int unit, 52830 uint32 group_members, 52831 bcm_l3_protocol_group_id_t group_id) 52832 { 52833 return BCM_E_UNAVAIL; 52834 } 52835 52836 int 52837 bcm_tomahawk3_switch_lif_property_get( 52838 int unit, 52839 bcm_switch_lif_property_t lif_property, 52840 bcm_switch_lif_property_config_t *lif_config) 52841 { 52842 return BCM_E_UNAVAIL; 52843 } 52844 52845 int 52846 bcm_tomahawk3_switch_lif_property_set( 52847 int unit, 52848 bcm_switch_lif_property_t lif_property, 52849 bcm_switch_lif_property_config_t *lif_config) 52850 { 52851 return BCM_E_UNAVAIL; 52852 } 52853 52854 #ifdef BCM_TOMAHAWK3_SUPPORT 52855 int 52856 bcm_tomahawk3_switch_match_config_add( 52857 int unit, 52858 bcm_switch_match_service_t match_service, 52859 bcm_switch_match_config_info_t *config_info, 52860 int *match_id) 52861 { 52862 return bcm_esw_switch_match_config_add(unit, match_service, config_info, match_id); 52863 } 52864 #endif 52865 52866 #ifdef BCM_TOMAHAWK3_SUPPORT 52867 int 52868 bcm_tomahawk3_switch_match_config_delete( 52869 int unit, 52870 bcm_switch_match_service_t match_service, 52871 int match_id) 52872 { 52873 return bcm_esw_switch_match_config_delete(unit, match_service, match_id); 52874 } 52875 #endif 52876 52877 #ifdef BCM_TOMAHAWK3_SUPPORT 52878 int 52879 bcm_tomahawk3_switch_match_config_delete_all( 52880 int unit, 52881 bcm_switch_match_service_t match_service) 52882 { 52883 return bcm_esw_switch_match_config_delete_all(unit, match_service); 52884 } 52885 #endif 52886 52887 #ifdef BCM_TOMAHAWK3_SUPPORT 52888 int 52889 bcm_tomahawk3_switch_match_config_get( 52890 int unit, 52891 bcm_switch_match_service_t match_service, 52892 int match_id, 52893 bcm_switch_match_config_info_t *config_info) 52894 { 52895 return bcm_esw_switch_match_config_get(unit, match_service, match_id, config_info); 52896 } 52897 #endif 52898 52899 #ifdef BCM_TOMAHAWK3_SUPPORT 52900 int 52901 bcm_tomahawk3_switch_match_config_set( 52902 int unit, 52903 bcm_switch_match_service_t match_service, 52904 int match_id, 52905 bcm_switch_match_config_info_t *config_info) 52906 { 52907 return bcm_esw_switch_match_config_set(unit, match_service, match_id, config_info); 52908 } 52909 #endif 52910 52911 #ifdef BCM_TOMAHAWK3_SUPPORT 52912 int 52913 bcm_tomahawk3_switch_match_config_traverse( 52914 int unit, 52915 bcm_switch_match_service_t match_service, 52916 bcm_switch_match_config_traverse_cb cb_fn, 52917 void *user_data) 52918 { 52919 return bcm_esw_switch_match_config_traverse(unit, match_service, cb_fn, user_data); 52920 } 52921 #endif 52922 52923 #ifdef BCM_TOMAHAWK3_SUPPORT 52924 int 52925 bcm_tomahawk3_switch_match_control_get( 52926 int unit, 52927 bcm_switch_match_service_t match_service, 52928 bcm_switch_match_control_type_t control_type, 52929 bcm_gport_t gport, 52930 bcm_switch_match_control_info_t *control_info) 52931 { 52932 return bcm_esw_switch_match_control_get(unit, match_service, control_type, gport, control_info); 52933 } 52934 #endif 52935 52936 #ifdef BCM_TOMAHAWK3_SUPPORT 52937 int 52938 bcm_tomahawk3_switch_match_control_set( 52939 int unit, 52940 bcm_switch_match_service_t match_service, 52941 bcm_switch_match_control_type_t control_type, 52942 bcm_gport_t gport, 52943 bcm_switch_match_control_info_t *control_info) 52944 { 52945 return bcm_esw_switch_match_control_set(unit, match_service, control_type, gport, control_info); 52946 } 52947 #endif 52948 52949 #ifdef BCM_TOMAHAWK3_SUPPORT 52950 int 52951 bcm_tomahawk3_switch_match_control_traverse( 52952 int unit, 52953 bcm_switch_match_service_t match_service, 52954 bcm_switch_match_control_traverse_cb cb_fn, 52955 void *user_data) 52956 { 52957 return bcm_esw_switch_match_control_traverse(unit, match_service, cb_fn, user_data); 52958 } 52959 #endif 52960 52961 #ifdef BCM_TOMAHAWK3_SUPPORT 52962 int 52963 bcm_tomahawk3_switch_network_group_config_get( 52964 int unit, 52965 bcm_switch_network_group_t source_network_group_id, 52966 bcm_switch_network_group_config_t *config) 52967 { 52968 return bcm_esw_switch_network_group_config_get(unit, source_network_group_id, config); 52969 } 52970 #endif 52971 52972 #ifdef BCM_TOMAHAWK3_SUPPORT 52973 int 52974 bcm_tomahawk3_switch_network_group_config_set( 52975 int unit, 52976 bcm_switch_network_group_t source_network_group_id, 52977 bcm_switch_network_group_config_t *config) 52978 { 52979 return bcm_esw_switch_network_group_config_set(unit, source_network_group_id, config); 52980 } 52981 #endif 52982 52983 #ifdef BCM_TOMAHAWK3_SUPPORT 52984 int 52985 bcm_tomahawk3_switch_object_count_get( 52986 int unit, 52987 bcm_switch_object_t object, 52988 int *entries) 52989 { 52990 return bcm_esw_switch_object_count_get(unit, object, entries); 52991 } 52992 #endif 52993 52994 #ifdef BCM_TOMAHAWK3_SUPPORT 52995 int 52996 bcm_tomahawk3_switch_object_count_multi_get( 52997 int unit, 52998 int object_size, 52999 bcm_switch_object_t *object_array, 53000 int *entries) 53001 { 53002 return bcm_esw_switch_object_count_multi_get(unit, object_size, object_array, entries); 53003 } 53004 #endif 53005 53006 int 53007 bcm_tomahawk3_switch_obm_classifier_mapping_get( 53008 int unit, 53009 bcm_gport_t gport, 53010 bcm_switch_obm_classifier_type_t switch_obm_classifier_type, 53011 bcm_switch_obm_classifier_t *switch_obm_classifier) 53012 { 53013 return BCM_E_UNAVAIL; 53014 } 53015 53016 int 53017 bcm_tomahawk3_switch_obm_classifier_mapping_multi_get( 53018 int unit, 53019 bcm_gport_t port, 53020 bcm_switch_obm_classifier_type_t switch_obm_classifier_type, 53021 int array_max, 53022 bcm_switch_obm_classifier_t *switch_obm_classifier, 53023 int *array_count) 53024 { 53025 return BCM_E_UNAVAIL; 53026 } 53027 53028 int 53029 bcm_tomahawk3_switch_obm_classifier_mapping_multi_set( 53030 int unit, 53031 bcm_gport_t gport, 53032 bcm_switch_obm_classifier_type_t switch_obm_classifier_type, 53033 int array_count, 53034 bcm_switch_obm_classifier_t *switch_obm_classifier) 53035 { 53036 return BCM_E_UNAVAIL; 53037 } 53038 53039 int 53040 bcm_tomahawk3_switch_obm_classifier_mapping_set( 53041 int unit, 53042 bcm_gport_t gport, 53043 bcm_switch_obm_classifier_type_t switch_obm_classifier_type, 53044 bcm_switch_obm_classifier_t *switch_obm_classifier) 53045 { 53046 return BCM_E_UNAVAIL; 53047 } 53048 53049 #ifdef BCM_TOMAHAWK3_SUPPORT 53050 int 53051 bcm_tomahawk3_switch_olp_l2_addr_add( 53052 int unit, 53053 uint32 options, 53054 bcm_switch_olp_l2_addr_t *l2_addr) 53055 { 53056 return bcm_esw_switch_olp_l2_addr_add(unit, options, l2_addr); 53057 } 53058 #endif 53059 53060 #ifdef BCM_TOMAHAWK3_SUPPORT 53061 int 53062 bcm_tomahawk3_switch_olp_l2_addr_delete( 53063 int unit, 53064 bcm_switch_olp_l2_addr_t *l2_addr) 53065 { 53066 return bcm_esw_switch_olp_l2_addr_delete(unit, l2_addr); 53067 } 53068 #endif 53069 53070 #ifdef BCM_TOMAHAWK3_SUPPORT 53071 int 53072 bcm_tomahawk3_switch_olp_l2_addr_delete_all( 53073 int unit) 53074 { 53075 return bcm_esw_switch_olp_l2_addr_delete_all(unit); 53076 } 53077 #endif 53078 53079 #ifdef BCM_TOMAHAWK3_SUPPORT 53080 int 53081 bcm_tomahawk3_switch_olp_l2_addr_get( 53082 int unit, 53083 bcm_switch_olp_l2_addr_t *l2_addr) 53084 { 53085 return bcm_esw_switch_olp_l2_addr_get(unit, l2_addr); 53086 } 53087 #endif 53088 53089 #ifdef BCM_TOMAHAWK3_SUPPORT 53090 int 53091 bcm_tomahawk3_switch_olp_l2_addr_traverse( 53092 int unit, 53093 bcm_switch_olp_l2_addr_traverse_cb cb_fn, 53094 void *user_data) 53095 { 53096 return bcm_esw_switch_olp_l2_addr_traverse(unit, cb_fn, user_data); 53097 } 53098 #endif 53099 53100 #ifdef BCM_TOMAHAWK3_SUPPORT 53101 int 53102 bcm_tomahawk3_switch_opaque_tag_config_get( 53103 int unit, 53104 int index, 53105 bcm_switch_opaque_tag_params_t *opaque_tag_config) 53106 { 53107 return bcm_esw_switch_opaque_tag_config_get(unit, index, opaque_tag_config); 53108 } 53109 #endif 53110 53111 #ifdef BCM_TOMAHAWK3_SUPPORT 53112 int 53113 bcm_tomahawk3_switch_opaque_tag_config_set( 53114 int unit, 53115 int index, 53116 bcm_switch_opaque_tag_params_t *opaque_tag_config) 53117 { 53118 return bcm_esw_switch_opaque_tag_config_set(unit, index, opaque_tag_config); 53119 } 53120 #endif 53121 53122 #ifdef BCM_TOMAHAWK3_SUPPORT 53123 int 53124 bcm_tomahawk3_switch_pkt_info_hash_get( 53125 int unit, 53126 bcm_switch_pkt_info_t *pkt_info, 53127 bcm_gport_t *dst_gport, 53128 bcm_if_t *dst_intf) 53129 { 53130 return bcm_esw_switch_pkt_info_hash_get(unit, pkt_info, dst_gport, dst_intf); 53131 } 53132 #endif 53133 53134 #ifdef BCM_TOMAHAWK3_SUPPORT 53135 int 53136 bcm_tomahawk3_switch_pkt_trace_info_get( 53137 int unit, 53138 uint32 options, 53139 uint8 port, 53140 int len, 53141 uint8 *data, 53142 bcm_switch_pkt_trace_info_t *pkt_trace_info) 53143 { 53144 return bcm_esw_switch_pkt_trace_info_get(unit, options, port, len, data, pkt_trace_info); 53145 } 53146 #endif 53147 53148 int 53149 bcm_tomahawk3_switch_pkt_trace_raw_data_get( 53150 int unit, 53151 uint32 options, 53152 uint8 port, 53153 int len, 53154 uint8 *data, 53155 uint32 raw_data_buf_size, 53156 uint8 *raw_data, 53157 uint32 *raw_data_size) 53158 { 53159 return BCM_E_UNAVAIL; 53160 } 53161 53162 #ifdef BCM_TOMAHAWK3_SUPPORT 53163 int 53164 bcm_tomahawk3_switch_rcpu_decap_priority_map_get( 53165 int unit, 53166 int decap_pri, 53167 int *internal_cpu_pri) 53168 { 53169 return bcm_esw_switch_rcpu_decap_priority_map_get(unit, decap_pri, internal_cpu_pri); 53170 } 53171 #endif 53172 53173 #ifdef BCM_TOMAHAWK3_SUPPORT 53174 int 53175 bcm_tomahawk3_switch_rcpu_decap_priority_map_set( 53176 int unit, 53177 int decap_pri, 53178 int internal_cpu_pri) 53179 { 53180 return bcm_esw_switch_rcpu_decap_priority_map_set(unit, decap_pri, internal_cpu_pri); 53181 } 53182 #endif 53183 53184 #ifdef BCM_TOMAHAWK3_SUPPORT 53185 int 53186 bcm_tomahawk3_switch_rcpu_encap_priority_map_get( 53187 int unit, 53188 uint32 flags, 53189 int internal_cpu_pri, 53190 int *encap_pri) 53191 { 53192 return bcm_esw_switch_rcpu_encap_priority_map_get(unit, flags, internal_cpu_pri, encap_pri); 53193 } 53194 #endif 53195 53196 #ifdef BCM_TOMAHAWK3_SUPPORT 53197 int 53198 bcm_tomahawk3_switch_rcpu_encap_priority_map_set( 53199 int unit, 53200 uint32 flags, 53201 int internal_cpu_pri, 53202 int encap_pri) 53203 { 53204 return bcm_esw_switch_rcpu_encap_priority_map_set(unit, flags, internal_cpu_pri, encap_pri); 53205 } 53206 #endif 53207 53208 #ifdef BCM_TOMAHAWK3_SUPPORT 53209 int 53210 bcm_tomahawk3_switch_reflector_create( 53211 int unit, 53212 uint32 flags, 53213 bcm_if_t *encap_id, 53214 bcm_switch_reflector_data_t *data) 53215 { 53216 return bcm_esw_switch_reflector_create(unit, flags, encap_id, data); 53217 } 53218 #endif 53219 53220 #ifdef BCM_TOMAHAWK3_SUPPORT 53221 int 53222 bcm_tomahawk3_switch_reflector_destroy( 53223 int unit, 53224 uint32 flags, 53225 bcm_if_t encap_id) 53226 { 53227 return bcm_esw_switch_reflector_destroy(unit, flags, encap_id); 53228 } 53229 #endif 53230 53231 #ifdef BCM_TOMAHAWK3_SUPPORT 53232 int 53233 bcm_tomahawk3_switch_reflector_get( 53234 int unit, 53235 uint32 flags, 53236 bcm_if_t encap_id, 53237 bcm_switch_reflector_data_t *data) 53238 { 53239 return bcm_esw_switch_reflector_get(unit, flags, encap_id, data); 53240 } 53241 #endif 53242 53243 #ifdef BCM_TOMAHAWK3_SUPPORT 53244 int 53245 bcm_tomahawk3_switch_reflector_traverse( 53246 int unit, 53247 uint32 flags, 53248 bcm_switch_reflector_traverse_cb traverse_cb, 53249 void *user_data) 53250 { 53251 return bcm_esw_switch_reflector_traverse(unit, flags, traverse_cb, user_data); 53252 } 53253 #endif 53254 53255 int 53256 bcm_tomahawk3_switch_rov_get( 53257 int unit, 53258 uint32 flags, 53259 uint32 *rov) 53260 { 53261 return BCM_E_UNAVAIL; 53262 } 53263 53264 #ifdef BCM_TOMAHAWK3_SUPPORT 53265 int 53266 bcm_tomahawk3_switch_ser_error_stat_clear( 53267 int unit, 53268 bcm_switch_ser_error_stat_type_t stat_type) 53269 { 53270 return bcm_esw_switch_ser_error_stat_clear(unit, stat_type); 53271 } 53272 #endif 53273 53274 #ifdef BCM_TOMAHAWK3_SUPPORT 53275 int 53276 bcm_tomahawk3_switch_ser_error_stat_get( 53277 int unit, 53278 bcm_switch_ser_error_stat_type_t stat_type, 53279 uint32 *value) 53280 { 53281 return bcm_esw_switch_ser_error_stat_get(unit, stat_type, value); 53282 } 53283 #endif 53284 53285 #ifdef BCM_TOMAHAWK3_SUPPORT 53286 int 53287 bcm_tomahawk3_switch_ser_log_info_get( 53288 int unit, 53289 int id, 53290 bcm_switch_ser_log_info_t *info) 53291 { 53292 return bcm_esw_switch_ser_log_info_get(unit, id, info); 53293 } 53294 #endif 53295 53296 #ifdef BCM_TOMAHAWK3_SUPPORT 53297 int 53298 bcm_tomahawk3_switch_service_get( 53299 int unit, 53300 bcm_switch_service_t service, 53301 bcm_switch_service_config_t *config) 53302 { 53303 return bcm_esw_switch_service_get(unit, service, config); 53304 } 53305 #endif 53306 53307 #ifdef BCM_TOMAHAWK3_SUPPORT 53308 int 53309 bcm_tomahawk3_switch_service_set( 53310 int unit, 53311 bcm_switch_service_t service, 53312 bcm_switch_service_config_t *config) 53313 { 53314 return bcm_esw_switch_service_set(unit, service, config); 53315 } 53316 #endif 53317 53318 #ifdef BCM_TOMAHAWK3_SUPPORT 53319 int 53320 bcm_tomahawk3_switch_stable_register( 53321 int unit, 53322 bcm_switch_read_func_t rf, 53323 bcm_switch_write_func_t wf) 53324 { 53325 return bcm_esw_switch_stable_register(unit, rf, wf); 53326 } 53327 #endif 53328 53329 #ifdef BCM_TOMAHAWK3_SUPPORT 53330 int 53331 bcm_tomahawk3_switch_temperature_monitor_get( 53332 int unit, 53333 int temperature_max, 53334 bcm_switch_temperature_monitor_t *temperature_array, 53335 int *temperature_count) 53336 { 53337 return bcm_esw_switch_temperature_monitor_get(unit, temperature_max, temperature_array, temperature_count); 53338 } 53339 #endif 53340 53341 int 53342 bcm_tomahawk3_switch_thermo_sensor_read( 53343 int unit, 53344 bcm_switch_thermo_sensor_type_t sensor_type, 53345 int interface_id, 53346 bcm_switch_thermo_sensor_t *sensor_data) 53347 { 53348 return BCM_E_UNAVAIL; 53349 } 53350 53351 #ifdef BCM_TOMAHAWK3_SUPPORT 53352 int 53353 bcm_tomahawk3_switch_tpid_add( 53354 int unit, 53355 uint32 options, 53356 bcm_switch_tpid_info_t *tpid_info) 53357 { 53358 return bcm_esw_switch_tpid_add(unit, options, tpid_info); 53359 } 53360 #endif 53361 53362 int 53363 bcm_tomahawk3_switch_tpid_class_get( 53364 int unit, 53365 bcm_switch_tpid_class_t *tpid_class) 53366 { 53367 return BCM_E_UNAVAIL; 53368 } 53369 53370 #ifdef BCM_TOMAHAWK3_SUPPORT 53371 int 53372 bcm_tomahawk3_switch_tpid_delete( 53373 int unit, 53374 bcm_switch_tpid_info_t *tpid_info) 53375 { 53376 return bcm_esw_switch_tpid_delete(unit, tpid_info); 53377 } 53378 #endif 53379 53380 #ifdef BCM_TOMAHAWK3_SUPPORT 53381 int 53382 bcm_tomahawk3_switch_tpid_delete_all( 53383 int unit) 53384 { 53385 return bcm_esw_switch_tpid_delete_all(unit); 53386 } 53387 #endif 53388 53389 #ifdef BCM_TOMAHAWK3_SUPPORT 53390 int 53391 bcm_tomahawk3_switch_tpid_get( 53392 int unit, 53393 bcm_switch_tpid_info_t *tpid_info) 53394 { 53395 return bcm_esw_switch_tpid_get(unit, tpid_info); 53396 } 53397 #endif 53398 53399 #ifdef BCM_TOMAHAWK3_SUPPORT 53400 int 53401 bcm_tomahawk3_switch_tpid_get_all( 53402 int unit, 53403 int size, 53404 bcm_switch_tpid_info_t *tpid_info_array, 53405 int *count) 53406 { 53407 return bcm_esw_switch_tpid_get_all(unit, size, tpid_info_array, count); 53408 } 53409 #endif 53410 53411 int 53412 bcm_tomahawk3_switch_user_buffer_read( 53413 int unit, 53414 uint32 flags, 53415 bcm_switch_user_buffer_type_t buff_type, 53416 uint8 *buf, 53417 int offset, 53418 int nbytes) 53419 { 53420 return BCM_E_UNAVAIL; 53421 } 53422 53423 int 53424 bcm_tomahawk3_switch_user_buffer_write( 53425 int unit, 53426 uint32 flags, 53427 bcm_switch_user_buffer_type_t buff_type, 53428 uint8 *buf, 53429 int offset, 53430 int nbytes) 53431 { 53432 return BCM_E_UNAVAIL; 53433 } 53434 53435 #if defined(INCLUDE_PTP) 53436 #ifdef BCM_TOMAHAWK3_SUPPORT 53437 int 53438 bcm_tomahawk3_tdpll_dpll_bandwidth_get( 53439 int unit, 53440 int stack_id, 53441 int dpll_index, 53442 bcm_tdpll_dpll_bandwidth_t *bandwidth) 53443 { 53444 return bcm_esw_tdpll_dpll_bandwidth_get(unit, stack_id, dpll_index, bandwidth); 53445 } 53446 #endif 53447 #endif 53448 53449 #if defined(INCLUDE_PTP) 53450 #ifdef BCM_TOMAHAWK3_SUPPORT 53451 int 53452 bcm_tomahawk3_tdpll_dpll_bandwidth_set( 53453 int unit, 53454 int stack_id, 53455 int dpll_index, 53456 bcm_tdpll_dpll_bandwidth_t *bandwidth) 53457 { 53458 return bcm_esw_tdpll_dpll_bandwidth_set(unit, stack_id, dpll_index, bandwidth); 53459 } 53460 #endif 53461 #endif 53462 53463 #if defined(INCLUDE_PTP) 53464 #ifdef BCM_TOMAHAWK3_SUPPORT 53465 int 53466 bcm_tomahawk3_tdpll_dpll_bindings_get( 53467 int unit, 53468 int stack_id, 53469 int dpll_index, 53470 bcm_tdpll_dpll_bindings_t *bindings) 53471 { 53472 return bcm_esw_tdpll_dpll_bindings_get(unit, stack_id, dpll_index, bindings); 53473 } 53474 #endif 53475 #endif 53476 53477 #if defined(INCLUDE_PTP) 53478 #ifdef BCM_TOMAHAWK3_SUPPORT 53479 int 53480 bcm_tomahawk3_tdpll_dpll_bindings_set( 53481 int unit, 53482 int stack_id, 53483 int dpll_index, 53484 bcm_tdpll_dpll_bindings_t *bindings) 53485 { 53486 return bcm_esw_tdpll_dpll_bindings_set(unit, stack_id, dpll_index, bindings); 53487 } 53488 #endif 53489 #endif 53490 53491 #if defined(INCLUDE_PTP) 53492 #ifdef BCM_TOMAHAWK3_SUPPORT 53493 int 53494 bcm_tomahawk3_tdpll_dpll_phase_control_get( 53495 int unit, 53496 int stack_id, 53497 int dpll_index, 53498 bcm_tdpll_dpll_phase_control_t *phase_control) 53499 { 53500 return bcm_esw_tdpll_dpll_phase_control_get(unit, stack_id, dpll_index, phase_control); 53501 } 53502 #endif 53503 #endif 53504 53505 #if defined(INCLUDE_PTP) 53506 #ifdef BCM_TOMAHAWK3_SUPPORT 53507 int 53508 bcm_tomahawk3_tdpll_dpll_phase_control_set( 53509 int unit, 53510 int stack_id, 53511 int dpll_index, 53512 bcm_tdpll_dpll_phase_control_t *phase_control) 53513 { 53514 return bcm_esw_tdpll_dpll_phase_control_set(unit, stack_id, dpll_index, phase_control); 53515 } 53516 #endif 53517 #endif 53518 53519 #if defined(INCLUDE_PTP) 53520 #ifdef BCM_TOMAHAWK3_SUPPORT 53521 int 53522 bcm_tomahawk3_tdpll_dpll_reference_get( 53523 int unit, 53524 int stack_id, 53525 int max_num_dpll, 53526 int *dpll_ref, 53527 int *num_dpll) 53528 { 53529 return bcm_esw_tdpll_dpll_reference_get(unit, stack_id, max_num_dpll, dpll_ref, num_dpll); 53530 } 53531 #endif 53532 #endif 53533 53534 #if defined(INCLUDE_PTP) 53535 #ifdef BCM_TOMAHAWK3_SUPPORT 53536 int 53537 bcm_tomahawk3_tdpll_esmc_essm_code_get( 53538 int unit, 53539 int stack_id, 53540 int dpll_index, 53541 bcm_esmc_essm_code_t *essm_code) 53542 { 53543 return bcm_esw_tdpll_esmc_essm_code_get(unit, stack_id, dpll_index, essm_code); 53544 } 53545 #endif 53546 #endif 53547 53548 #if defined(INCLUDE_PTP) 53549 #ifdef BCM_TOMAHAWK3_SUPPORT 53550 int 53551 bcm_tomahawk3_tdpll_esmc_essm_code_set( 53552 int unit, 53553 int stack_id, 53554 int dpll_index, 53555 bcm_esmc_essm_code_t essm_code) 53556 { 53557 return bcm_esw_tdpll_esmc_essm_code_set(unit, stack_id, dpll_index, essm_code); 53558 } 53559 #endif 53560 #endif 53561 53562 #if defined(INCLUDE_PTP) 53563 #ifdef BCM_TOMAHAWK3_SUPPORT 53564 int 53565 bcm_tomahawk3_tdpll_esmc_holdover_ql_get( 53566 int unit, 53567 int stack_id, 53568 int dpll_index, 53569 bcm_esmc_quality_level_t *ql) 53570 { 53571 return bcm_esw_tdpll_esmc_holdover_ql_get(unit, stack_id, dpll_index, ql); 53572 } 53573 #endif 53574 #endif 53575 53576 #if defined(INCLUDE_PTP) 53577 #ifdef BCM_TOMAHAWK3_SUPPORT 53578 int 53579 bcm_tomahawk3_tdpll_esmc_holdover_ql_set( 53580 int unit, 53581 int stack_id, 53582 int dpll_index, 53583 bcm_esmc_quality_level_t ql) 53584 { 53585 return bcm_esw_tdpll_esmc_holdover_ql_set(unit, stack_id, dpll_index, ql); 53586 } 53587 #endif 53588 #endif 53589 53590 #if defined(INCLUDE_PTP) 53591 #ifdef BCM_TOMAHAWK3_SUPPORT 53592 int 53593 bcm_tomahawk3_tdpll_esmc_mac_get( 53594 int unit, 53595 int stack_id, 53596 int dpll_index, 53597 bcm_mac_t *mac) 53598 { 53599 return bcm_esw_tdpll_esmc_mac_get(unit, stack_id, dpll_index, mac); 53600 } 53601 #endif 53602 #endif 53603 53604 #if defined(INCLUDE_PTP) 53605 #ifdef BCM_TOMAHAWK3_SUPPORT 53606 int 53607 bcm_tomahawk3_tdpll_esmc_mac_set( 53608 int unit, 53609 int stack_id, 53610 int dpll_index, 53611 bcm_mac_t *mac) 53612 { 53613 return bcm_esw_tdpll_esmc_mac_set(unit, stack_id, dpll_index, mac); 53614 } 53615 #endif 53616 #endif 53617 53618 #if defined(INCLUDE_PTP) 53619 #ifdef BCM_TOMAHAWK3_SUPPORT 53620 int 53621 bcm_tomahawk3_tdpll_esmc_ql_get( 53622 int unit, 53623 int stack_id, 53624 int dpll_index, 53625 bcm_esmc_quality_level_t *ql) 53626 { 53627 return bcm_esw_tdpll_esmc_ql_get(unit, stack_id, dpll_index, ql); 53628 } 53629 #endif 53630 #endif 53631 53632 #if defined(INCLUDE_PTP) 53633 #ifdef BCM_TOMAHAWK3_SUPPORT 53634 int 53635 bcm_tomahawk3_tdpll_esmc_ql_set( 53636 int unit, 53637 int stack_id, 53638 int dpll_index, 53639 bcm_esmc_quality_level_t ql) 53640 { 53641 return bcm_esw_tdpll_esmc_ql_set(unit, stack_id, dpll_index, ql); 53642 } 53643 #endif 53644 #endif 53645 53646 #if defined(INCLUDE_PTP) 53647 #ifdef BCM_TOMAHAWK3_SUPPORT 53648 int 53649 bcm_tomahawk3_tdpll_esmc_rx_enable_get( 53650 int unit, 53651 int stack_id, 53652 int *enable) 53653 { 53654 return bcm_esw_tdpll_esmc_rx_enable_get(unit, stack_id, enable); 53655 } 53656 #endif 53657 #endif 53658 53659 #if defined(INCLUDE_PTP) 53660 #ifdef BCM_TOMAHAWK3_SUPPORT 53661 int 53662 bcm_tomahawk3_tdpll_esmc_rx_enable_set( 53663 int unit, 53664 int stack_id, 53665 int enable) 53666 { 53667 return bcm_esw_tdpll_esmc_rx_enable_set(unit, stack_id, enable); 53668 } 53669 #endif 53670 #endif 53671 53672 #if defined(INCLUDE_PTP) 53673 #ifdef BCM_TOMAHAWK3_SUPPORT 53674 int 53675 bcm_tomahawk3_tdpll_esmc_rx_portbitmap_get( 53676 int unit, 53677 int stack_id, 53678 int dpll_index, 53679 bcm_pbmp_t *pbmp) 53680 { 53681 return bcm_esw_tdpll_esmc_rx_portbitmap_get(unit, stack_id, dpll_index, pbmp); 53682 } 53683 #endif 53684 #endif 53685 53686 #if defined(INCLUDE_PTP) 53687 #ifdef BCM_TOMAHAWK3_SUPPORT 53688 int 53689 bcm_tomahawk3_tdpll_esmc_rx_portbitmap_set( 53690 int unit, 53691 int stack_id, 53692 int dpll_index, 53693 bcm_pbmp_t pbmp) 53694 { 53695 return bcm_esw_tdpll_esmc_rx_portbitmap_set(unit, stack_id, dpll_index, pbmp); 53696 } 53697 #endif 53698 #endif 53699 53700 #if defined(INCLUDE_PTP) 53701 #ifdef BCM_TOMAHAWK3_SUPPORT 53702 int 53703 bcm_tomahawk3_tdpll_esmc_rx_state_machine( 53704 int unit, 53705 int stack_id, 53706 int ingress_port, 53707 bcm_esmc_pdu_data_t *esmc_pdu_data) 53708 { 53709 return bcm_esw_tdpll_esmc_rx_state_machine(unit, stack_id, ingress_port, esmc_pdu_data); 53710 } 53711 #endif 53712 #endif 53713 53714 #if defined(INCLUDE_PTP) 53715 #ifdef BCM_TOMAHAWK3_SUPPORT 53716 int 53717 bcm_tomahawk3_tdpll_esmc_tx_enable_get( 53718 int unit, 53719 int stack_id, 53720 int dpll_index, 53721 int *enable) 53722 { 53723 return bcm_esw_tdpll_esmc_tx_enable_get(unit, stack_id, dpll_index, enable); 53724 } 53725 #endif 53726 #endif 53727 53728 #if defined(INCLUDE_PTP) 53729 #ifdef BCM_TOMAHAWK3_SUPPORT 53730 int 53731 bcm_tomahawk3_tdpll_esmc_tx_enable_set( 53732 int unit, 53733 int stack_id, 53734 int dpll_index, 53735 int enable) 53736 { 53737 return bcm_esw_tdpll_esmc_tx_enable_set(unit, stack_id, dpll_index, enable); 53738 } 53739 #endif 53740 #endif 53741 53742 #if defined(INCLUDE_PTP) 53743 #ifdef BCM_TOMAHAWK3_SUPPORT 53744 int 53745 bcm_tomahawk3_tdpll_esmc_tx_portbitmap_get( 53746 int unit, 53747 int stack_id, 53748 int dpll_index, 53749 bcm_pbmp_t *pbmp) 53750 { 53751 return bcm_esw_tdpll_esmc_tx_portbitmap_get(unit, stack_id, dpll_index, pbmp); 53752 } 53753 #endif 53754 #endif 53755 53756 #if defined(INCLUDE_PTP) 53757 #ifdef BCM_TOMAHAWK3_SUPPORT 53758 int 53759 bcm_tomahawk3_tdpll_esmc_tx_portbitmap_set( 53760 int unit, 53761 int stack_id, 53762 int dpll_index, 53763 bcm_pbmp_t pbmp) 53764 { 53765 return bcm_esw_tdpll_esmc_tx_portbitmap_set(unit, stack_id, dpll_index, pbmp); 53766 } 53767 #endif 53768 #endif 53769 53770 #if defined(INCLUDE_PTP) 53771 #ifdef BCM_TOMAHAWK3_SUPPORT 53772 int 53773 bcm_tomahawk3_tdpll_event_callback_register( 53774 int unit, 53775 int stack_id, 53776 bcm_tdpll_event_cb_f event_cb) 53777 { 53778 return bcm_esw_tdpll_event_callback_register(unit, stack_id, event_cb); 53779 } 53780 #endif 53781 #endif 53782 53783 #if defined(INCLUDE_PTP) 53784 #ifdef BCM_TOMAHAWK3_SUPPORT 53785 int 53786 bcm_tomahawk3_tdpll_event_callback_unregister( 53787 int unit, 53788 int stack_id) 53789 { 53790 return bcm_esw_tdpll_event_callback_unregister(unit, stack_id); 53791 } 53792 #endif 53793 #endif 53794 53795 #if defined(INCLUDE_PTP) 53796 #ifdef BCM_TOMAHAWK3_SUPPORT 53797 int 53798 bcm_tomahawk3_tdpll_input_clock_best_get( 53799 int unit, 53800 int stack_id, 53801 int dpll_index, 53802 int *best_clock) 53803 { 53804 return bcm_esw_tdpll_input_clock_best_get(unit, stack_id, dpll_index, best_clock); 53805 } 53806 #endif 53807 #endif 53808 53809 #if defined(INCLUDE_PTP) 53810 #ifdef BCM_TOMAHAWK3_SUPPORT 53811 int 53812 bcm_tomahawk3_tdpll_input_clock_callback_register( 53813 int unit, 53814 int stack_id, 53815 bcm_tdpll_callback_type_t type, 53816 bcm_tdpll_input_clock_cb callback) 53817 { 53818 return bcm_esw_tdpll_input_clock_callback_register(unit, stack_id, type, callback); 53819 } 53820 #endif 53821 #endif 53822 53823 #if defined(INCLUDE_PTP) 53824 #ifdef BCM_TOMAHAWK3_SUPPORT 53825 int 53826 bcm_tomahawk3_tdpll_input_clock_callback_unregister( 53827 int unit, 53828 int stack_id, 53829 bcm_tdpll_callback_type_t type) 53830 { 53831 return bcm_esw_tdpll_input_clock_callback_unregister(unit, stack_id, type); 53832 } 53833 #endif 53834 #endif 53835 53836 #if defined(INCLUDE_PTP) 53837 #ifdef BCM_TOMAHAWK3_SUPPORT 53838 int 53839 bcm_tomahawk3_tdpll_input_clock_control( 53840 int unit, 53841 int stack_id, 53842 int enable) 53843 { 53844 return bcm_esw_tdpll_input_clock_control(unit, stack_id, enable); 53845 } 53846 #endif 53847 #endif 53848 53849 #if defined(INCLUDE_PTP) 53850 #ifdef BCM_TOMAHAWK3_SUPPORT 53851 int 53852 bcm_tomahawk3_tdpll_input_clock_enable_get( 53853 int unit, 53854 int stack_id, 53855 int clock_index, 53856 int *enable) 53857 { 53858 return bcm_esw_tdpll_input_clock_enable_get(unit, stack_id, clock_index, enable); 53859 } 53860 #endif 53861 #endif 53862 53863 #if defined(INCLUDE_PTP) 53864 #ifdef BCM_TOMAHAWK3_SUPPORT 53865 int 53866 bcm_tomahawk3_tdpll_input_clock_enable_set( 53867 int unit, 53868 int stack_id, 53869 int clock_index, 53870 int enable) 53871 { 53872 return bcm_esw_tdpll_input_clock_enable_set(unit, stack_id, clock_index, enable); 53873 } 53874 #endif 53875 #endif 53876 53877 #if defined(INCLUDE_PTP) 53878 #ifdef BCM_TOMAHAWK3_SUPPORT 53879 int 53880 bcm_tomahawk3_tdpll_input_clock_frequency_error_get( 53881 int unit, 53882 int stack_id, 53883 int clock_index, 53884 int *freq_error_ppb) 53885 { 53886 return bcm_esw_tdpll_input_clock_frequency_error_get(unit, stack_id, clock_index, freq_error_ppb); 53887 } 53888 #endif 53889 #endif 53890 53891 #if defined(INCLUDE_PTP) 53892 #ifdef BCM_TOMAHAWK3_SUPPORT 53893 int 53894 bcm_tomahawk3_tdpll_input_clock_frequency_get( 53895 int unit, 53896 int stack_id, 53897 int clock_index, 53898 uint32 *clock_frequency, 53899 uint32 *tsevent_frequency) 53900 { 53901 return bcm_esw_tdpll_input_clock_frequency_get(unit, stack_id, clock_index, clock_frequency, tsevent_frequency); 53902 } 53903 #endif 53904 #endif 53905 53906 #if defined(INCLUDE_PTP) 53907 #ifdef BCM_TOMAHAWK3_SUPPORT 53908 int 53909 bcm_tomahawk3_tdpll_input_clock_frequency_set( 53910 int unit, 53911 int stack_id, 53912 int clock_index, 53913 uint32 clock_frequency, 53914 uint32 tsevent_frequency) 53915 { 53916 return bcm_esw_tdpll_input_clock_frequency_set(unit, stack_id, clock_index, clock_frequency, tsevent_frequency); 53917 } 53918 #endif 53919 #endif 53920 53921 #if defined(INCLUDE_PTP) 53922 #ifdef BCM_TOMAHAWK3_SUPPORT 53923 int 53924 bcm_tomahawk3_tdpll_input_clock_l1mux_get( 53925 int unit, 53926 int stack_id, 53927 int clock_index, 53928 bcm_tdpll_input_clock_l1mux_t *l1mux) 53929 { 53930 return bcm_esw_tdpll_input_clock_l1mux_get(unit, stack_id, clock_index, l1mux); 53931 } 53932 #endif 53933 #endif 53934 53935 #if defined(INCLUDE_PTP) 53936 #ifdef BCM_TOMAHAWK3_SUPPORT 53937 int 53938 bcm_tomahawk3_tdpll_input_clock_l1mux_set( 53939 int unit, 53940 int stack_id, 53941 int clock_index, 53942 bcm_tdpll_input_clock_l1mux_t *l1mux) 53943 { 53944 return bcm_esw_tdpll_input_clock_l1mux_set(unit, stack_id, clock_index, l1mux); 53945 } 53946 #endif 53947 #endif 53948 53949 #if defined(INCLUDE_PTP) 53950 #ifdef BCM_TOMAHAWK3_SUPPORT 53951 int 53952 bcm_tomahawk3_tdpll_input_clock_lockout_get( 53953 int unit, 53954 int stack_id, 53955 int clock_index, 53956 int *lockout) 53957 { 53958 return bcm_esw_tdpll_input_clock_lockout_get(unit, stack_id, clock_index, lockout); 53959 } 53960 #endif 53961 #endif 53962 53963 #if defined(INCLUDE_PTP) 53964 #ifdef BCM_TOMAHAWK3_SUPPORT 53965 int 53966 bcm_tomahawk3_tdpll_input_clock_lockout_set( 53967 int unit, 53968 int stack_id, 53969 int clock_index, 53970 int lockout) 53971 { 53972 return bcm_esw_tdpll_input_clock_lockout_set(unit, stack_id, clock_index, lockout); 53973 } 53974 #endif 53975 #endif 53976 53977 #if defined(INCLUDE_PTP) 53978 #ifdef BCM_TOMAHAWK3_SUPPORT 53979 int 53980 bcm_tomahawk3_tdpll_input_clock_mac_get( 53981 int unit, 53982 int stack_id, 53983 int clock_index, 53984 bcm_mac_t *mac) 53985 { 53986 return bcm_esw_tdpll_input_clock_mac_get(unit, stack_id, clock_index, mac); 53987 } 53988 #endif 53989 #endif 53990 53991 #if defined(INCLUDE_PTP) 53992 #ifdef BCM_TOMAHAWK3_SUPPORT 53993 int 53994 bcm_tomahawk3_tdpll_input_clock_mac_set( 53995 int unit, 53996 int stack_id, 53997 int clock_index, 53998 bcm_mac_t *mac) 53999 { 54000 return bcm_esw_tdpll_input_clock_mac_set(unit, stack_id, clock_index, mac); 54001 } 54002 #endif 54003 #endif 54004 54005 #if defined(INCLUDE_PTP) 54006 #ifdef BCM_TOMAHAWK3_SUPPORT 54007 int 54008 bcm_tomahawk3_tdpll_input_clock_monitor_callback_register( 54009 int unit, 54010 int stack_id, 54011 bcm_tdpll_input_clock_monitor_cb monitor_cb) 54012 { 54013 return bcm_esw_tdpll_input_clock_monitor_callback_register(unit, stack_id, monitor_cb); 54014 } 54015 #endif 54016 #endif 54017 54018 #if defined(INCLUDE_PTP) 54019 #ifdef BCM_TOMAHAWK3_SUPPORT 54020 int 54021 bcm_tomahawk3_tdpll_input_clock_monitor_callback_unregister( 54022 int unit, 54023 int stack_id) 54024 { 54025 return bcm_esw_tdpll_input_clock_monitor_callback_unregister(unit, stack_id); 54026 } 54027 #endif 54028 #endif 54029 54030 #if defined(INCLUDE_PTP) 54031 #ifdef BCM_TOMAHAWK3_SUPPORT 54032 int 54033 bcm_tomahawk3_tdpll_input_clock_monitor_interval_get( 54034 int unit, 54035 int stack_id, 54036 uint32 *monitor_interval) 54037 { 54038 return bcm_esw_tdpll_input_clock_monitor_interval_get(unit, stack_id, monitor_interval); 54039 } 54040 #endif 54041 #endif 54042 54043 #if defined(INCLUDE_PTP) 54044 #ifdef BCM_TOMAHAWK3_SUPPORT 54045 int 54046 bcm_tomahawk3_tdpll_input_clock_monitor_interval_set( 54047 int unit, 54048 int stack_id, 54049 uint32 monitor_interval) 54050 { 54051 return bcm_esw_tdpll_input_clock_monitor_interval_set(unit, stack_id, monitor_interval); 54052 } 54053 #endif 54054 #endif 54055 54056 #if defined(INCLUDE_PTP) 54057 #ifdef BCM_TOMAHAWK3_SUPPORT 54058 int 54059 bcm_tomahawk3_tdpll_input_clock_monitor_threshold_get( 54060 int unit, 54061 int stack_id, 54062 bcm_tdpll_input_clock_monitor_type_t threshold_type, 54063 uint32 *threshold) 54064 { 54065 return bcm_esw_tdpll_input_clock_monitor_threshold_get(unit, stack_id, threshold_type, threshold); 54066 } 54067 #endif 54068 #endif 54069 54070 #if defined(INCLUDE_PTP) 54071 #ifdef BCM_TOMAHAWK3_SUPPORT 54072 int 54073 bcm_tomahawk3_tdpll_input_clock_monitor_threshold_set( 54074 int unit, 54075 int stack_id, 54076 bcm_tdpll_input_clock_monitor_type_t threshold_type, 54077 uint32 threshold) 54078 { 54079 return bcm_esw_tdpll_input_clock_monitor_threshold_set(unit, stack_id, threshold_type, threshold); 54080 } 54081 #endif 54082 #endif 54083 54084 #if defined(INCLUDE_PTP) 54085 #ifdef BCM_TOMAHAWK3_SUPPORT 54086 int 54087 bcm_tomahawk3_tdpll_input_clock_priority_get( 54088 int unit, 54089 int stack_id, 54090 int clock_index, 54091 int *priority) 54092 { 54093 return bcm_esw_tdpll_input_clock_priority_get(unit, stack_id, clock_index, priority); 54094 } 54095 #endif 54096 #endif 54097 54098 #if defined(INCLUDE_PTP) 54099 #ifdef BCM_TOMAHAWK3_SUPPORT 54100 int 54101 bcm_tomahawk3_tdpll_input_clock_priority_set( 54102 int unit, 54103 int stack_id, 54104 int clock_index, 54105 int priority) 54106 { 54107 return bcm_esw_tdpll_input_clock_priority_set(unit, stack_id, clock_index, priority); 54108 } 54109 #endif 54110 #endif 54111 54112 #if defined(INCLUDE_PTP) 54113 #ifdef BCM_TOMAHAWK3_SUPPORT 54114 int 54115 bcm_tomahawk3_tdpll_input_clock_ql_change_callback_register( 54116 int unit, 54117 int stack_id, 54118 bcm_tdpll_input_clock_ql_change_cb ql_change_cb) 54119 { 54120 return bcm_esw_tdpll_input_clock_ql_change_callback_register(unit, stack_id, ql_change_cb); 54121 } 54122 #endif 54123 #endif 54124 54125 #if defined(INCLUDE_PTP) 54126 #ifdef BCM_TOMAHAWK3_SUPPORT 54127 int 54128 bcm_tomahawk3_tdpll_input_clock_ql_change_callback_unregister( 54129 int unit, 54130 int stack_id) 54131 { 54132 return bcm_esw_tdpll_input_clock_ql_change_callback_unregister(unit, stack_id); 54133 } 54134 #endif 54135 #endif 54136 54137 #if defined(INCLUDE_PTP) 54138 #ifdef BCM_TOMAHAWK3_SUPPORT 54139 int 54140 bcm_tomahawk3_tdpll_input_clock_ql_enabled_get( 54141 int unit, 54142 int stack_id, 54143 int dpll_index, 54144 int *ql_enabled) 54145 { 54146 return bcm_esw_tdpll_input_clock_ql_enabled_get(unit, stack_id, dpll_index, ql_enabled); 54147 } 54148 #endif 54149 #endif 54150 54151 #if defined(INCLUDE_PTP) 54152 #ifdef BCM_TOMAHAWK3_SUPPORT 54153 int 54154 bcm_tomahawk3_tdpll_input_clock_ql_enabled_set( 54155 int unit, 54156 int stack_id, 54157 int dpll_index, 54158 int ql_enabled) 54159 { 54160 return bcm_esw_tdpll_input_clock_ql_enabled_set(unit, stack_id, dpll_index, ql_enabled); 54161 } 54162 #endif 54163 #endif 54164 54165 #if defined(INCLUDE_PTP) 54166 #ifdef BCM_TOMAHAWK3_SUPPORT 54167 int 54168 bcm_tomahawk3_tdpll_input_clock_ql_get( 54169 int unit, 54170 int stack_id, 54171 int clock_index, 54172 bcm_esmc_quality_level_t *ql) 54173 { 54174 return bcm_esw_tdpll_input_clock_ql_get(unit, stack_id, clock_index, ql); 54175 } 54176 #endif 54177 #endif 54178 54179 #if defined(INCLUDE_PTP) 54180 #ifdef BCM_TOMAHAWK3_SUPPORT 54181 int 54182 bcm_tomahawk3_tdpll_input_clock_ql_set( 54183 int unit, 54184 int stack_id, 54185 int clock_index, 54186 bcm_esmc_quality_level_t ql) 54187 { 54188 return bcm_esw_tdpll_input_clock_ql_set(unit, stack_id, clock_index, ql); 54189 } 54190 #endif 54191 #endif 54192 54193 #if defined(INCLUDE_PTP) 54194 #ifdef BCM_TOMAHAWK3_SUPPORT 54195 int 54196 bcm_tomahawk3_tdpll_input_clock_revertive_get( 54197 int unit, 54198 int stack_id, 54199 int dpll_index, 54200 int *revertive) 54201 { 54202 return bcm_esw_tdpll_input_clock_revertive_get(unit, stack_id, dpll_index, revertive); 54203 } 54204 #endif 54205 #endif 54206 54207 #if defined(INCLUDE_PTP) 54208 #ifdef BCM_TOMAHAWK3_SUPPORT 54209 int 54210 bcm_tomahawk3_tdpll_input_clock_revertive_set( 54211 int unit, 54212 int stack_id, 54213 int dpll_index, 54214 int revertive) 54215 { 54216 return bcm_esw_tdpll_input_clock_revertive_set(unit, stack_id, dpll_index, revertive); 54217 } 54218 #endif 54219 #endif 54220 54221 #if defined(INCLUDE_PTP) 54222 #ifdef BCM_TOMAHAWK3_SUPPORT 54223 int 54224 bcm_tomahawk3_tdpll_input_clock_selector_callback_register( 54225 int unit, 54226 int stack_id, 54227 bcm_tdpll_input_clock_selector_cb selector_cb) 54228 { 54229 return bcm_esw_tdpll_input_clock_selector_callback_register(unit, stack_id, selector_cb); 54230 } 54231 #endif 54232 #endif 54233 54234 #if defined(INCLUDE_PTP) 54235 #ifdef BCM_TOMAHAWK3_SUPPORT 54236 int 54237 bcm_tomahawk3_tdpll_input_clock_selector_callback_unregister( 54238 int unit, 54239 int stack_id) 54240 { 54241 return bcm_esw_tdpll_input_clock_selector_callback_unregister(unit, stack_id); 54242 } 54243 #endif 54244 #endif 54245 54246 #if defined(INCLUDE_PTP) 54247 #ifdef BCM_TOMAHAWK3_SUPPORT 54248 int 54249 bcm_tomahawk3_tdpll_input_clock_threshold_state_get( 54250 int unit, 54251 int stack_id, 54252 int clock_index, 54253 bcm_tdpll_input_clock_monitor_type_t threshold_type, 54254 int *threshold_state) 54255 { 54256 return bcm_esw_tdpll_input_clock_threshold_state_get(unit, stack_id, clock_index, threshold_type, threshold_state); 54257 } 54258 #endif 54259 #endif 54260 54261 #if defined(INCLUDE_PTP) 54262 #ifdef BCM_TOMAHAWK3_SUPPORT 54263 int 54264 bcm_tomahawk3_tdpll_input_clock_valid_get( 54265 int unit, 54266 int stack_id, 54267 int clock_index, 54268 int *valid) 54269 { 54270 return bcm_esw_tdpll_input_clock_valid_get(unit, stack_id, clock_index, valid); 54271 } 54272 #endif 54273 #endif 54274 54275 #if defined(INCLUDE_PTP) 54276 #ifdef BCM_TOMAHAWK3_SUPPORT 54277 int 54278 bcm_tomahawk3_tdpll_input_clock_valid_set( 54279 int unit, 54280 int stack_id, 54281 int clock_index, 54282 int valid) 54283 { 54284 return bcm_esw_tdpll_input_clock_valid_set(unit, stack_id, clock_index, valid); 54285 } 54286 #endif 54287 #endif 54288 54289 #if defined(INCLUDE_PTP) 54290 #ifdef BCM_TOMAHAWK3_SUPPORT 54291 int 54292 bcm_tomahawk3_tdpll_output_clock_deriv_frequency_get( 54293 int unit, 54294 int stack_id, 54295 int clock_index, 54296 uint32 *deriv_frequency) 54297 { 54298 return bcm_esw_tdpll_output_clock_deriv_frequency_get(unit, stack_id, clock_index, deriv_frequency); 54299 } 54300 #endif 54301 #endif 54302 54303 #if defined(INCLUDE_PTP) 54304 #ifdef BCM_TOMAHAWK3_SUPPORT 54305 int 54306 bcm_tomahawk3_tdpll_output_clock_deriv_frequency_set( 54307 int unit, 54308 int stack_id, 54309 int clock_index, 54310 uint32 deriv_frequency) 54311 { 54312 return bcm_esw_tdpll_output_clock_deriv_frequency_set(unit, stack_id, clock_index, deriv_frequency); 54313 } 54314 #endif 54315 #endif 54316 54317 #if defined(INCLUDE_PTP) 54318 #ifdef BCM_TOMAHAWK3_SUPPORT 54319 int 54320 bcm_tomahawk3_tdpll_output_clock_enable_get( 54321 int unit, 54322 int stack_id, 54323 int clock_index, 54324 int *enable) 54325 { 54326 return bcm_esw_tdpll_output_clock_enable_get(unit, stack_id, clock_index, enable); 54327 } 54328 #endif 54329 #endif 54330 54331 #if defined(INCLUDE_PTP) 54332 #ifdef BCM_TOMAHAWK3_SUPPORT 54333 int 54334 bcm_tomahawk3_tdpll_output_clock_enable_set( 54335 int unit, 54336 int stack_id, 54337 int clock_index, 54338 int enable) 54339 { 54340 return bcm_esw_tdpll_output_clock_enable_set(unit, stack_id, clock_index, enable); 54341 } 54342 #endif 54343 #endif 54344 54345 #if defined(INCLUDE_PTP) 54346 #ifdef BCM_TOMAHAWK3_SUPPORT 54347 int 54348 bcm_tomahawk3_tdpll_output_clock_holdover_data_get( 54349 int unit, 54350 int stack_id, 54351 int clock_index, 54352 bcm_tdpll_holdover_data_t *hdata) 54353 { 54354 return bcm_esw_tdpll_output_clock_holdover_data_get(unit, stack_id, clock_index, hdata); 54355 } 54356 #endif 54357 #endif 54358 54359 #if defined(INCLUDE_PTP) 54360 #ifdef BCM_TOMAHAWK3_SUPPORT 54361 int 54362 bcm_tomahawk3_tdpll_output_clock_holdover_frequency_set( 54363 int unit, 54364 int stack_id, 54365 int clock_index, 54366 bcm_tdpll_frequency_correction_t hfreq) 54367 { 54368 return bcm_esw_tdpll_output_clock_holdover_frequency_set(unit, stack_id, clock_index, hfreq); 54369 } 54370 #endif 54371 #endif 54372 54373 #if defined(INCLUDE_PTP) 54374 #ifdef BCM_TOMAHAWK3_SUPPORT 54375 int 54376 bcm_tomahawk3_tdpll_output_clock_holdover_mode_get( 54377 int unit, 54378 int stack_id, 54379 int clock_index, 54380 bcm_tdpll_holdover_mode_t *hmode) 54381 { 54382 return bcm_esw_tdpll_output_clock_holdover_mode_get(unit, stack_id, clock_index, hmode); 54383 } 54384 #endif 54385 #endif 54386 54387 #if defined(INCLUDE_PTP) 54388 #ifdef BCM_TOMAHAWK3_SUPPORT 54389 int 54390 bcm_tomahawk3_tdpll_output_clock_holdover_mode_set( 54391 int unit, 54392 int stack_id, 54393 int clock_index, 54394 bcm_tdpll_holdover_mode_t hmode) 54395 { 54396 return bcm_esw_tdpll_output_clock_holdover_mode_set(unit, stack_id, clock_index, hmode); 54397 } 54398 #endif 54399 #endif 54400 54401 #if defined(INCLUDE_PTP) 54402 #ifdef BCM_TOMAHAWK3_SUPPORT 54403 int 54404 bcm_tomahawk3_tdpll_output_clock_holdover_reset( 54405 int unit, 54406 int stack_id, 54407 int clock_index) 54408 { 54409 return bcm_esw_tdpll_output_clock_holdover_reset(unit, stack_id, clock_index); 54410 } 54411 #endif 54412 #endif 54413 54414 #if defined(INCLUDE_PTP) 54415 #ifdef BCM_TOMAHAWK3_SUPPORT 54416 int 54417 bcm_tomahawk3_tdpll_output_clock_synth_frequency_get( 54418 int unit, 54419 int stack_id, 54420 int clock_index, 54421 uint32 *synth_frequency, 54422 uint32 *tsevent_frequency) 54423 { 54424 return bcm_esw_tdpll_output_clock_synth_frequency_get(unit, stack_id, clock_index, synth_frequency, tsevent_frequency); 54425 } 54426 #endif 54427 #endif 54428 54429 #if defined(INCLUDE_PTP) 54430 #ifdef BCM_TOMAHAWK3_SUPPORT 54431 int 54432 bcm_tomahawk3_tdpll_output_clock_synth_frequency_set( 54433 int unit, 54434 int stack_id, 54435 int clock_index, 54436 uint32 synth_frequency, 54437 uint32 tsevent_frequency) 54438 { 54439 return bcm_esw_tdpll_output_clock_synth_frequency_set(unit, stack_id, clock_index, synth_frequency, tsevent_frequency); 54440 } 54441 #endif 54442 #endif 54443 54444 #ifdef BCM_TOMAHAWK3_SUPPORT 54445 int 54446 bcm_tomahawk3_telemetry_config_get( 54447 int unit, 54448 int telemetry_instance, 54449 int core, 54450 int max_count, 54451 bcm_telemetry_config_t *telemetry_config_list, 54452 int *config_count) 54453 { 54454 return bcm_esw_telemetry_config_get(unit, telemetry_instance, core, max_count, telemetry_config_list, config_count); 54455 } 54456 #endif 54457 54458 #ifdef BCM_TOMAHAWK3_SUPPORT 54459 int 54460 bcm_tomahawk3_telemetry_config_set( 54461 int unit, 54462 int telemetry_instance, 54463 int core, 54464 int config_count, 54465 bcm_telemetry_config_t *telemetry_config_list) 54466 { 54467 return bcm_esw_telemetry_config_set(unit, telemetry_instance, core, config_count, telemetry_config_list); 54468 } 54469 #endif 54470 54471 #ifdef BCM_TOMAHAWK3_SUPPORT 54472 int 54473 bcm_tomahawk3_telemetry_detach( 54474 int unit) 54475 { 54476 return bcm_esw_telemetry_detach(unit); 54477 } 54478 #endif 54479 54480 #ifdef BCM_TOMAHAWK3_SUPPORT 54481 int 54482 bcm_tomahawk3_telemetry_export_config_delete( 54483 int unit, 54484 int telemetry_instance, 54485 bcm_collector_t collector_id, 54486 int export_profile_id) 54487 { 54488 return bcm_esw_telemetry_export_config_delete(unit, telemetry_instance, collector_id, export_profile_id); 54489 } 54490 #endif 54491 54492 #ifdef BCM_TOMAHAWK3_SUPPORT 54493 int 54494 bcm_tomahawk3_telemetry_export_config_get( 54495 int unit, 54496 int telemetry_instance, 54497 bcm_collector_t *collector_id, 54498 int *export_profile_id) 54499 { 54500 return bcm_esw_telemetry_export_config_get(unit, telemetry_instance, collector_id, export_profile_id); 54501 } 54502 #endif 54503 54504 #ifdef BCM_TOMAHAWK3_SUPPORT 54505 int 54506 bcm_tomahawk3_telemetry_export_config_set( 54507 int unit, 54508 int telemetry_instance, 54509 bcm_collector_t collector_id, 54510 int export_profile_id) 54511 { 54512 return bcm_esw_telemetry_export_config_set(unit, telemetry_instance, collector_id, export_profile_id); 54513 } 54514 #endif 54515 54516 #ifdef BCM_TOMAHAWK3_SUPPORT 54517 int 54518 bcm_tomahawk3_telemetry_init( 54519 int unit) 54520 { 54521 return bcm_esw_telemetry_init(unit); 54522 } 54523 #endif 54524 54525 #ifdef BCM_TOMAHAWK3_SUPPORT 54526 int 54527 bcm_tomahawk3_telemetry_instance_export_stats_get( 54528 int unit, 54529 int telemetry_instance, 54530 bcm_collector_t collector_id, 54531 bcm_telemetry_instance_export_stats_t *stats) 54532 { 54533 return bcm_esw_telemetry_instance_export_stats_get(unit, telemetry_instance, collector_id, stats); 54534 } 54535 #endif 54536 54537 #ifdef BCM_TOMAHAWK3_SUPPORT 54538 int 54539 bcm_tomahawk3_telemetry_instance_export_stats_set( 54540 int unit, 54541 int telemetry_instance, 54542 bcm_collector_t collector_id, 54543 bcm_telemetry_instance_export_stats_t *stats) 54544 { 54545 return bcm_esw_telemetry_instance_export_stats_set(unit, telemetry_instance, collector_id, stats); 54546 } 54547 #endif 54548 54549 #ifdef BCM_TOMAHAWK3_SUPPORT 54550 int 54551 bcm_tomahawk3_telemetry_system_id_get( 54552 int unit, 54553 int max_system_id_len, 54554 int *system_id_len, 54555 uint8 *system_id) 54556 { 54557 return bcm_esw_telemetry_system_id_get(unit, max_system_id_len, system_id_len, system_id); 54558 } 54559 #endif 54560 54561 #ifdef BCM_TOMAHAWK3_SUPPORT 54562 int 54563 bcm_tomahawk3_telemetry_system_id_set( 54564 int unit, 54565 int system_id_len, 54566 uint8 *system_id) 54567 { 54568 return bcm_esw_telemetry_system_id_set(unit, system_id_len, system_id); 54569 } 54570 #endif 54571 54572 #ifdef BCM_TOMAHAWK3_SUPPORT 54573 int 54574 bcm_tomahawk3_time_bs_log_configure_get( 54575 int unit, 54576 bcm_time_bs_log_cfg_t *bs_log_cfg) 54577 { 54578 return bcm_esw_time_bs_log_configure_get(unit, bs_log_cfg); 54579 } 54580 #endif 54581 54582 #ifdef BCM_TOMAHAWK3_SUPPORT 54583 int 54584 bcm_tomahawk3_time_bs_log_configure_set( 54585 int unit, 54586 bcm_time_bs_log_cfg_t bs_log_cfg) 54587 { 54588 return bcm_esw_time_bs_log_configure_set(unit, bs_log_cfg); 54589 } 54590 #endif 54591 54592 #ifdef BCM_TOMAHAWK3_SUPPORT 54593 int 54594 bcm_tomahawk3_time_bs_time_get( 54595 int unit, 54596 bcm_time_spec_t *bs_time) 54597 { 54598 return bcm_esw_time_bs_time_get(unit, bs_time); 54599 } 54600 #endif 54601 54602 #ifdef BCM_TOMAHAWK3_SUPPORT 54603 int 54604 bcm_tomahawk3_time_capture_cb_register( 54605 int unit, 54606 bcm_time_if_t id, 54607 bcm_time_capture_cb_type_t cb_type, 54608 bcm_time_capture_cb cb, 54609 void *user_data) 54610 { 54611 return bcm_esw_time_capture_cb_register(unit, id, cb_type, cb, user_data); 54612 } 54613 #endif 54614 54615 #ifdef BCM_TOMAHAWK3_SUPPORT 54616 int 54617 bcm_tomahawk3_time_capture_cb_unregister( 54618 int unit, 54619 bcm_time_if_t id, 54620 bcm_time_capture_cb_type_t cb_type) 54621 { 54622 return bcm_esw_time_capture_cb_unregister(unit, id, cb_type); 54623 } 54624 #endif 54625 54626 #ifdef BCM_TOMAHAWK3_SUPPORT 54627 int 54628 bcm_tomahawk3_time_capture_enable_set( 54629 int unit, 54630 bcm_time_if_t id, 54631 bcm_time_capture_t *time_capture, 54632 int enable, 54633 int *capture_handle) 54634 { 54635 return bcm_esw_time_capture_enable_set(unit, id, time_capture, enable, capture_handle); 54636 } 54637 #endif 54638 54639 #ifdef BCM_TOMAHAWK3_SUPPORT 54640 int 54641 bcm_tomahawk3_time_capture_get( 54642 int unit, 54643 bcm_time_if_t intf_id, 54644 bcm_time_capture_t *time) 54645 { 54646 return bcm_esw_time_capture_get(unit, intf_id, time); 54647 } 54648 #endif 54649 54650 #ifdef BCM_TOMAHAWK3_SUPPORT 54651 int 54652 bcm_tomahawk3_time_deinit( 54653 int unit) 54654 { 54655 return bcm_esw_time_deinit(unit); 54656 } 54657 #endif 54658 54659 #ifdef BCM_TOMAHAWK3_SUPPORT 54660 int 54661 bcm_tomahawk3_time_heartbeat_enable_get( 54662 int unit, 54663 bcm_time_if_t id, 54664 int *enable) 54665 { 54666 return bcm_esw_time_heartbeat_enable_get(unit, id, enable); 54667 } 54668 #endif 54669 54670 #ifdef BCM_TOMAHAWK3_SUPPORT 54671 int 54672 bcm_tomahawk3_time_heartbeat_enable_set( 54673 int unit, 54674 bcm_time_if_t id, 54675 int enable) 54676 { 54677 return bcm_esw_time_heartbeat_enable_set(unit, id, enable); 54678 } 54679 #endif 54680 54681 #ifdef BCM_TOMAHAWK3_SUPPORT 54682 int 54683 bcm_tomahawk3_time_heartbeat_register( 54684 int unit, 54685 bcm_time_if_t id, 54686 bcm_time_heartbeat_cb f, 54687 void *user_data) 54688 { 54689 return bcm_esw_time_heartbeat_register(unit, id, f, user_data); 54690 } 54691 #endif 54692 54693 #ifdef BCM_TOMAHAWK3_SUPPORT 54694 int 54695 bcm_tomahawk3_time_heartbeat_unregister( 54696 int unit, 54697 bcm_time_if_t id) 54698 { 54699 return bcm_esw_time_heartbeat_unregister(unit, id); 54700 } 54701 #endif 54702 54703 #ifdef BCM_TOMAHAWK3_SUPPORT 54704 int 54705 bcm_tomahawk3_time_init( 54706 int unit) 54707 { 54708 return bcm_esw_time_init(unit); 54709 } 54710 #endif 54711 54712 #ifdef BCM_TOMAHAWK3_SUPPORT 54713 int 54714 bcm_tomahawk3_time_interface_add( 54715 int unit, 54716 bcm_time_interface_t *intf) 54717 { 54718 return bcm_esw_time_interface_add(unit, intf); 54719 } 54720 #endif 54721 54722 #ifdef BCM_TOMAHAWK3_SUPPORT 54723 int 54724 bcm_tomahawk3_time_interface_delete( 54725 int unit, 54726 bcm_time_if_t intf_id) 54727 { 54728 return bcm_esw_time_interface_delete(unit, intf_id); 54729 } 54730 #endif 54731 54732 #ifdef BCM_TOMAHAWK3_SUPPORT 54733 int 54734 bcm_tomahawk3_time_interface_delete_all( 54735 int unit) 54736 { 54737 return bcm_esw_time_interface_delete_all(unit); 54738 } 54739 #endif 54740 54741 #ifdef BCM_TOMAHAWK3_SUPPORT 54742 int 54743 bcm_tomahawk3_time_interface_get( 54744 int unit, 54745 bcm_time_interface_t *intf) 54746 { 54747 return bcm_esw_time_interface_get(unit, intf); 54748 } 54749 #endif 54750 54751 #ifdef BCM_TOMAHAWK3_SUPPORT 54752 int 54753 bcm_tomahawk3_time_interface_traverse( 54754 int unit, 54755 bcm_time_interface_traverse_cb cb, 54756 void *user_data) 54757 { 54758 return bcm_esw_time_interface_traverse(unit, cb, user_data); 54759 } 54760 #endif 54761 54762 #ifdef BCM_TOMAHAWK3_SUPPORT 54763 int 54764 bcm_tomahawk3_time_synce_clock_get( 54765 int unit, 54766 bcm_time_synce_clock_src_type_t clk_src, 54767 bcm_time_synce_divisor_setting_t *divisor_setting) 54768 { 54769 return bcm_esw_time_synce_clock_get(unit, clk_src, divisor_setting); 54770 } 54771 #endif 54772 54773 #ifdef BCM_TOMAHAWK3_SUPPORT 54774 int 54775 bcm_tomahawk3_time_synce_clock_set( 54776 int unit, 54777 bcm_time_synce_clock_src_type_t clk_src, 54778 bcm_time_synce_divisor_setting_t *divisor_setting) 54779 { 54780 return bcm_esw_time_synce_clock_set(unit, clk_src, divisor_setting); 54781 } 54782 #endif 54783 54784 #ifdef BCM_TOMAHAWK3_SUPPORT 54785 int 54786 bcm_tomahawk3_time_synce_clock_source_control_get( 54787 int unit, 54788 bcm_time_synce_clock_source_config_t *clk_src_config, 54789 bcm_time_synce_clock_source_control_t control, 54790 int *value) 54791 { 54792 return bcm_esw_time_synce_clock_source_control_get(unit, clk_src_config, control, value); 54793 } 54794 #endif 54795 54796 #ifdef BCM_TOMAHAWK3_SUPPORT 54797 int 54798 bcm_tomahawk3_time_synce_clock_source_control_set( 54799 int unit, 54800 bcm_time_synce_clock_source_config_t *clk_src_config, 54801 bcm_time_synce_clock_source_control_t control, 54802 int value) 54803 { 54804 return bcm_esw_time_synce_clock_source_control_set(unit, clk_src_config, control, value); 54805 } 54806 #endif 54807 54808 #ifdef BCM_TOMAHAWK3_SUPPORT 54809 int 54810 bcm_tomahawk3_time_tod_get( 54811 int unit, 54812 uint32 stages, 54813 bcm_time_tod_t *tod) 54814 { 54815 return bcm_esw_time_tod_get(unit, stages, tod); 54816 } 54817 #endif 54818 54819 #ifdef BCM_TOMAHAWK3_SUPPORT 54820 int 54821 bcm_tomahawk3_time_tod_set( 54822 int unit, 54823 uint32 stages, 54824 bcm_time_tod_t *tod) 54825 { 54826 return bcm_esw_time_tod_set(unit, stages, tod); 54827 } 54828 #endif 54829 54830 #ifdef BCM_TOMAHAWK3_SUPPORT 54831 int 54832 bcm_tomahawk3_time_trigger_enable_get( 54833 int unit, 54834 bcm_time_if_t id, 54835 uint32 *mode_flags) 54836 { 54837 return bcm_esw_time_trigger_enable_get(unit, id, mode_flags); 54838 } 54839 #endif 54840 54841 #ifdef BCM_TOMAHAWK3_SUPPORT 54842 int 54843 bcm_tomahawk3_time_trigger_enable_set( 54844 int unit, 54845 bcm_time_if_t id, 54846 uint32 mode_flags) 54847 { 54848 return bcm_esw_time_trigger_enable_set(unit, id, mode_flags); 54849 } 54850 #endif 54851 54852 #ifdef BCM_TOMAHAWK3_SUPPORT 54853 int 54854 bcm_tomahawk3_time_ts_counter_get( 54855 int unit, 54856 bcm_time_ts_counter_t *counter) 54857 { 54858 return bcm_esw_time_ts_counter_get(unit, counter); 54859 } 54860 #endif 54861 54862 #ifdef BCM_TOMAHAWK3_SUPPORT 54863 int 54864 bcm_tomahawk3_time_ts_counter_set( 54865 int unit, 54866 bcm_time_ts_counter_t *counter) 54867 { 54868 return bcm_esw_time_ts_counter_set(unit, counter); 54869 } 54870 #endif 54871 54872 #ifdef BCM_TOMAHAWK3_SUPPORT 54873 int 54874 bcm_tomahawk3_topo_port_get( 54875 int unit, 54876 int dest_modid, 54877 bcm_port_t *exit_port) 54878 { 54879 return bcm_esw_topo_port_get(unit, dest_modid, exit_port); 54880 } 54881 #endif 54882 54883 #if defined(INCLUDE_L3) 54884 #if defined(INCLUDE_L3) 54885 #ifdef BCM_TOMAHAWK3_SUPPORT 54886 int 54887 bcm_tomahawk3_trill_cleanup( 54888 int unit) 54889 { 54890 return bcm_esw_trill_cleanup(unit); 54891 } 54892 #endif 54893 #endif 54894 #endif 54895 54896 #if defined(INCLUDE_L3) 54897 #if defined(INCLUDE_L3) 54898 #ifdef BCM_TOMAHAWK3_SUPPORT 54899 int 54900 bcm_tomahawk3_trill_init( 54901 int unit) 54902 { 54903 return bcm_esw_trill_init(unit); 54904 } 54905 #endif 54906 #endif 54907 #endif 54908 54909 #if defined(INCLUDE_L3) 54910 #if defined(INCLUDE_L3) 54911 #ifdef BCM_TOMAHAWK3_SUPPORT 54912 int 54913 bcm_tomahawk3_trill_multicast_adjacency_add( 54914 int unit, 54915 bcm_trill_multicast_adjacency_t *trill_multicast_adjacency) 54916 { 54917 return bcm_esw_trill_multicast_adjacency_add(unit, trill_multicast_adjacency); 54918 } 54919 #endif 54920 #endif 54921 #endif 54922 54923 #if defined(INCLUDE_L3) 54924 #if defined(INCLUDE_L3) 54925 #ifdef BCM_TOMAHAWK3_SUPPORT 54926 int 54927 bcm_tomahawk3_trill_multicast_adjacency_delete( 54928 int unit, 54929 bcm_trill_multicast_adjacency_t *trill_multicast_adjacency) 54930 { 54931 return bcm_esw_trill_multicast_adjacency_delete(unit, trill_multicast_adjacency); 54932 } 54933 #endif 54934 #endif 54935 #endif 54936 54937 #if defined(INCLUDE_L3) 54938 #if defined(INCLUDE_L3) 54939 #ifdef BCM_TOMAHAWK3_SUPPORT 54940 int 54941 bcm_tomahawk3_trill_multicast_adjacency_delete_all( 54942 int unit) 54943 { 54944 return bcm_esw_trill_multicast_adjacency_delete_all(unit); 54945 } 54946 #endif 54947 #endif 54948 #endif 54949 54950 #if defined(INCLUDE_L3) 54951 #if defined(INCLUDE_L3) 54952 #ifdef BCM_TOMAHAWK3_SUPPORT 54953 int 54954 bcm_tomahawk3_trill_multicast_adjacency_traverse( 54955 int unit, 54956 bcm_trill_multicast_adjacency_traverse_cb cb, 54957 void *user_data) 54958 { 54959 return bcm_esw_trill_multicast_adjacency_traverse(unit, cb, user_data); 54960 } 54961 #endif 54962 #endif 54963 #endif 54964 54965 #if defined(INCLUDE_L3) 54966 #if defined(INCLUDE_L3) 54967 #ifdef BCM_TOMAHAWK3_SUPPORT 54968 int 54969 bcm_tomahawk3_trill_multicast_delete_all( 54970 int unit, 54971 bcm_trill_name_t root_name) 54972 { 54973 return bcm_esw_trill_multicast_delete_all(unit, root_name); 54974 } 54975 #endif 54976 #endif 54977 #endif 54978 54979 #if defined(INCLUDE_L3) 54980 #if defined(INCLUDE_L3) 54981 #ifdef BCM_TOMAHAWK3_SUPPORT 54982 int 54983 bcm_tomahawk3_trill_multicast_entry_add( 54984 int unit, 54985 bcm_trill_multicast_entry_t *trill_mc_entry) 54986 { 54987 return bcm_esw_trill_multicast_entry_add(unit, trill_mc_entry); 54988 } 54989 #endif 54990 #endif 54991 #endif 54992 54993 #if defined(INCLUDE_L3) 54994 #if defined(INCLUDE_L3) 54995 #ifdef BCM_TOMAHAWK3_SUPPORT 54996 int 54997 bcm_tomahawk3_trill_multicast_entry_delete( 54998 int unit, 54999 bcm_trill_multicast_entry_t *trill_mc_entry) 55000 { 55001 return bcm_esw_trill_multicast_entry_delete(unit, trill_mc_entry); 55002 } 55003 #endif 55004 #endif 55005 #endif 55006 55007 #if defined(INCLUDE_L3) 55008 #if defined(INCLUDE_L3) 55009 #ifdef BCM_TOMAHAWK3_SUPPORT 55010 int 55011 bcm_tomahawk3_trill_multicast_entry_get( 55012 int unit, 55013 bcm_trill_multicast_entry_t *trill_mc_entry) 55014 { 55015 return bcm_esw_trill_multicast_entry_get(unit, trill_mc_entry); 55016 } 55017 #endif 55018 #endif 55019 #endif 55020 55021 #if defined(INCLUDE_L3) 55022 #if defined(INCLUDE_L3) 55023 #ifdef BCM_TOMAHAWK3_SUPPORT 55024 int 55025 bcm_tomahawk3_trill_multicast_entry_traverse( 55026 int unit, 55027 bcm_trill_multicast_entry_traverse_cb cb, 55028 void *user_data) 55029 { 55030 return bcm_esw_trill_multicast_entry_traverse(unit, cb, user_data); 55031 } 55032 #endif 55033 #endif 55034 #endif 55035 55036 #if defined(INCLUDE_L3) 55037 #if defined(INCLUDE_L3) 55038 #ifdef BCM_TOMAHAWK3_SUPPORT 55039 int 55040 bcm_tomahawk3_trill_multicast_source_add( 55041 int unit, 55042 bcm_trill_name_t root_name, 55043 bcm_trill_name_t source_rbridge_name, 55044 bcm_gport_t port, 55045 bcm_if_t encap_intf) 55046 { 55047 return bcm_esw_trill_multicast_source_add(unit, root_name, source_rbridge_name, port, encap_intf); 55048 } 55049 #endif 55050 #endif 55051 #endif 55052 55053 #if defined(INCLUDE_L3) 55054 #if defined(INCLUDE_L3) 55055 #ifdef BCM_TOMAHAWK3_SUPPORT 55056 int 55057 bcm_tomahawk3_trill_multicast_source_delete( 55058 int unit, 55059 bcm_trill_name_t root_name, 55060 bcm_trill_name_t source_rbridge_name, 55061 bcm_gport_t port, 55062 bcm_if_t encap_intf) 55063 { 55064 return bcm_esw_trill_multicast_source_delete(unit, root_name, source_rbridge_name, port, encap_intf); 55065 } 55066 #endif 55067 #endif 55068 #endif 55069 55070 #if defined(INCLUDE_L3) 55071 #if defined(INCLUDE_L3) 55072 #ifdef BCM_TOMAHAWK3_SUPPORT 55073 int 55074 bcm_tomahawk3_trill_multicast_source_get( 55075 int unit, 55076 bcm_trill_name_t root_name, 55077 bcm_trill_name_t source_rbridge_name, 55078 bcm_gport_t *port) 55079 { 55080 return bcm_esw_trill_multicast_source_get(unit, root_name, source_rbridge_name, port); 55081 } 55082 #endif 55083 #endif 55084 #endif 55085 55086 #if defined(INCLUDE_L3) 55087 #if defined(INCLUDE_L3) 55088 #ifdef BCM_TOMAHAWK3_SUPPORT 55089 int 55090 bcm_tomahawk3_trill_multicast_source_traverse( 55091 int unit, 55092 bcm_trill_multicast_source_traverse_cb cb, 55093 void *user_data) 55094 { 55095 return bcm_esw_trill_multicast_source_traverse(unit, cb, user_data); 55096 } 55097 #endif 55098 #endif 55099 #endif 55100 55101 #if defined(INCLUDE_L3) 55102 #if defined(INCLUDE_L3) 55103 #ifdef BCM_TOMAHAWK3_SUPPORT 55104 int 55105 bcm_tomahawk3_trill_port_add( 55106 int unit, 55107 bcm_trill_port_t *trill_port) 55108 { 55109 return bcm_esw_trill_port_add(unit, trill_port); 55110 } 55111 #endif 55112 #endif 55113 #endif 55114 55115 #if defined(INCLUDE_L3) 55116 #if defined(INCLUDE_L3) 55117 #ifdef BCM_TOMAHAWK3_SUPPORT 55118 int 55119 bcm_tomahawk3_trill_port_delete( 55120 int unit, 55121 bcm_gport_t trill_port_id) 55122 { 55123 return bcm_esw_trill_port_delete(unit, trill_port_id); 55124 } 55125 #endif 55126 #endif 55127 #endif 55128 55129 #if defined(INCLUDE_L3) 55130 #if defined(INCLUDE_L3) 55131 #ifdef BCM_TOMAHAWK3_SUPPORT 55132 int 55133 bcm_tomahawk3_trill_port_delete_all( 55134 int unit) 55135 { 55136 return bcm_esw_trill_port_delete_all(unit); 55137 } 55138 #endif 55139 #endif 55140 #endif 55141 55142 #if defined(INCLUDE_L3) 55143 #if defined(INCLUDE_L3) 55144 #ifdef BCM_TOMAHAWK3_SUPPORT 55145 int 55146 bcm_tomahawk3_trill_port_get( 55147 int unit, 55148 bcm_trill_port_t *trill_port) 55149 { 55150 return bcm_esw_trill_port_get(unit, trill_port); 55151 } 55152 #endif 55153 #endif 55154 #endif 55155 55156 #if defined(INCLUDE_L3) 55157 #if defined(INCLUDE_L3) 55158 #ifdef BCM_TOMAHAWK3_SUPPORT 55159 int 55160 bcm_tomahawk3_trill_port_get_all( 55161 int unit, 55162 int port_max, 55163 bcm_trill_port_t *port_array, 55164 int *port_count) 55165 { 55166 return bcm_esw_trill_port_get_all(unit, port_max, port_array, port_count); 55167 } 55168 #endif 55169 #endif 55170 #endif 55171 55172 #if defined(INCLUDE_L3) 55173 #if defined(INCLUDE_L3) 55174 #ifdef BCM_TOMAHAWK3_SUPPORT 55175 int 55176 bcm_tomahawk3_trill_rbridge_entry_add( 55177 int unit, 55178 bcm_trill_rbridge_t *trill_entry) 55179 { 55180 return bcm_esw_trill_rbridge_entry_add(unit, trill_entry); 55181 } 55182 #endif 55183 #endif 55184 #endif 55185 55186 #if defined(INCLUDE_L3) 55187 #if defined(INCLUDE_L3) 55188 #ifdef BCM_TOMAHAWK3_SUPPORT 55189 int 55190 bcm_tomahawk3_trill_rbridge_entry_delete( 55191 int unit, 55192 bcm_trill_rbridge_t *trill_entry) 55193 { 55194 return bcm_esw_trill_rbridge_entry_delete(unit, trill_entry); 55195 } 55196 #endif 55197 #endif 55198 #endif 55199 55200 #if defined(INCLUDE_L3) 55201 #if defined(INCLUDE_L3) 55202 #ifdef BCM_TOMAHAWK3_SUPPORT 55203 int 55204 bcm_tomahawk3_trill_rbridge_entry_get( 55205 int unit, 55206 bcm_trill_rbridge_t *trill_entry) 55207 { 55208 return bcm_esw_trill_rbridge_entry_get(unit, trill_entry); 55209 } 55210 #endif 55211 #endif 55212 #endif 55213 55214 #if defined(INCLUDE_L3) 55215 #if defined(INCLUDE_L3) 55216 #ifdef BCM_TOMAHAWK3_SUPPORT 55217 int 55218 bcm_tomahawk3_trill_stat_clear( 55219 int unit, 55220 bcm_port_t port, 55221 bcm_trill_stat_t stat) 55222 { 55223 return bcm_esw_trill_stat_clear(unit, port, stat); 55224 } 55225 #endif 55226 #endif 55227 #endif 55228 55229 #if defined(INCLUDE_L3) 55230 #if defined(INCLUDE_L3) 55231 #ifdef BCM_TOMAHAWK3_SUPPORT 55232 int 55233 bcm_tomahawk3_trill_stat_get( 55234 int unit, 55235 bcm_port_t port, 55236 bcm_trill_stat_t stat, 55237 uint64 *val) 55238 { 55239 return bcm_esw_trill_stat_get(unit, port, stat, val); 55240 } 55241 #endif 55242 #endif 55243 #endif 55244 55245 #if defined(INCLUDE_L3) 55246 #if defined(INCLUDE_L3) 55247 #ifdef BCM_TOMAHAWK3_SUPPORT 55248 int 55249 bcm_tomahawk3_trill_stat_get32( 55250 int unit, 55251 bcm_port_t port, 55252 bcm_trill_stat_t stat, 55253 uint32 *val) 55254 { 55255 return bcm_esw_trill_stat_get32(unit, port, stat, val); 55256 } 55257 #endif 55258 #endif 55259 #endif 55260 55261 #if defined(INCLUDE_L3) 55262 #if defined(INCLUDE_L3) 55263 #ifdef BCM_TOMAHAWK3_SUPPORT 55264 int 55265 bcm_tomahawk3_trill_vpn_create( 55266 int unit, 55267 bcm_trill_vpn_config_t *info) 55268 { 55269 return bcm_esw_trill_vpn_create(unit, info); 55270 } 55271 #endif 55272 #endif 55273 #endif 55274 55275 #if defined(INCLUDE_L3) 55276 #if defined(INCLUDE_L3) 55277 #ifdef BCM_TOMAHAWK3_SUPPORT 55278 int 55279 bcm_tomahawk3_trill_vpn_destroy( 55280 int unit, 55281 bcm_vpn_t vpn) 55282 { 55283 return bcm_esw_trill_vpn_destroy(unit, vpn); 55284 } 55285 #endif 55286 #endif 55287 #endif 55288 55289 #if defined(INCLUDE_L3) 55290 #if defined(INCLUDE_L3) 55291 #ifdef BCM_TOMAHAWK3_SUPPORT 55292 int 55293 bcm_tomahawk3_trill_vpn_destroy_all( 55294 int unit) 55295 { 55296 return bcm_esw_trill_vpn_destroy_all(unit); 55297 } 55298 #endif 55299 #endif 55300 #endif 55301 55302 #if defined(INCLUDE_L3) 55303 #if defined(INCLUDE_L3) 55304 #ifdef BCM_TOMAHAWK3_SUPPORT 55305 int 55306 bcm_tomahawk3_trill_vpn_get( 55307 int unit, 55308 bcm_vpn_t vpn, 55309 bcm_trill_vpn_config_t *info) 55310 { 55311 return bcm_esw_trill_vpn_get(unit, vpn, info); 55312 } 55313 #endif 55314 #endif 55315 #endif 55316 55317 #if defined(INCLUDE_L3) 55318 #if defined(INCLUDE_L3) 55319 #ifdef BCM_TOMAHAWK3_SUPPORT 55320 int 55321 bcm_tomahawk3_trill_vpn_traverse( 55322 int unit, 55323 bcm_trill_vpn_traverse_cb cb, 55324 void *user_data) 55325 { 55326 return bcm_esw_trill_vpn_traverse(unit, cb, user_data); 55327 } 55328 #endif 55329 #endif 55330 #endif 55331 55332 #ifdef BCM_TOMAHAWK3_SUPPORT 55333 int 55334 bcm_tomahawk3_trunk_agm_attach( 55335 int unit, 55336 bcm_trunk_t trunk_id, 55337 bcm_switch_agm_id_t agm_id) 55338 { 55339 return bcm_esw_trunk_agm_attach(unit, trunk_id, agm_id); 55340 } 55341 #endif 55342 55343 #ifdef BCM_TOMAHAWK3_SUPPORT 55344 int 55345 bcm_tomahawk3_trunk_agm_attach_get( 55346 int unit, 55347 bcm_trunk_t trunk_id, 55348 bcm_switch_agm_id_t *agm_id) 55349 { 55350 return bcm_esw_trunk_agm_attach_get(unit, trunk_id, agm_id); 55351 } 55352 #endif 55353 55354 #ifdef BCM_TOMAHAWK3_SUPPORT 55355 int 55356 bcm_tomahawk3_trunk_agm_detach( 55357 int unit, 55358 bcm_trunk_t trunk_id, 55359 bcm_switch_agm_id_t agm_id) 55360 { 55361 return bcm_esw_trunk_agm_detach(unit, trunk_id, agm_id); 55362 } 55363 #endif 55364 55365 #ifdef BCM_TOMAHAWK3_SUPPORT 55366 int 55367 bcm_tomahawk3_trunk_bitmap_expand( 55368 int unit, 55369 bcm_pbmp_t *pbmp_ptr) 55370 { 55371 return bcm_esw_trunk_bitmap_expand(unit, pbmp_ptr); 55372 } 55373 #endif 55374 55375 #ifdef BCM_TOMAHAWK3_SUPPORT 55376 int 55377 bcm_tomahawk3_trunk_chip_info_get( 55378 int unit, 55379 bcm_trunk_chip_info_t *ta_info) 55380 { 55381 return bcm_esw_trunk_chip_info_get(unit, ta_info); 55382 } 55383 #endif 55384 55385 #ifdef BCM_TOMAHAWK3_SUPPORT 55386 int 55387 bcm_tomahawk3_trunk_create( 55388 int unit, 55389 uint32 flags, 55390 bcm_trunk_t *tid) 55391 { 55392 return bcm_esw_trunk_create(unit, flags, tid); 55393 } 55394 #endif 55395 55396 #ifdef BCM_TOMAHAWK3_SUPPORT 55397 int 55398 bcm_tomahawk3_trunk_destroy( 55399 int unit, 55400 bcm_trunk_t tid) 55401 { 55402 return bcm_esw_trunk_destroy(unit, tid); 55403 } 55404 #endif 55405 55406 #ifdef BCM_TOMAHAWK3_SUPPORT 55407 int 55408 bcm_tomahawk3_trunk_detach( 55409 int unit) 55410 { 55411 return bcm_esw_trunk_detach(unit); 55412 } 55413 #endif 55414 55415 #ifdef BCM_TOMAHAWK3_SUPPORT 55416 int 55417 bcm_tomahawk3_trunk_egress_get( 55418 int unit, 55419 bcm_trunk_t tid, 55420 bcm_pbmp_t *pbmp) 55421 { 55422 return bcm_esw_trunk_egress_get(unit, tid, pbmp); 55423 } 55424 #endif 55425 55426 #ifdef BCM_TOMAHAWK3_SUPPORT 55427 int 55428 bcm_tomahawk3_trunk_egress_set( 55429 int unit, 55430 bcm_trunk_t tid, 55431 bcm_pbmp_t pbmp) 55432 { 55433 return bcm_esw_trunk_egress_set(unit, tid, pbmp); 55434 } 55435 #endif 55436 55437 #ifdef BCM_TOMAHAWK3_SUPPORT 55438 int 55439 bcm_tomahawk3_trunk_ethertype_get( 55440 int unit, 55441 uint32 *flags, 55442 int ethertype_max, 55443 int *ethertype_array, 55444 int *ethertype_count) 55445 { 55446 return bcm_esw_trunk_ethertype_get(unit, flags, ethertype_max, ethertype_array, ethertype_count); 55447 } 55448 #endif 55449 55450 #ifdef BCM_TOMAHAWK3_SUPPORT 55451 int 55452 bcm_tomahawk3_trunk_ethertype_set( 55453 int unit, 55454 uint32 flags, 55455 int ethertype_count, 55456 int *ethertype_array) 55457 { 55458 return bcm_esw_trunk_ethertype_set(unit, flags, ethertype_count, ethertype_array); 55459 } 55460 #endif 55461 55462 #ifdef BCM_TOMAHAWK3_SUPPORT 55463 int 55464 bcm_tomahawk3_trunk_failover_get( 55465 int unit, 55466 bcm_trunk_t tid, 55467 bcm_gport_t failport, 55468 int *psc, 55469 uint32 *flags, 55470 int array_size, 55471 bcm_gport_t *fail_to_array, 55472 int *array_count) 55473 { 55474 return bcm_esw_trunk_failover_get(unit, tid, failport, psc, flags, array_size, fail_to_array, array_count); 55475 } 55476 #endif 55477 55478 #ifdef BCM_TOMAHAWK3_SUPPORT 55479 int 55480 bcm_tomahawk3_trunk_failover_set( 55481 int unit, 55482 bcm_trunk_t tid, 55483 bcm_gport_t failport, 55484 int psc, 55485 uint32 flags, 55486 int count, 55487 bcm_gport_t *fail_to_array) 55488 { 55489 return bcm_esw_trunk_failover_set(unit, tid, failport, psc, flags, count, fail_to_array); 55490 } 55491 #endif 55492 55493 #ifdef BCM_TOMAHAWK3_SUPPORT 55494 int 55495 bcm_tomahawk3_trunk_find( 55496 int unit, 55497 bcm_module_t modid, 55498 bcm_gport_t gport, 55499 bcm_trunk_t *tid) 55500 { 55501 return bcm_esw_trunk_find(unit, modid, gport, tid); 55502 } 55503 #endif 55504 55505 #ifdef BCM_TOMAHAWK3_SUPPORT 55506 int 55507 bcm_tomahawk3_trunk_get( 55508 int unit, 55509 bcm_trunk_t tid, 55510 bcm_trunk_info_t *t_data, 55511 int member_max, 55512 bcm_trunk_member_t *member_array, 55513 int *member_count) 55514 { 55515 return bcm_esw_trunk_get(unit, tid, t_data, member_max, member_array, member_count); 55516 } 55517 #endif 55518 55519 #ifdef BCM_TOMAHAWK3_SUPPORT 55520 int 55521 bcm_tomahawk3_trunk_gport_add( 55522 int unit, 55523 bcm_trunk_t tid, 55524 bcm_gport_t gport) 55525 { 55526 return bcm_esw_trunk_gport_add(unit, tid, gport); 55527 } 55528 #endif 55529 55530 #ifdef BCM_TOMAHAWK3_SUPPORT 55531 int 55532 bcm_tomahawk3_trunk_gport_delete( 55533 int unit, 55534 bcm_trunk_t tid, 55535 bcm_gport_t gport) 55536 { 55537 return bcm_esw_trunk_gport_delete(unit, tid, gport); 55538 } 55539 #endif 55540 55541 #ifdef BCM_TOMAHAWK3_SUPPORT 55542 int 55543 bcm_tomahawk3_trunk_gport_delete_all( 55544 int unit, 55545 bcm_trunk_t tid) 55546 { 55547 return bcm_esw_trunk_gport_delete_all(unit, tid); 55548 } 55549 #endif 55550 55551 #ifdef BCM_TOMAHAWK3_SUPPORT 55552 int 55553 bcm_tomahawk3_trunk_gport_get_all( 55554 int unit, 55555 bcm_trunk_t tid, 55556 int gport_size, 55557 bcm_gport_t *gport_array, 55558 int *count) 55559 { 55560 return bcm_esw_trunk_gport_get_all(unit, tid, gport_size, gport_array, count); 55561 } 55562 #endif 55563 55564 #ifdef BCM_TOMAHAWK3_SUPPORT 55565 int 55566 bcm_tomahawk3_trunk_init( 55567 int unit) 55568 { 55569 return bcm_esw_trunk_init(unit); 55570 } 55571 #endif 55572 55573 #ifdef BCM_TOMAHAWK3_SUPPORT 55574 int 55575 bcm_tomahawk3_trunk_mcast_join( 55576 int unit, 55577 bcm_trunk_t tid, 55578 bcm_vlan_t vid, 55579 bcm_mac_t mac) 55580 { 55581 return bcm_esw_trunk_mcast_join(unit, tid, vid, mac); 55582 } 55583 #endif 55584 55585 #ifdef BCM_TOMAHAWK3_SUPPORT 55586 int 55587 bcm_tomahawk3_trunk_member_add( 55588 int unit, 55589 bcm_trunk_t tid, 55590 bcm_trunk_member_t *member) 55591 { 55592 return bcm_esw_trunk_member_add(unit, tid, member); 55593 } 55594 #endif 55595 55596 #ifdef BCM_TOMAHAWK3_SUPPORT 55597 int 55598 bcm_tomahawk3_trunk_member_delete( 55599 int unit, 55600 bcm_trunk_t tid, 55601 bcm_trunk_member_t *member) 55602 { 55603 return bcm_esw_trunk_member_delete(unit, tid, member); 55604 } 55605 #endif 55606 55607 #ifdef BCM_TOMAHAWK3_SUPPORT 55608 int 55609 bcm_tomahawk3_trunk_member_delete_all( 55610 int unit, 55611 bcm_trunk_t tid) 55612 { 55613 return bcm_esw_trunk_member_delete_all(unit, tid); 55614 } 55615 #endif 55616 55617 #ifdef BCM_TOMAHAWK3_SUPPORT 55618 int 55619 bcm_tomahawk3_trunk_member_status_get( 55620 int unit, 55621 bcm_gport_t member, 55622 int *status) 55623 { 55624 return bcm_esw_trunk_member_status_get(unit, member, status); 55625 } 55626 #endif 55627 55628 #ifdef BCM_TOMAHAWK3_SUPPORT 55629 int 55630 bcm_tomahawk3_trunk_member_status_set( 55631 int unit, 55632 bcm_gport_t member, 55633 int status) 55634 { 55635 return bcm_esw_trunk_member_status_set(unit, member, status); 55636 } 55637 #endif 55638 55639 #ifdef BCM_TOMAHAWK3_SUPPORT 55640 int 55641 bcm_tomahawk3_trunk_override_ipmc_get( 55642 int unit, 55643 bcm_port_t port, 55644 bcm_trunk_t tid, 55645 int idx, 55646 int *enable) 55647 { 55648 return bcm_esw_trunk_override_ipmc_get(unit, port, tid, idx, enable); 55649 } 55650 #endif 55651 55652 #ifdef BCM_TOMAHAWK3_SUPPORT 55653 int 55654 bcm_tomahawk3_trunk_override_ipmc_set( 55655 int unit, 55656 bcm_port_t port, 55657 bcm_trunk_t tid, 55658 int idx, 55659 int enable) 55660 { 55661 return bcm_esw_trunk_override_ipmc_set(unit, port, tid, idx, enable); 55662 } 55663 #endif 55664 55665 #ifdef BCM_TOMAHAWK3_SUPPORT 55666 int 55667 bcm_tomahawk3_trunk_override_mcast_get( 55668 int unit, 55669 bcm_port_t port, 55670 bcm_trunk_t tid, 55671 int idx, 55672 int *enable) 55673 { 55674 return bcm_esw_trunk_override_mcast_get(unit, port, tid, idx, enable); 55675 } 55676 #endif 55677 55678 #ifdef BCM_TOMAHAWK3_SUPPORT 55679 int 55680 bcm_tomahawk3_trunk_override_mcast_set( 55681 int unit, 55682 bcm_port_t port, 55683 bcm_trunk_t tid, 55684 int idx, 55685 int enable) 55686 { 55687 return bcm_esw_trunk_override_mcast_set(unit, port, tid, idx, enable); 55688 } 55689 #endif 55690 55691 #ifdef BCM_TOMAHAWK3_SUPPORT 55692 int 55693 bcm_tomahawk3_trunk_override_ucast_get( 55694 int unit, 55695 bcm_port_t port, 55696 bcm_trunk_t tid, 55697 int modid, 55698 int *enable) 55699 { 55700 return bcm_esw_trunk_override_ucast_get(unit, port, tid, modid, enable); 55701 } 55702 #endif 55703 55704 #ifdef BCM_TOMAHAWK3_SUPPORT 55705 int 55706 bcm_tomahawk3_trunk_override_ucast_set( 55707 int unit, 55708 bcm_port_t port, 55709 bcm_trunk_t tid, 55710 int modid, 55711 int enable) 55712 { 55713 return bcm_esw_trunk_override_ucast_set(unit, port, tid, modid, enable); 55714 } 55715 #endif 55716 55717 #ifdef BCM_TOMAHAWK3_SUPPORT 55718 int 55719 bcm_tomahawk3_trunk_override_vlan_get( 55720 int unit, 55721 bcm_port_t port, 55722 bcm_trunk_t tid, 55723 bcm_vlan_t vid, 55724 int *enable) 55725 { 55726 return bcm_esw_trunk_override_vlan_get(unit, port, tid, vid, enable); 55727 } 55728 #endif 55729 55730 #ifdef BCM_TOMAHAWK3_SUPPORT 55731 int 55732 bcm_tomahawk3_trunk_override_vlan_set( 55733 int unit, 55734 bcm_port_t port, 55735 bcm_trunk_t tid, 55736 bcm_vlan_t vid, 55737 int enable) 55738 { 55739 return bcm_esw_trunk_override_vlan_set(unit, port, tid, vid, enable); 55740 } 55741 #endif 55742 55743 #ifdef BCM_TOMAHAWK3_SUPPORT 55744 int 55745 bcm_tomahawk3_trunk_pool_get( 55746 int unit, 55747 bcm_port_t port, 55748 bcm_trunk_t tid, 55749 int *size, 55750 int weights[BCM_TRUNK_MAX_PORTCNT]) 55751 { 55752 return bcm_esw_trunk_pool_get(unit, port, tid, size, weights); 55753 } 55754 #endif 55755 55756 #ifdef BCM_TOMAHAWK3_SUPPORT 55757 int 55758 bcm_tomahawk3_trunk_pool_set( 55759 int unit, 55760 bcm_port_t port, 55761 bcm_trunk_t tid, 55762 int size, 55763 const int weights[BCM_TRUNK_MAX_PORTCNT]) 55764 { 55765 return bcm_esw_trunk_pool_set(unit, port, tid, size, weights); 55766 } 55767 #endif 55768 55769 #ifdef BCM_TOMAHAWK3_SUPPORT 55770 int 55771 bcm_tomahawk3_trunk_pp_port_allocation_get( 55772 int unit, 55773 bcm_trunk_t trunk_id, 55774 uint32 flags, 55775 bcm_trunk_pp_port_allocation_info_t *allocation_info) 55776 { 55777 return bcm_esw_trunk_pp_port_allocation_get(unit, trunk_id, flags, allocation_info); 55778 } 55779 #endif 55780 55781 #ifdef BCM_TOMAHAWK3_SUPPORT 55782 int 55783 bcm_tomahawk3_trunk_pp_port_allocation_set( 55784 int unit, 55785 bcm_trunk_t trunk_id, 55786 uint32 flags, 55787 bcm_trunk_pp_port_allocation_info_t *allocation_info) 55788 { 55789 return bcm_esw_trunk_pp_port_allocation_set(unit, trunk_id, flags, allocation_info); 55790 } 55791 #endif 55792 55793 #ifdef BCM_TOMAHAWK3_SUPPORT 55794 int 55795 bcm_tomahawk3_trunk_psc_get( 55796 int unit, 55797 bcm_trunk_t tid, 55798 int *psc) 55799 { 55800 return bcm_esw_trunk_psc_get(unit, tid, psc); 55801 } 55802 #endif 55803 55804 #ifdef BCM_TOMAHAWK3_SUPPORT 55805 int 55806 bcm_tomahawk3_trunk_psc_set( 55807 int unit, 55808 bcm_trunk_t tid, 55809 int psc) 55810 { 55811 return bcm_esw_trunk_psc_set(unit, tid, psc); 55812 } 55813 #endif 55814 55815 #ifdef BCM_TOMAHAWK3_SUPPORT 55816 int 55817 bcm_tomahawk3_trunk_resilient_replace( 55818 int unit, 55819 uint32 flags, 55820 bcm_trunk_resilient_entry_t *match_entry, 55821 int *num_entries, 55822 bcm_trunk_resilient_entry_t *replace_entry) 55823 { 55824 return bcm_esw_trunk_resilient_replace(unit, flags, match_entry, num_entries, replace_entry); 55825 } 55826 #endif 55827 55828 #ifdef BCM_TOMAHAWK3_SUPPORT 55829 int 55830 bcm_tomahawk3_trunk_resilient_traverse( 55831 int unit, 55832 uint32 flags, 55833 bcm_trunk_resilient_entry_t *match_entry, 55834 bcm_trunk_resilient_traverse_cb trav_fn, 55835 void *user_data) 55836 { 55837 return bcm_esw_trunk_resilient_traverse(unit, flags, match_entry, trav_fn, user_data); 55838 } 55839 #endif 55840 55841 #ifdef BCM_TOMAHAWK3_SUPPORT 55842 int 55843 bcm_tomahawk3_trunk_set( 55844 int unit, 55845 bcm_trunk_t tid, 55846 bcm_trunk_info_t *trunk_info, 55847 int member_count, 55848 bcm_trunk_member_t *member_array) 55849 { 55850 return bcm_esw_trunk_set(unit, tid, trunk_info, member_count, member_array); 55851 } 55852 #endif 55853 55854 int 55855 bcm_tomahawk3_trunk_spa_to_system_phys_port_map_get( 55856 int unit, 55857 uint32 flags, 55858 uint32 system_port_aggregate, 55859 bcm_gport_t *gport) 55860 { 55861 return BCM_E_UNAVAIL; 55862 } 55863 55864 #ifdef BCM_TOMAHAWK3_SUPPORT 55865 int 55866 bcm_tomahawk3_trunk_vplag_get( 55867 int unit, 55868 bcm_trunk_t tid, 55869 bcm_gport_t *vplag_port_id) 55870 { 55871 return bcm_esw_trunk_vplag_get(unit, tid, vplag_port_id); 55872 } 55873 #endif 55874 55875 #ifdef BCM_TOMAHAWK3_SUPPORT 55876 int 55877 bcm_tomahawk3_trunk_with_vplag_create( 55878 int unit, 55879 uint32 flags, 55880 bcm_trunk_t *tid, 55881 bcm_gport_t *vplag_port_id) 55882 { 55883 return bcm_esw_trunk_with_vplag_create(unit, flags, tid, vplag_port_id); 55884 } 55885 #endif 55886 55887 #ifdef BCM_TOMAHAWK3_SUPPORT 55888 int 55889 bcm_tomahawk3_tsn_control_get( 55890 int unit, 55891 bcm_tsn_control_t type, 55892 uint32 *arg) 55893 { 55894 return bcm_esw_tsn_control_get(unit, type, arg); 55895 } 55896 #endif 55897 55898 #ifdef BCM_TOMAHAWK3_SUPPORT 55899 int 55900 bcm_tomahawk3_tsn_control_set( 55901 int unit, 55902 bcm_tsn_control_t type, 55903 uint32 arg) 55904 { 55905 return bcm_esw_tsn_control_set(unit, type, arg); 55906 } 55907 #endif 55908 55909 #ifdef BCM_TOMAHAWK3_SUPPORT 55910 int 55911 bcm_tomahawk3_tsn_detach( 55912 int unit) 55913 { 55914 return bcm_esw_tsn_detach(unit); 55915 } 55916 #endif 55917 55918 #ifdef BCM_TOMAHAWK3_SUPPORT 55919 int 55920 bcm_tomahawk3_tsn_event_notification_traverse( 55921 int unit, 55922 bcm_tsn_event_notification_traverse_cb cb, 55923 void *user_data) 55924 { 55925 return bcm_esw_tsn_event_notification_traverse(unit, cb, user_data); 55926 } 55927 #endif 55928 55929 #ifdef BCM_TOMAHAWK3_SUPPORT 55930 int 55931 bcm_tomahawk3_tsn_event_register( 55932 int unit, 55933 bcm_tsn_event_type_t event, 55934 bcm_tsn_event_source_t *src, 55935 bcm_tsn_event_cb cb, 55936 void *user_data) 55937 { 55938 return bcm_esw_tsn_event_register(unit, event, src, cb, user_data); 55939 } 55940 #endif 55941 55942 #ifdef BCM_TOMAHAWK3_SUPPORT 55943 int 55944 bcm_tomahawk3_tsn_event_unregister( 55945 int unit, 55946 bcm_tsn_event_type_t event, 55947 bcm_tsn_event_source_t *src, 55948 bcm_tsn_event_cb cb) 55949 { 55950 return bcm_esw_tsn_event_unregister(unit, event, src, cb); 55951 } 55952 #endif 55953 55954 #ifdef BCM_TOMAHAWK3_SUPPORT 55955 int 55956 bcm_tomahawk3_tsn_flow_config_get( 55957 int unit, 55958 bcm_tsn_flow_t flow_id, 55959 bcm_tsn_flow_config_t *config) 55960 { 55961 return bcm_esw_tsn_flow_config_get(unit, flow_id, config); 55962 } 55963 #endif 55964 55965 #ifdef BCM_TOMAHAWK3_SUPPORT 55966 int 55967 bcm_tomahawk3_tsn_flow_config_set( 55968 int unit, 55969 bcm_tsn_flow_t flow_id, 55970 bcm_tsn_flow_config_t *config) 55971 { 55972 return bcm_esw_tsn_flow_config_set(unit, flow_id, config); 55973 } 55974 #endif 55975 55976 #ifdef BCM_TOMAHAWK3_SUPPORT 55977 int 55978 bcm_tomahawk3_tsn_flowset_config_get( 55979 int unit, 55980 bcm_tsn_flowset_t flowset, 55981 bcm_tsn_pri_map_t *pri_map, 55982 bcm_tsn_flow_config_t *default_config) 55983 { 55984 return bcm_esw_tsn_flowset_config_get(unit, flowset, pri_map, default_config); 55985 } 55986 #endif 55987 55988 #ifdef BCM_TOMAHAWK3_SUPPORT 55989 int 55990 bcm_tomahawk3_tsn_flowset_create( 55991 int unit, 55992 bcm_tsn_pri_map_t pri_map, 55993 bcm_tsn_flow_config_t *default_config, 55994 bcm_tsn_flowset_t *flowset) 55995 { 55996 return bcm_esw_tsn_flowset_create(unit, pri_map, default_config, flowset); 55997 } 55998 #endif 55999 56000 #ifdef BCM_TOMAHAWK3_SUPPORT 56001 int 56002 bcm_tomahawk3_tsn_flowset_destroy( 56003 int unit, 56004 bcm_tsn_flowset_t flowset) 56005 { 56006 return bcm_esw_tsn_flowset_destroy(unit, flowset); 56007 } 56008 #endif 56009 56010 #ifdef BCM_TOMAHAWK3_SUPPORT 56011 int 56012 bcm_tomahawk3_tsn_flowset_flow_get( 56013 int unit, 56014 bcm_tsn_flowset_t flowset, 56015 int index, 56016 bcm_tsn_flow_t *flow_id) 56017 { 56018 return bcm_esw_tsn_flowset_flow_get(unit, flowset, index, flow_id); 56019 } 56020 #endif 56021 56022 #ifdef BCM_TOMAHAWK3_SUPPORT 56023 int 56024 bcm_tomahawk3_tsn_flowset_status_get( 56025 int unit, 56026 bcm_tsn_flowset_t flowset, 56027 bcm_tsn_flowset_status_t *status) 56028 { 56029 return bcm_esw_tsn_flowset_status_get(unit, flowset, status); 56030 } 56031 #endif 56032 56033 #ifdef BCM_TOMAHAWK3_SUPPORT 56034 int 56035 bcm_tomahawk3_tsn_flowset_traverse( 56036 int unit, 56037 bcm_tsn_flowset_traverse_cb cb, 56038 void *user_data) 56039 { 56040 return bcm_esw_tsn_flowset_traverse(unit, cb, user_data); 56041 } 56042 #endif 56043 56044 #ifdef BCM_TOMAHAWK3_SUPPORT 56045 int 56046 bcm_tomahawk3_tsn_ingress_mtu_config_get( 56047 int unit, 56048 bcm_tsn_ingress_mtu_config_t *config) 56049 { 56050 return bcm_esw_tsn_ingress_mtu_config_get(unit, config); 56051 } 56052 #endif 56053 56054 #ifdef BCM_TOMAHAWK3_SUPPORT 56055 int 56056 bcm_tomahawk3_tsn_ingress_mtu_config_set( 56057 int unit, 56058 bcm_tsn_ingress_mtu_config_t *config) 56059 { 56060 return bcm_esw_tsn_ingress_mtu_config_set(unit, config); 56061 } 56062 #endif 56063 56064 #ifdef BCM_TOMAHAWK3_SUPPORT 56065 int 56066 bcm_tomahawk3_tsn_ingress_stu_config_get( 56067 int unit, 56068 bcm_tsn_ingress_stu_config_t *config) 56069 { 56070 return bcm_esw_tsn_ingress_stu_config_get(unit, config); 56071 } 56072 #endif 56073 56074 #ifdef BCM_TOMAHAWK3_SUPPORT 56075 int 56076 bcm_tomahawk3_tsn_ingress_stu_config_set( 56077 int unit, 56078 bcm_tsn_ingress_stu_config_t *config) 56079 { 56080 return bcm_esw_tsn_ingress_stu_config_set(unit, config); 56081 } 56082 #endif 56083 56084 #ifdef BCM_TOMAHAWK3_SUPPORT 56085 int 56086 bcm_tomahawk3_tsn_init( 56087 int unit) 56088 { 56089 return bcm_esw_tsn_init(unit); 56090 } 56091 #endif 56092 56093 #ifdef BCM_TOMAHAWK3_SUPPORT 56094 int 56095 bcm_tomahawk3_tsn_mtu_profile_create( 56096 int unit, 56097 bcm_tsn_mtu_profile_type_t type, 56098 bcm_tsn_mtu_config_t *config, 56099 int *mtu_profile_id) 56100 { 56101 return bcm_esw_tsn_mtu_profile_create(unit, type, config, mtu_profile_id); 56102 } 56103 #endif 56104 56105 #ifdef BCM_TOMAHAWK3_SUPPORT 56106 int 56107 bcm_tomahawk3_tsn_mtu_profile_destroy( 56108 int unit, 56109 int mtu_profile_id) 56110 { 56111 return bcm_esw_tsn_mtu_profile_destroy(unit, mtu_profile_id); 56112 } 56113 #endif 56114 56115 #ifdef BCM_TOMAHAWK3_SUPPORT 56116 int 56117 bcm_tomahawk3_tsn_mtu_profile_get( 56118 int unit, 56119 int mtu_profile_id, 56120 bcm_tsn_mtu_profile_type_t *type, 56121 bcm_tsn_mtu_config_t *config) 56122 { 56123 return bcm_esw_tsn_mtu_profile_get(unit, mtu_profile_id, type, config); 56124 } 56125 #endif 56126 56127 #ifdef BCM_TOMAHAWK3_SUPPORT 56128 int 56129 bcm_tomahawk3_tsn_mtu_profile_set( 56130 int unit, 56131 int mtu_profile_id, 56132 bcm_tsn_mtu_config_t *config) 56133 { 56134 return bcm_esw_tsn_mtu_profile_set(unit, mtu_profile_id, config); 56135 } 56136 #endif 56137 56138 #ifdef BCM_TOMAHAWK3_SUPPORT 56139 int 56140 bcm_tomahawk3_tsn_mtu_profile_traverse( 56141 int unit, 56142 bcm_tsn_mtu_profile_traverse_cb cb, 56143 void *user_data) 56144 { 56145 return bcm_esw_tsn_mtu_profile_traverse(unit, cb, user_data); 56146 } 56147 #endif 56148 56149 #ifdef BCM_TOMAHAWK3_SUPPORT 56150 int 56151 bcm_tomahawk3_tsn_port_control_get( 56152 int unit, 56153 bcm_gport_t port, 56154 bcm_tsn_control_t type, 56155 uint32 *arg) 56156 { 56157 return bcm_esw_tsn_port_control_get(unit, port, type, arg); 56158 } 56159 #endif 56160 56161 #ifdef BCM_TOMAHAWK3_SUPPORT 56162 int 56163 bcm_tomahawk3_tsn_port_control_set( 56164 int unit, 56165 bcm_gport_t port, 56166 bcm_tsn_control_t type, 56167 uint32 arg) 56168 { 56169 return bcm_esw_tsn_port_control_set(unit, port, type, arg); 56170 } 56171 #endif 56172 56173 #ifdef BCM_TOMAHAWK3_SUPPORT 56174 int 56175 bcm_tomahawk3_tsn_port_stat_get( 56176 int unit, 56177 bcm_gport_t port, 56178 bcm_tsn_stat_t stat, 56179 uint64 *val) 56180 { 56181 return bcm_esw_tsn_port_stat_get(unit, port, stat, val); 56182 } 56183 #endif 56184 56185 #ifdef BCM_TOMAHAWK3_SUPPORT 56186 int 56187 bcm_tomahawk3_tsn_port_stat_get32( 56188 int unit, 56189 bcm_gport_t port, 56190 bcm_tsn_stat_t stat, 56191 uint32 *val) 56192 { 56193 return bcm_esw_tsn_port_stat_get32(unit, port, stat, val); 56194 } 56195 #endif 56196 56197 #ifdef BCM_TOMAHAWK3_SUPPORT 56198 int 56199 bcm_tomahawk3_tsn_port_stat_multi_get( 56200 int unit, 56201 bcm_gport_t port, 56202 int nstat, 56203 bcm_tsn_stat_t *stat_arr, 56204 uint64 *value_arr) 56205 { 56206 return bcm_esw_tsn_port_stat_multi_get(unit, port, nstat, stat_arr, value_arr); 56207 } 56208 #endif 56209 56210 #ifdef BCM_TOMAHAWK3_SUPPORT 56211 int 56212 bcm_tomahawk3_tsn_port_stat_multi_get32( 56213 int unit, 56214 bcm_gport_t port, 56215 int nstat, 56216 bcm_tsn_stat_t *stat_arr, 56217 uint32 *value_arr) 56218 { 56219 return bcm_esw_tsn_port_stat_multi_get32(unit, port, nstat, stat_arr, value_arr); 56220 } 56221 #endif 56222 56223 #ifdef BCM_TOMAHAWK3_SUPPORT 56224 int 56225 bcm_tomahawk3_tsn_port_stat_multi_set( 56226 int unit, 56227 bcm_gport_t port, 56228 int nstat, 56229 bcm_tsn_stat_t *stat_arr, 56230 uint64 *value_arr) 56231 { 56232 return bcm_esw_tsn_port_stat_multi_set(unit, port, nstat, stat_arr, value_arr); 56233 } 56234 #endif 56235 56236 #ifdef BCM_TOMAHAWK3_SUPPORT 56237 int 56238 bcm_tomahawk3_tsn_port_stat_multi_set32( 56239 int unit, 56240 bcm_gport_t port, 56241 int nstat, 56242 bcm_tsn_stat_t *stat_arr, 56243 uint32 *value_arr) 56244 { 56245 return bcm_esw_tsn_port_stat_multi_set32(unit, port, nstat, stat_arr, value_arr); 56246 } 56247 #endif 56248 56249 #ifdef BCM_TOMAHAWK3_SUPPORT 56250 int 56251 bcm_tomahawk3_tsn_port_stat_set( 56252 int unit, 56253 bcm_gport_t port, 56254 bcm_tsn_stat_t stat, 56255 uint64 val) 56256 { 56257 return bcm_esw_tsn_port_stat_set(unit, port, stat, val); 56258 } 56259 #endif 56260 56261 #ifdef BCM_TOMAHAWK3_SUPPORT 56262 int 56263 bcm_tomahawk3_tsn_port_stat_set32( 56264 int unit, 56265 bcm_gport_t port, 56266 bcm_tsn_stat_t stat, 56267 uint32 val) 56268 { 56269 return bcm_esw_tsn_port_stat_set32(unit, port, stat, val); 56270 } 56271 #endif 56272 56273 #ifdef BCM_TOMAHAWK3_SUPPORT 56274 int 56275 bcm_tomahawk3_tsn_port_stat_sync_get( 56276 int unit, 56277 bcm_gport_t port, 56278 bcm_tsn_stat_t stat, 56279 uint64 *val) 56280 { 56281 return bcm_esw_tsn_port_stat_sync_get(unit, port, stat, val); 56282 } 56283 #endif 56284 56285 #ifdef BCM_TOMAHAWK3_SUPPORT 56286 int 56287 bcm_tomahawk3_tsn_port_stat_sync_get32( 56288 int unit, 56289 bcm_gport_t port, 56290 bcm_tsn_stat_t stat, 56291 uint32 *val) 56292 { 56293 return bcm_esw_tsn_port_stat_sync_get32(unit, port, stat, val); 56294 } 56295 #endif 56296 56297 #ifdef BCM_TOMAHAWK3_SUPPORT 56298 int 56299 bcm_tomahawk3_tsn_port_stat_sync_multi_get( 56300 int unit, 56301 bcm_gport_t port, 56302 int nstat, 56303 bcm_tsn_stat_t *stat_arr, 56304 uint64 *value_arr) 56305 { 56306 return bcm_esw_tsn_port_stat_sync_multi_get(unit, port, nstat, stat_arr, value_arr); 56307 } 56308 #endif 56309 56310 #ifdef BCM_TOMAHAWK3_SUPPORT 56311 int 56312 bcm_tomahawk3_tsn_port_stat_sync_multi_get32( 56313 int unit, 56314 bcm_gport_t port, 56315 int nstat, 56316 bcm_tsn_stat_t *stat_arr, 56317 uint32 *value_arr) 56318 { 56319 return bcm_esw_tsn_port_stat_sync_multi_get32(unit, port, nstat, stat_arr, value_arr); 56320 } 56321 #endif 56322 56323 #ifdef BCM_TOMAHAWK3_SUPPORT 56324 int 56325 bcm_tomahawk3_tsn_pri_map_create( 56326 int unit, 56327 bcm_tsn_pri_map_config_t *config, 56328 bcm_tsn_pri_map_t *map_id) 56329 { 56330 return bcm_esw_tsn_pri_map_create(unit, config, map_id); 56331 } 56332 #endif 56333 56334 #ifdef BCM_TOMAHAWK3_SUPPORT 56335 int 56336 bcm_tomahawk3_tsn_pri_map_destroy( 56337 int unit, 56338 bcm_tsn_pri_map_t map_id) 56339 { 56340 return bcm_esw_tsn_pri_map_destroy(unit, map_id); 56341 } 56342 #endif 56343 56344 #ifdef BCM_TOMAHAWK3_SUPPORT 56345 int 56346 bcm_tomahawk3_tsn_pri_map_get( 56347 int unit, 56348 bcm_tsn_pri_map_t map_id, 56349 bcm_tsn_pri_map_config_t *config) 56350 { 56351 return bcm_esw_tsn_pri_map_get(unit, map_id, config); 56352 } 56353 #endif 56354 56355 #ifdef BCM_TOMAHAWK3_SUPPORT 56356 int 56357 bcm_tomahawk3_tsn_pri_map_set( 56358 int unit, 56359 bcm_tsn_pri_map_t map_id, 56360 bcm_tsn_pri_map_config_t *config) 56361 { 56362 return bcm_esw_tsn_pri_map_set(unit, map_id, config); 56363 } 56364 #endif 56365 56366 #ifdef BCM_TOMAHAWK3_SUPPORT 56367 int 56368 bcm_tomahawk3_tsn_pri_map_traverse( 56369 int unit, 56370 bcm_tsn_pri_map_traverse_cb cb, 56371 void *user_data) 56372 { 56373 return bcm_esw_tsn_pri_map_traverse(unit, cb, user_data); 56374 } 56375 #endif 56376 56377 #ifdef BCM_TOMAHAWK3_SUPPORT 56378 int 56379 bcm_tomahawk3_tsn_sr_auto_learn_enable( 56380 int unit, 56381 int enable, 56382 bcm_tsn_sr_auto_learn_config_t *config) 56383 { 56384 return bcm_esw_tsn_sr_auto_learn_enable(unit, enable, config); 56385 } 56386 #endif 56387 56388 #ifdef BCM_TOMAHAWK3_SUPPORT 56389 int 56390 bcm_tomahawk3_tsn_sr_auto_learn_enable_get( 56391 int unit, 56392 int *enabled, 56393 bcm_tsn_sr_auto_learn_config_t *config) 56394 { 56395 return bcm_esw_tsn_sr_auto_learn_enable_get(unit, enabled, config); 56396 } 56397 #endif 56398 56399 #ifdef BCM_TOMAHAWK3_SUPPORT 56400 int 56401 bcm_tomahawk3_tsn_sr_auto_learn_group_create( 56402 int unit, 56403 bcm_tsn_sr_auto_learn_group_config_t *config, 56404 int *group_id) 56405 { 56406 return bcm_esw_tsn_sr_auto_learn_group_create(unit, config, group_id); 56407 } 56408 #endif 56409 56410 #ifdef BCM_TOMAHAWK3_SUPPORT 56411 int 56412 bcm_tomahawk3_tsn_sr_auto_learn_group_destroy( 56413 int unit, 56414 int group_id) 56415 { 56416 return bcm_esw_tsn_sr_auto_learn_group_destroy(unit, group_id); 56417 } 56418 #endif 56419 56420 #ifdef BCM_TOMAHAWK3_SUPPORT 56421 int 56422 bcm_tomahawk3_tsn_sr_auto_learn_group_get( 56423 int unit, 56424 int group_id, 56425 bcm_tsn_sr_auto_learn_group_config_t *config) 56426 { 56427 return bcm_esw_tsn_sr_auto_learn_group_get(unit, group_id, config); 56428 } 56429 #endif 56430 56431 #ifdef BCM_TOMAHAWK3_SUPPORT 56432 int 56433 bcm_tomahawk3_tsn_sr_auto_learn_group_set( 56434 int unit, 56435 int group_id, 56436 bcm_tsn_sr_auto_learn_group_config_t *config) 56437 { 56438 return bcm_esw_tsn_sr_auto_learn_group_set(unit, group_id, config); 56439 } 56440 #endif 56441 56442 #ifdef BCM_TOMAHAWK3_SUPPORT 56443 int 56444 bcm_tomahawk3_tsn_sr_auto_learn_group_traverse( 56445 int unit, 56446 bcm_tsn_sr_auto_learn_group_traverse_cb cb, 56447 void *user_data) 56448 { 56449 return bcm_esw_tsn_sr_auto_learn_group_traverse(unit, cb, user_data); 56450 } 56451 #endif 56452 56453 #ifdef BCM_TOMAHAWK3_SUPPORT 56454 int 56455 bcm_tomahawk3_tsn_sr_flow_stat_get( 56456 int unit, 56457 bcm_tsn_sr_flow_t flow, 56458 bcm_tsn_stat_t stat, 56459 uint64 *val) 56460 { 56461 return bcm_esw_tsn_sr_flow_stat_get(unit, flow, stat, val); 56462 } 56463 #endif 56464 56465 #ifdef BCM_TOMAHAWK3_SUPPORT 56466 int 56467 bcm_tomahawk3_tsn_sr_flow_stat_get32( 56468 int unit, 56469 bcm_tsn_sr_flow_t flow, 56470 bcm_tsn_stat_t stat, 56471 uint32 *val) 56472 { 56473 return bcm_esw_tsn_sr_flow_stat_get32(unit, flow, stat, val); 56474 } 56475 #endif 56476 56477 #ifdef BCM_TOMAHAWK3_SUPPORT 56478 int 56479 bcm_tomahawk3_tsn_sr_flow_stat_group_get( 56480 int unit, 56481 bcm_tsn_sr_flow_t flow, 56482 bcm_tsn_stat_group_type_t group_type, 56483 bcm_tsn_stat_group_t *stat_group) 56484 { 56485 return bcm_esw_tsn_sr_flow_stat_group_get(unit, flow, group_type, stat_group); 56486 } 56487 #endif 56488 56489 #ifdef BCM_TOMAHAWK3_SUPPORT 56490 int 56491 bcm_tomahawk3_tsn_sr_flow_stat_group_set( 56492 int unit, 56493 bcm_tsn_sr_flow_t flow, 56494 bcm_tsn_stat_group_type_t group_type, 56495 bcm_tsn_stat_group_t stat_group) 56496 { 56497 return bcm_esw_tsn_sr_flow_stat_group_set(unit, flow, group_type, stat_group); 56498 } 56499 #endif 56500 56501 #ifdef BCM_TOMAHAWK3_SUPPORT 56502 int 56503 bcm_tomahawk3_tsn_sr_flow_stat_multi_get( 56504 int unit, 56505 bcm_tsn_sr_flow_t flow, 56506 int nstat, 56507 bcm_tsn_stat_t *stat_arr, 56508 uint64 *value_arr) 56509 { 56510 return bcm_esw_tsn_sr_flow_stat_multi_get(unit, flow, nstat, stat_arr, value_arr); 56511 } 56512 #endif 56513 56514 #ifdef BCM_TOMAHAWK3_SUPPORT 56515 int 56516 bcm_tomahawk3_tsn_sr_flow_stat_multi_get32( 56517 int unit, 56518 bcm_tsn_sr_flow_t flow, 56519 int nstat, 56520 bcm_tsn_stat_t *stat_arr, 56521 uint32 *value_arr) 56522 { 56523 return bcm_esw_tsn_sr_flow_stat_multi_get32(unit, flow, nstat, stat_arr, value_arr); 56524 } 56525 #endif 56526 56527 #ifdef BCM_TOMAHAWK3_SUPPORT 56528 int 56529 bcm_tomahawk3_tsn_sr_flow_stat_multi_set( 56530 int unit, 56531 bcm_tsn_sr_flow_t flow, 56532 int nstat, 56533 bcm_tsn_stat_t *stat_arr, 56534 uint64 *value_arr) 56535 { 56536 return bcm_esw_tsn_sr_flow_stat_multi_set(unit, flow, nstat, stat_arr, value_arr); 56537 } 56538 #endif 56539 56540 #ifdef BCM_TOMAHAWK3_SUPPORT 56541 int 56542 bcm_tomahawk3_tsn_sr_flow_stat_multi_set32( 56543 int unit, 56544 bcm_tsn_sr_flow_t flow, 56545 int nstat, 56546 bcm_tsn_stat_t *stat_arr, 56547 uint32 *value_arr) 56548 { 56549 return bcm_esw_tsn_sr_flow_stat_multi_set32(unit, flow, nstat, stat_arr, value_arr); 56550 } 56551 #endif 56552 56553 #ifdef BCM_TOMAHAWK3_SUPPORT 56554 int 56555 bcm_tomahawk3_tsn_sr_flow_stat_set( 56556 int unit, 56557 bcm_tsn_sr_flow_t flow, 56558 bcm_tsn_stat_t stat, 56559 uint64 val) 56560 { 56561 return bcm_esw_tsn_sr_flow_stat_set(unit, flow, stat, val); 56562 } 56563 #endif 56564 56565 #ifdef BCM_TOMAHAWK3_SUPPORT 56566 int 56567 bcm_tomahawk3_tsn_sr_flow_stat_set32( 56568 int unit, 56569 bcm_tsn_sr_flow_t flow, 56570 bcm_tsn_stat_t stat, 56571 uint32 val) 56572 { 56573 return bcm_esw_tsn_sr_flow_stat_set32(unit, flow, stat, val); 56574 } 56575 #endif 56576 56577 #ifdef BCM_TOMAHAWK3_SUPPORT 56578 int 56579 bcm_tomahawk3_tsn_sr_flow_stat_sync_get( 56580 int unit, 56581 bcm_tsn_sr_flow_t flow, 56582 bcm_tsn_stat_t stat, 56583 uint64 *val) 56584 { 56585 return bcm_esw_tsn_sr_flow_stat_sync_get(unit, flow, stat, val); 56586 } 56587 #endif 56588 56589 #ifdef BCM_TOMAHAWK3_SUPPORT 56590 int 56591 bcm_tomahawk3_tsn_sr_flow_stat_sync_get32( 56592 int unit, 56593 bcm_tsn_sr_flow_t flow, 56594 bcm_tsn_stat_t stat, 56595 uint32 *val) 56596 { 56597 return bcm_esw_tsn_sr_flow_stat_sync_get32(unit, flow, stat, val); 56598 } 56599 #endif 56600 56601 #ifdef BCM_TOMAHAWK3_SUPPORT 56602 int 56603 bcm_tomahawk3_tsn_sr_flow_stat_sync_multi_get( 56604 int unit, 56605 bcm_tsn_sr_flow_t flow, 56606 int nstat, 56607 bcm_tsn_stat_t *stat_arr, 56608 uint64 *value_arr) 56609 { 56610 return bcm_esw_tsn_sr_flow_stat_sync_multi_get(unit, flow, nstat, stat_arr, value_arr); 56611 } 56612 #endif 56613 56614 #ifdef BCM_TOMAHAWK3_SUPPORT 56615 int 56616 bcm_tomahawk3_tsn_sr_flow_stat_sync_multi_get32( 56617 int unit, 56618 bcm_tsn_sr_flow_t flow, 56619 int nstat, 56620 bcm_tsn_stat_t *stat_arr, 56621 uint32 *value_arr) 56622 { 56623 return bcm_esw_tsn_sr_flow_stat_sync_multi_get32(unit, flow, nstat, stat_arr, value_arr); 56624 } 56625 #endif 56626 56627 #ifdef BCM_TOMAHAWK3_SUPPORT 56628 int 56629 bcm_tomahawk3_tsn_sr_flowset_destroy( 56630 int unit, 56631 bcm_tsn_sr_flowset_t flowset) 56632 { 56633 return bcm_esw_tsn_sr_flowset_destroy(unit, flowset); 56634 } 56635 #endif 56636 56637 #ifdef BCM_TOMAHAWK3_SUPPORT 56638 int 56639 bcm_tomahawk3_tsn_sr_flowset_flow_get( 56640 int unit, 56641 bcm_tsn_sr_flowset_t flowset, 56642 int index, 56643 bcm_tsn_sr_flow_t *flow_id) 56644 { 56645 return bcm_esw_tsn_sr_flowset_flow_get(unit, flowset, index, flow_id); 56646 } 56647 #endif 56648 56649 #ifdef BCM_TOMAHAWK3_SUPPORT 56650 int 56651 bcm_tomahawk3_tsn_sr_flowset_status_get( 56652 int unit, 56653 bcm_tsn_sr_flowset_t flowset, 56654 bcm_tsn_sr_flowset_status_t *status) 56655 { 56656 return bcm_esw_tsn_sr_flowset_status_get(unit, flowset, status); 56657 } 56658 #endif 56659 56660 #ifdef BCM_TOMAHAWK3_SUPPORT 56661 int 56662 bcm_tomahawk3_tsn_sr_flowset_traverse( 56663 int unit, 56664 int is_rx, 56665 bcm_tsn_sr_flowset_traverse_cb cb, 56666 void *user_data) 56667 { 56668 return bcm_esw_tsn_sr_flowset_traverse(unit, is_rx, cb, user_data); 56669 } 56670 #endif 56671 56672 #ifdef BCM_TOMAHAWK3_SUPPORT 56673 int 56674 bcm_tomahawk3_tsn_sr_port_config_get( 56675 int unit, 56676 bcm_gport_t port, 56677 bcm_tsn_sr_port_config_t *config) 56678 { 56679 return bcm_esw_tsn_sr_port_config_get(unit, port, config); 56680 } 56681 #endif 56682 56683 #ifdef BCM_TOMAHAWK3_SUPPORT 56684 int 56685 bcm_tomahawk3_tsn_sr_port_config_set( 56686 int unit, 56687 bcm_gport_t port, 56688 bcm_tsn_sr_port_config_t *config) 56689 { 56690 return bcm_esw_tsn_sr_port_config_set(unit, port, config); 56691 } 56692 #endif 56693 56694 #ifdef BCM_TOMAHAWK3_SUPPORT 56695 int 56696 bcm_tomahawk3_tsn_sr_rx_flow_config_get( 56697 int unit, 56698 bcm_tsn_sr_flow_t flow_id, 56699 bcm_tsn_sr_rx_flow_config_t *config) 56700 { 56701 return bcm_esw_tsn_sr_rx_flow_config_get(unit, flow_id, config); 56702 } 56703 #endif 56704 56705 #ifdef BCM_TOMAHAWK3_SUPPORT 56706 int 56707 bcm_tomahawk3_tsn_sr_rx_flow_config_set( 56708 int unit, 56709 bcm_tsn_sr_flow_t flow_id, 56710 bcm_tsn_sr_rx_flow_config_t *config) 56711 { 56712 return bcm_esw_tsn_sr_rx_flow_config_set(unit, flow_id, config); 56713 } 56714 #endif 56715 56716 #ifdef BCM_TOMAHAWK3_SUPPORT 56717 int 56718 bcm_tomahawk3_tsn_sr_rx_flow_reset( 56719 int unit, 56720 uint32 flags, 56721 bcm_tsn_sr_flow_t flow_id) 56722 { 56723 return bcm_esw_tsn_sr_rx_flow_reset(unit, flags, flow_id); 56724 } 56725 #endif 56726 56727 #ifdef BCM_TOMAHAWK3_SUPPORT 56728 int 56729 bcm_tomahawk3_tsn_sr_rx_flow_seqnum_history_get( 56730 int unit, 56731 bcm_tsn_sr_flow_t flow_id, 56732 int offset_in_bits, 56733 int max_size_in_bits, 56734 uint8 *history_bits, 56735 int *actual_size_in_bits) 56736 { 56737 return bcm_esw_tsn_sr_rx_flow_seqnum_history_get(unit, flow_id, offset_in_bits, max_size_in_bits, history_bits, actual_size_in_bits); 56738 } 56739 #endif 56740 56741 #ifdef BCM_TOMAHAWK3_SUPPORT 56742 int 56743 bcm_tomahawk3_tsn_sr_rx_flow_seqnum_history_set( 56744 int unit, 56745 bcm_tsn_sr_flow_t flow_id, 56746 int offset_in_bits, 56747 int size_in_bits, 56748 uint8 *history_bits) 56749 { 56750 return bcm_esw_tsn_sr_rx_flow_seqnum_history_set(unit, flow_id, offset_in_bits, size_in_bits, history_bits); 56751 } 56752 #endif 56753 56754 #ifdef BCM_TOMAHAWK3_SUPPORT 56755 int 56756 bcm_tomahawk3_tsn_sr_rx_flow_status_get( 56757 int unit, 56758 bcm_tsn_sr_flow_t flow_id, 56759 bcm_tsn_sr_rx_flow_status_t *status) 56760 { 56761 return bcm_esw_tsn_sr_rx_flow_status_get(unit, flow_id, status); 56762 } 56763 #endif 56764 56765 #ifdef BCM_TOMAHAWK3_SUPPORT 56766 int 56767 bcm_tomahawk3_tsn_sr_rx_flowset_config_get( 56768 int unit, 56769 bcm_tsn_sr_flowset_t flowset, 56770 bcm_tsn_pri_map_t *pri_map, 56771 bcm_tsn_sr_rx_flow_config_t *default_config) 56772 { 56773 return bcm_esw_tsn_sr_rx_flowset_config_get(unit, flowset, pri_map, default_config); 56774 } 56775 #endif 56776 56777 #ifdef BCM_TOMAHAWK3_SUPPORT 56778 int 56779 bcm_tomahawk3_tsn_sr_rx_flowset_create( 56780 int unit, 56781 bcm_tsn_pri_map_t pri_map, 56782 bcm_tsn_sr_rx_flow_config_t *default_config, 56783 bcm_tsn_sr_flowset_t *flowset) 56784 { 56785 return bcm_esw_tsn_sr_rx_flowset_create(unit, pri_map, default_config, flowset); 56786 } 56787 #endif 56788 56789 #ifdef BCM_TOMAHAWK3_SUPPORT 56790 int 56791 bcm_tomahawk3_tsn_sr_tx_flow_config_get( 56792 int unit, 56793 bcm_tsn_sr_flow_t flow_id, 56794 bcm_tsn_sr_tx_flow_config_t *config) 56795 { 56796 return bcm_esw_tsn_sr_tx_flow_config_get(unit, flow_id, config); 56797 } 56798 #endif 56799 56800 #ifdef BCM_TOMAHAWK3_SUPPORT 56801 int 56802 bcm_tomahawk3_tsn_sr_tx_flow_config_set( 56803 int unit, 56804 bcm_tsn_sr_flow_t flow_id, 56805 bcm_tsn_sr_tx_flow_config_t *config) 56806 { 56807 return bcm_esw_tsn_sr_tx_flow_config_set(unit, flow_id, config); 56808 } 56809 #endif 56810 56811 #ifdef BCM_TOMAHAWK3_SUPPORT 56812 int 56813 bcm_tomahawk3_tsn_sr_tx_flow_status_get( 56814 int unit, 56815 bcm_tsn_sr_flow_t flow_id, 56816 bcm_tsn_sr_tx_flow_status_t *status) 56817 { 56818 return bcm_esw_tsn_sr_tx_flow_status_get(unit, flow_id, status); 56819 } 56820 #endif 56821 56822 #ifdef BCM_TOMAHAWK3_SUPPORT 56823 int 56824 bcm_tomahawk3_tsn_sr_tx_flowset_config_get( 56825 int unit, 56826 bcm_tsn_sr_flowset_t flowset, 56827 bcm_tsn_pri_map_t *pri_map, 56828 bcm_tsn_sr_tx_flow_config_t *default_config) 56829 { 56830 return bcm_esw_tsn_sr_tx_flowset_config_get(unit, flowset, pri_map, default_config); 56831 } 56832 #endif 56833 56834 #ifdef BCM_TOMAHAWK3_SUPPORT 56835 int 56836 bcm_tomahawk3_tsn_sr_tx_flowset_create( 56837 int unit, 56838 bcm_tsn_pri_map_t pri_map, 56839 bcm_tsn_sr_tx_flow_config_t *default_config, 56840 bcm_tsn_sr_flowset_t *flowset) 56841 { 56842 return bcm_esw_tsn_sr_tx_flowset_create(unit, pri_map, default_config, flowset); 56843 } 56844 #endif 56845 56846 #ifdef BCM_TOMAHAWK3_SUPPORT 56847 int 56848 bcm_tomahawk3_tsn_stat_group_create( 56849 int unit, 56850 bcm_tsn_stat_group_type_t group_type, 56851 int count, 56852 bcm_tsn_stat_t *stat_arr, 56853 bcm_tsn_stat_group_t *id) 56854 { 56855 return bcm_esw_tsn_stat_group_create(unit, group_type, count, stat_arr, id); 56856 } 56857 #endif 56858 56859 #ifdef BCM_TOMAHAWK3_SUPPORT 56860 int 56861 bcm_tomahawk3_tsn_stat_group_destroy( 56862 int unit, 56863 bcm_tsn_stat_group_t id) 56864 { 56865 return bcm_esw_tsn_stat_group_destroy(unit, id); 56866 } 56867 #endif 56868 56869 #ifdef BCM_TOMAHAWK3_SUPPORT 56870 int 56871 bcm_tomahawk3_tsn_stat_group_get( 56872 int unit, 56873 bcm_tsn_stat_group_t id, 56874 bcm_tsn_stat_group_type_t *group_type, 56875 int max, 56876 bcm_tsn_stat_t *stat_arr, 56877 int *count) 56878 { 56879 return bcm_esw_tsn_stat_group_get(unit, id, group_type, max, stat_arr, count); 56880 } 56881 #endif 56882 56883 #ifdef BCM_TOMAHAWK3_SUPPORT 56884 int 56885 bcm_tomahawk3_tsn_stat_group_set( 56886 int unit, 56887 bcm_tsn_stat_group_t id, 56888 int count, 56889 bcm_tsn_stat_t *stat_arr) 56890 { 56891 return bcm_esw_tsn_stat_group_set(unit, id, count, stat_arr); 56892 } 56893 #endif 56894 56895 #ifdef BCM_TOMAHAWK3_SUPPORT 56896 int 56897 bcm_tomahawk3_tsn_stat_group_traverse( 56898 int unit, 56899 bcm_tsn_stat_group_traverse_cb cb, 56900 void *user_data) 56901 { 56902 return bcm_esw_tsn_stat_group_traverse(unit, cb, user_data); 56903 } 56904 #endif 56905 56906 #ifdef BCM_TOMAHAWK3_SUPPORT 56907 int 56908 bcm_tomahawk3_tsn_stat_threshold_get( 56909 int unit, 56910 bcm_tsn_stat_threshold_source_t source, 56911 bcm_tsn_stat_t stat, 56912 bcm_tsn_stat_threshold_config_t *config) 56913 { 56914 return bcm_esw_tsn_stat_threshold_get(unit, source, stat, config); 56915 } 56916 #endif 56917 56918 #ifdef BCM_TOMAHAWK3_SUPPORT 56919 int 56920 bcm_tomahawk3_tsn_stat_threshold_set( 56921 int unit, 56922 bcm_tsn_stat_threshold_source_t source, 56923 bcm_tsn_stat_t stat, 56924 bcm_tsn_stat_threshold_config_t *config) 56925 { 56926 return bcm_esw_tsn_stat_threshold_set(unit, source, stat, config); 56927 } 56928 #endif 56929 56930 #ifdef BCM_TOMAHAWK3_SUPPORT 56931 int 56932 bcm_tomahawk3_tsn_stu_profile_create( 56933 int unit, 56934 bcm_tsn_stu_profile_type_t type, 56935 bcm_tsn_stu_config_t *config, 56936 int *stu_profile_id) 56937 { 56938 return bcm_esw_tsn_stu_profile_create(unit, type, config, stu_profile_id); 56939 } 56940 #endif 56941 56942 #ifdef BCM_TOMAHAWK3_SUPPORT 56943 int 56944 bcm_tomahawk3_tsn_stu_profile_destroy( 56945 int unit, 56946 int stu_profile_id) 56947 { 56948 return bcm_esw_tsn_stu_profile_destroy(unit, stu_profile_id); 56949 } 56950 #endif 56951 56952 #ifdef BCM_TOMAHAWK3_SUPPORT 56953 int 56954 bcm_tomahawk3_tsn_stu_profile_get( 56955 int unit, 56956 int stu_profile_id, 56957 bcm_tsn_stu_profile_type_t *type, 56958 bcm_tsn_stu_config_t *config) 56959 { 56960 return bcm_esw_tsn_stu_profile_get(unit, stu_profile_id, type, config); 56961 } 56962 #endif 56963 56964 #ifdef BCM_TOMAHAWK3_SUPPORT 56965 int 56966 bcm_tomahawk3_tsn_stu_profile_set( 56967 int unit, 56968 int stu_profile_id, 56969 bcm_tsn_stu_config_t *config) 56970 { 56971 return bcm_esw_tsn_stu_profile_set(unit, stu_profile_id, config); 56972 } 56973 #endif 56974 56975 #ifdef BCM_TOMAHAWK3_SUPPORT 56976 int 56977 bcm_tomahawk3_tsn_stu_profile_traverse( 56978 int unit, 56979 bcm_tsn_stu_profile_traverse_cb cb, 56980 void *user_data) 56981 { 56982 return bcm_esw_tsn_stu_profile_traverse(unit, cb, user_data); 56983 } 56984 #endif 56985 56986 #ifdef BCM_TOMAHAWK3_SUPPORT 56987 int 56988 bcm_tomahawk3_tsn_taf_control_get( 56989 int unit, 56990 int taf_gate, 56991 bcm_tsn_taf_control_t type, 56992 uint32 *arg) 56993 { 56994 return bcm_esw_tsn_taf_control_get(unit, taf_gate, type, arg); 56995 } 56996 #endif 56997 56998 #ifdef BCM_TOMAHAWK3_SUPPORT 56999 int 57000 bcm_tomahawk3_tsn_taf_control_set( 57001 int unit, 57002 int taf_gate, 57003 bcm_tsn_taf_control_t type, 57004 uint32 arg) 57005 { 57006 return bcm_esw_tsn_taf_control_set(unit, taf_gate, type, arg); 57007 } 57008 #endif 57009 57010 #ifdef BCM_TOMAHAWK3_SUPPORT 57011 int 57012 bcm_tomahawk3_tsn_taf_cosq_mapping_profile_create( 57013 int unit, 57014 int *cosq_profile) 57015 { 57016 return bcm_esw_tsn_taf_cosq_mapping_profile_create(unit, cosq_profile); 57017 } 57018 #endif 57019 57020 #ifdef BCM_TOMAHAWK3_SUPPORT 57021 int 57022 bcm_tomahawk3_tsn_taf_cosq_mapping_profile_destroy( 57023 int unit, 57024 int cosq_profile) 57025 { 57026 return bcm_esw_tsn_taf_cosq_mapping_profile_destroy(unit, cosq_profile); 57027 } 57028 #endif 57029 57030 #ifdef BCM_TOMAHAWK3_SUPPORT 57031 int 57032 bcm_tomahawk3_tsn_taf_cosq_mapping_profile_get( 57033 int unit, 57034 int cosq_profile, 57035 bcm_cos_t priority, 57036 bcm_cos_queue_t *cosq) 57037 { 57038 return bcm_esw_tsn_taf_cosq_mapping_profile_get(unit, cosq_profile, priority, cosq); 57039 } 57040 #endif 57041 57042 #ifdef BCM_TOMAHAWK3_SUPPORT 57043 int 57044 bcm_tomahawk3_tsn_taf_cosq_mapping_profile_set( 57045 int unit, 57046 int cosq_profile, 57047 bcm_cos_t priority, 57048 bcm_cos_queue_t cosq) 57049 { 57050 return bcm_esw_tsn_taf_cosq_mapping_profile_set(unit, cosq_profile, priority, cosq); 57051 } 57052 #endif 57053 57054 #ifdef BCM_TOMAHAWK3_SUPPORT 57055 int 57056 bcm_tomahawk3_tsn_taf_cosq_mapping_profile_traverse( 57057 int unit, 57058 bcm_tsn_taf_cosq_mapping_profile_traverse_cb cb, 57059 void *user_data) 57060 { 57061 return bcm_esw_tsn_taf_cosq_mapping_profile_traverse(unit, cb, user_data); 57062 } 57063 #endif 57064 57065 #ifdef BCM_TOMAHAWK3_SUPPORT 57066 int 57067 bcm_tomahawk3_tsn_taf_event_register( 57068 int unit, 57069 bcm_tsn_taf_event_types_t event_types, 57070 int taf_gate, 57071 bcm_tsn_taf_event_cb cb, 57072 void *user_data) 57073 { 57074 return bcm_esw_tsn_taf_event_register(unit, event_types, taf_gate, cb, user_data); 57075 } 57076 #endif 57077 57078 #ifdef BCM_TOMAHAWK3_SUPPORT 57079 int 57080 bcm_tomahawk3_tsn_taf_event_unregister( 57081 int unit, 57082 bcm_tsn_taf_event_types_t event_types, 57083 int taf_gate, 57084 bcm_tsn_taf_event_cb cb) 57085 { 57086 return bcm_esw_tsn_taf_event_unregister(unit, event_types, taf_gate, cb); 57087 } 57088 #endif 57089 57090 #ifdef BCM_TOMAHAWK3_SUPPORT 57091 int 57092 bcm_tomahawk3_tsn_taf_gate_create( 57093 int unit, 57094 int flags, 57095 int *taf_gate_id) 57096 { 57097 return bcm_esw_tsn_taf_gate_create(unit, flags, taf_gate_id); 57098 } 57099 #endif 57100 57101 #ifdef BCM_TOMAHAWK3_SUPPORT 57102 int 57103 bcm_tomahawk3_tsn_taf_gate_destroy( 57104 int unit, 57105 int taf_gate_id) 57106 { 57107 return bcm_esw_tsn_taf_gate_destroy(unit, taf_gate_id); 57108 } 57109 #endif 57110 57111 #ifdef BCM_TOMAHAWK3_SUPPORT 57112 int 57113 bcm_tomahawk3_tsn_taf_gate_max_bytes_profile_create( 57114 int unit, 57115 int taf_gate_id, 57116 uint64 max_bytes, 57117 int *profile_id) 57118 { 57119 return bcm_esw_tsn_taf_gate_max_bytes_profile_create(unit, taf_gate_id, max_bytes, profile_id); 57120 } 57121 #endif 57122 57123 #ifdef BCM_TOMAHAWK3_SUPPORT 57124 int 57125 bcm_tomahawk3_tsn_taf_gate_max_bytes_profile_destroy( 57126 int unit, 57127 int taf_gate_id, 57128 int profile_id) 57129 { 57130 return bcm_esw_tsn_taf_gate_max_bytes_profile_destroy(unit, taf_gate_id, profile_id); 57131 } 57132 #endif 57133 57134 #ifdef BCM_TOMAHAWK3_SUPPORT 57135 int 57136 bcm_tomahawk3_tsn_taf_gate_max_bytes_profile_get( 57137 int unit, 57138 int taf_gate_id, 57139 int profile_id, 57140 uint64 *max_bytes) 57141 { 57142 return bcm_esw_tsn_taf_gate_max_bytes_profile_get(unit, taf_gate_id, profile_id, max_bytes); 57143 } 57144 #endif 57145 57146 #ifdef BCM_TOMAHAWK3_SUPPORT 57147 int 57148 bcm_tomahawk3_tsn_taf_gate_max_bytes_profile_set( 57149 int unit, 57150 int taf_gate_id, 57151 int profile_id, 57152 uint64 max_bytes) 57153 { 57154 return bcm_esw_tsn_taf_gate_max_bytes_profile_set(unit, taf_gate_id, profile_id, max_bytes); 57155 } 57156 #endif 57157 57158 #ifdef BCM_TOMAHAWK3_SUPPORT 57159 int 57160 bcm_tomahawk3_tsn_taf_gate_max_bytes_profile_traverse( 57161 int unit, 57162 int taf_gate_id, 57163 bcm_tsn_taf_gate_max_bytes_profile_traverse_cb cb, 57164 void *user_data) 57165 { 57166 return bcm_esw_tsn_taf_gate_max_bytes_profile_traverse(unit, taf_gate_id, cb, user_data); 57167 } 57168 #endif 57169 57170 #ifdef BCM_TOMAHAWK3_SUPPORT 57171 int 57172 bcm_tomahawk3_tsn_taf_gate_stat_get( 57173 int unit, 57174 int taf_gate_id, 57175 bcm_tsn_taf_gate_stat_t stat, 57176 uint64 *val) 57177 { 57178 return bcm_esw_tsn_taf_gate_stat_get(unit, taf_gate_id, stat, val); 57179 } 57180 #endif 57181 57182 #ifdef BCM_TOMAHAWK3_SUPPORT 57183 int 57184 bcm_tomahawk3_tsn_taf_gate_stat_get32( 57185 int unit, 57186 int taf_gate_id, 57187 bcm_tsn_taf_gate_stat_t stat, 57188 uint32 *val) 57189 { 57190 return bcm_esw_tsn_taf_gate_stat_get32(unit, taf_gate_id, stat, val); 57191 } 57192 #endif 57193 57194 #ifdef BCM_TOMAHAWK3_SUPPORT 57195 int 57196 bcm_tomahawk3_tsn_taf_gate_stat_multi_get( 57197 int unit, 57198 int taf_gate_id, 57199 int nstat, 57200 bcm_tsn_taf_gate_stat_t *stat_arr, 57201 uint64 *val_arr) 57202 { 57203 return bcm_esw_tsn_taf_gate_stat_multi_get(unit, taf_gate_id, nstat, stat_arr, val_arr); 57204 } 57205 #endif 57206 57207 #ifdef BCM_TOMAHAWK3_SUPPORT 57208 int 57209 bcm_tomahawk3_tsn_taf_gate_stat_multi_get32( 57210 int unit, 57211 int taf_gate_id, 57212 int nstat, 57213 bcm_tsn_taf_gate_stat_t *stat_arr, 57214 uint32 *val_arr) 57215 { 57216 return bcm_esw_tsn_taf_gate_stat_multi_get32(unit, taf_gate_id, nstat, stat_arr, val_arr); 57217 } 57218 #endif 57219 57220 #ifdef BCM_TOMAHAWK3_SUPPORT 57221 int 57222 bcm_tomahawk3_tsn_taf_gate_stat_multi_set( 57223 int unit, 57224 int taf_gate_id, 57225 int nstat, 57226 bcm_tsn_taf_gate_stat_t *stat_arr, 57227 uint64 *val_arr) 57228 { 57229 return bcm_esw_tsn_taf_gate_stat_multi_set(unit, taf_gate_id, nstat, stat_arr, val_arr); 57230 } 57231 #endif 57232 57233 #ifdef BCM_TOMAHAWK3_SUPPORT 57234 int 57235 bcm_tomahawk3_tsn_taf_gate_stat_multi_set32( 57236 int unit, 57237 int taf_gate_id, 57238 int nstat, 57239 bcm_tsn_taf_gate_stat_t *stat_arr, 57240 uint32 *val_arr) 57241 { 57242 return bcm_esw_tsn_taf_gate_stat_multi_set32(unit, taf_gate_id, nstat, stat_arr, val_arr); 57243 } 57244 #endif 57245 57246 #ifdef BCM_TOMAHAWK3_SUPPORT 57247 int 57248 bcm_tomahawk3_tsn_taf_gate_stat_set( 57249 int unit, 57250 int taf_gate_id, 57251 bcm_tsn_taf_gate_stat_t stat, 57252 uint64 val) 57253 { 57254 return bcm_esw_tsn_taf_gate_stat_set(unit, taf_gate_id, stat, val); 57255 } 57256 #endif 57257 57258 #ifdef BCM_TOMAHAWK3_SUPPORT 57259 int 57260 bcm_tomahawk3_tsn_taf_gate_stat_set32( 57261 int unit, 57262 int taf_gate_id, 57263 bcm_tsn_taf_gate_stat_t stat, 57264 uint32 val) 57265 { 57266 return bcm_esw_tsn_taf_gate_stat_set32(unit, taf_gate_id, stat, val); 57267 } 57268 #endif 57269 57270 #ifdef BCM_TOMAHAWK3_SUPPORT 57271 int 57272 bcm_tomahawk3_tsn_taf_gate_stat_sync_get( 57273 int unit, 57274 int taf_gate_id, 57275 bcm_tsn_taf_gate_stat_t stat, 57276 uint64 *val) 57277 { 57278 return bcm_esw_tsn_taf_gate_stat_sync_get(unit, taf_gate_id, stat, val); 57279 } 57280 #endif 57281 57282 #ifdef BCM_TOMAHAWK3_SUPPORT 57283 int 57284 bcm_tomahawk3_tsn_taf_gate_stat_sync_get32( 57285 int unit, 57286 int taf_gate_id, 57287 bcm_tsn_taf_gate_stat_t stat, 57288 uint32 *val) 57289 { 57290 return bcm_esw_tsn_taf_gate_stat_sync_get32(unit, taf_gate_id, stat, val); 57291 } 57292 #endif 57293 57294 #ifdef BCM_TOMAHAWK3_SUPPORT 57295 int 57296 bcm_tomahawk3_tsn_taf_gate_stat_sync_multi_get( 57297 int unit, 57298 int taf_gate_id, 57299 int nstat, 57300 bcm_tsn_taf_gate_stat_t *stat_arr, 57301 uint64 *val_arr) 57302 { 57303 return bcm_esw_tsn_taf_gate_stat_sync_multi_get(unit, taf_gate_id, nstat, stat_arr, val_arr); 57304 } 57305 #endif 57306 57307 #ifdef BCM_TOMAHAWK3_SUPPORT 57308 int 57309 bcm_tomahawk3_tsn_taf_gate_stat_sync_multi_get32( 57310 int unit, 57311 int taf_gate_id, 57312 int nstat, 57313 bcm_tsn_taf_gate_stat_t *stat_arr, 57314 uint32 *val_arr) 57315 { 57316 return bcm_esw_tsn_taf_gate_stat_sync_multi_get32(unit, taf_gate_id, nstat, stat_arr, val_arr); 57317 } 57318 #endif 57319 57320 #ifdef BCM_TOMAHAWK3_SUPPORT 57321 int 57322 bcm_tomahawk3_tsn_taf_gate_traverse( 57323 int unit, 57324 bcm_tsn_taf_gate_traverse_cb cb, 57325 void *user_data) 57326 { 57327 return bcm_esw_tsn_taf_gate_traverse(unit, cb, user_data); 57328 } 57329 #endif 57330 57331 #ifdef BCM_TOMAHAWK3_SUPPORT 57332 int 57333 bcm_tomahawk3_tsn_taf_profile_commit( 57334 int unit, 57335 int taf_gate, 57336 bcm_tsn_taf_profile_id_t pid) 57337 { 57338 return bcm_esw_tsn_taf_profile_commit(unit, taf_gate, pid); 57339 } 57340 #endif 57341 57342 #ifdef BCM_TOMAHAWK3_SUPPORT 57343 int 57344 bcm_tomahawk3_tsn_taf_profile_create( 57345 int unit, 57346 int taf_gate, 57347 bcm_tsn_taf_profile_t *profile, 57348 bcm_tsn_taf_profile_id_t *pid) 57349 { 57350 return bcm_esw_tsn_taf_profile_create(unit, taf_gate, profile, pid); 57351 } 57352 #endif 57353 57354 #ifdef BCM_TOMAHAWK3_SUPPORT 57355 int 57356 bcm_tomahawk3_tsn_taf_profile_destroy( 57357 int unit, 57358 int taf_gate, 57359 bcm_tsn_taf_profile_id_t pid) 57360 { 57361 return bcm_esw_tsn_taf_profile_destroy(unit, taf_gate, pid); 57362 } 57363 #endif 57364 57365 #ifdef BCM_TOMAHAWK3_SUPPORT 57366 int 57367 bcm_tomahawk3_tsn_taf_profile_destroy_all( 57368 int unit, 57369 int taf_gate) 57370 { 57371 return bcm_esw_tsn_taf_profile_destroy_all(unit, taf_gate); 57372 } 57373 #endif 57374 57375 #ifdef BCM_TOMAHAWK3_SUPPORT 57376 int 57377 bcm_tomahawk3_tsn_taf_profile_get( 57378 int unit, 57379 int taf_gate, 57380 bcm_tsn_taf_profile_id_t pid, 57381 bcm_tsn_taf_profile_t *profile) 57382 { 57383 return bcm_esw_tsn_taf_profile_get(unit, taf_gate, pid, profile); 57384 } 57385 #endif 57386 57387 #ifdef BCM_TOMAHAWK3_SUPPORT 57388 int 57389 bcm_tomahawk3_tsn_taf_profile_set( 57390 int unit, 57391 int taf_gate, 57392 bcm_tsn_taf_profile_id_t pid, 57393 bcm_tsn_taf_profile_t *profile) 57394 { 57395 return bcm_esw_tsn_taf_profile_set(unit, taf_gate, pid, profile); 57396 } 57397 #endif 57398 57399 #ifdef BCM_TOMAHAWK3_SUPPORT 57400 int 57401 bcm_tomahawk3_tsn_taf_profile_status_get( 57402 int unit, 57403 int taf_gate, 57404 bcm_tsn_taf_profile_id_t pid, 57405 bcm_tsn_taf_profile_status_t *status) 57406 { 57407 return bcm_esw_tsn_taf_profile_status_get(unit, taf_gate, pid, status); 57408 } 57409 #endif 57410 57411 #ifdef BCM_TOMAHAWK3_SUPPORT 57412 int 57413 bcm_tomahawk3_tsn_taf_profile_traverse( 57414 int unit, 57415 int taf_gate, 57416 bcm_tsn_taf_profile_traverse_cb cb, 57417 void *user_data) 57418 { 57419 return bcm_esw_tsn_taf_profile_traverse(unit, taf_gate, cb, user_data); 57420 } 57421 #endif 57422 57423 #ifdef BCM_TOMAHAWK3_SUPPORT 57424 int 57425 bcm_tomahawk3_tsn_taf_status_get( 57426 int unit, 57427 int taf_gate, 57428 bcm_tsn_taf_status_t type, 57429 uint32 *arg) 57430 { 57431 return bcm_esw_tsn_taf_status_get(unit, taf_gate, type, arg); 57432 } 57433 #endif 57434 57435 #if defined(INCLUDE_L3) 57436 #ifdef BCM_TOMAHAWK3_SUPPORT 57437 int 57438 bcm_tomahawk3_tunnel_config_get( 57439 int unit, 57440 bcm_tunnel_config_t *tconfig) 57441 { 57442 return bcm_esw_tunnel_config_get(unit, tconfig); 57443 } 57444 #endif 57445 #endif 57446 57447 #if defined(INCLUDE_L3) 57448 #ifdef BCM_TOMAHAWK3_SUPPORT 57449 int 57450 bcm_tomahawk3_tunnel_config_set( 57451 int unit, 57452 bcm_tunnel_config_t *tconfig) 57453 { 57454 return bcm_esw_tunnel_config_set(unit, tconfig); 57455 } 57456 #endif 57457 #endif 57458 57459 #if defined(INCLUDE_L3) 57460 #ifdef BCM_TOMAHAWK3_SUPPORT 57461 int 57462 bcm_tomahawk3_tunnel_dscp_map_create( 57463 int unit, 57464 uint32 flags, 57465 int *dscp_map_id) 57466 { 57467 return bcm_esw_tunnel_dscp_map_create(unit, flags, dscp_map_id); 57468 } 57469 #endif 57470 #endif 57471 57472 #if defined(INCLUDE_L3) 57473 #ifdef BCM_TOMAHAWK3_SUPPORT 57474 int 57475 bcm_tomahawk3_tunnel_dscp_map_destroy( 57476 int unit, 57477 int dscp_map_id) 57478 { 57479 return bcm_esw_tunnel_dscp_map_destroy(unit, dscp_map_id); 57480 } 57481 #endif 57482 #endif 57483 57484 #if defined(INCLUDE_L3) 57485 #ifdef BCM_TOMAHAWK3_SUPPORT 57486 int 57487 bcm_tomahawk3_tunnel_dscp_map_get( 57488 int unit, 57489 int dscp_map_id, 57490 bcm_tunnel_dscp_map_t *dscp_map) 57491 { 57492 return bcm_esw_tunnel_dscp_map_get(unit, dscp_map_id, dscp_map); 57493 } 57494 #endif 57495 #endif 57496 57497 #if defined(INCLUDE_L3) 57498 #ifdef BCM_TOMAHAWK3_SUPPORT 57499 int 57500 bcm_tomahawk3_tunnel_dscp_map_port_get( 57501 int unit, 57502 bcm_port_t port, 57503 bcm_tunnel_dscp_map_t *dscp_map) 57504 { 57505 return bcm_esw_tunnel_dscp_map_port_get(unit, port, dscp_map); 57506 } 57507 #endif 57508 #endif 57509 57510 #if defined(INCLUDE_L3) 57511 #ifdef BCM_TOMAHAWK3_SUPPORT 57512 int 57513 bcm_tomahawk3_tunnel_dscp_map_port_set( 57514 int unit, 57515 bcm_port_t port, 57516 bcm_tunnel_dscp_map_t *dscp_map) 57517 { 57518 return bcm_esw_tunnel_dscp_map_port_set(unit, port, dscp_map); 57519 } 57520 #endif 57521 #endif 57522 57523 #if defined(INCLUDE_L3) 57524 #ifdef BCM_TOMAHAWK3_SUPPORT 57525 int 57526 bcm_tomahawk3_tunnel_dscp_map_set( 57527 int unit, 57528 int dscp_map_id, 57529 bcm_tunnel_dscp_map_t *dscp_map) 57530 { 57531 return bcm_esw_tunnel_dscp_map_set(unit, dscp_map_id, dscp_map); 57532 } 57533 #endif 57534 #endif 57535 57536 #if defined(INCLUDE_L3) 57537 #ifdef BCM_TOMAHAWK3_SUPPORT 57538 int 57539 bcm_tomahawk3_tunnel_initiator_clear( 57540 int unit, 57541 bcm_l3_intf_t *intf) 57542 { 57543 return bcm_esw_tunnel_initiator_clear(unit, intf); 57544 } 57545 #endif 57546 #endif 57547 57548 #if defined(INCLUDE_L3) 57549 int 57550 bcm_tomahawk3_tunnel_initiator_create( 57551 int unit, 57552 bcm_l3_intf_t *intf, 57553 bcm_tunnel_initiator_t *tunnel) 57554 { 57555 return BCM_E_UNAVAIL; 57556 } 57557 #endif 57558 57559 #if defined(INCLUDE_L3) 57560 #ifdef BCM_TOMAHAWK3_SUPPORT 57561 int 57562 bcm_tomahawk3_tunnel_initiator_get( 57563 int unit, 57564 bcm_l3_intf_t *intf, 57565 bcm_tunnel_initiator_t *tunnel) 57566 { 57567 return bcm_esw_tunnel_initiator_get(unit, intf, tunnel); 57568 } 57569 #endif 57570 #endif 57571 57572 #if defined(INCLUDE_L3) 57573 #ifdef BCM_TOMAHAWK3_SUPPORT 57574 int 57575 bcm_tomahawk3_tunnel_initiator_set( 57576 int unit, 57577 bcm_l3_intf_t *intf, 57578 bcm_tunnel_initiator_t *tunnel) 57579 { 57580 return bcm_esw_tunnel_initiator_set(unit, intf, tunnel); 57581 } 57582 #endif 57583 #endif 57584 57585 #if defined(INCLUDE_L3) 57586 #ifdef BCM_TOMAHAWK3_SUPPORT 57587 int 57588 bcm_tomahawk3_tunnel_initiator_traverse( 57589 int unit, 57590 bcm_tunnel_initiator_traverse_cb cb, 57591 void *user_data) 57592 { 57593 return bcm_esw_tunnel_initiator_traverse(unit, cb, user_data); 57594 } 57595 #endif 57596 #endif 57597 57598 #if defined(INCLUDE_L3) 57599 #ifdef BCM_TOMAHAWK3_SUPPORT 57600 int 57601 bcm_tomahawk3_tunnel_terminator_add( 57602 int unit, 57603 bcm_tunnel_terminator_t *info) 57604 { 57605 return bcm_esw_tunnel_terminator_add(unit, info); 57606 } 57607 #endif 57608 #endif 57609 57610 #if defined(INCLUDE_L3) 57611 int 57612 bcm_tomahawk3_tunnel_terminator_config_add( 57613 int unit, 57614 uint32 flags, 57615 bcm_tunnel_terminator_config_key_t *config_key, 57616 bcm_tunnel_terminator_config_action_t *config_action) 57617 { 57618 return BCM_E_UNAVAIL; 57619 } 57620 #endif 57621 57622 #if defined(INCLUDE_L3) 57623 int 57624 bcm_tomahawk3_tunnel_terminator_config_delete( 57625 int unit, 57626 bcm_tunnel_terminator_config_key_t *config_key) 57627 { 57628 return BCM_E_UNAVAIL; 57629 } 57630 #endif 57631 57632 #if defined(INCLUDE_L3) 57633 int 57634 bcm_tomahawk3_tunnel_terminator_config_get( 57635 int unit, 57636 bcm_tunnel_terminator_config_key_t *config_key, 57637 bcm_tunnel_terminator_config_action_t *config_action) 57638 { 57639 return BCM_E_UNAVAIL; 57640 } 57641 #endif 57642 57643 #if defined(INCLUDE_L3) 57644 int 57645 bcm_tomahawk3_tunnel_terminator_config_traverse( 57646 int unit, 57647 bcm_tunnel_terminator_config_traverse_cb cb, 57648 void *user_data) 57649 { 57650 return BCM_E_UNAVAIL; 57651 } 57652 #endif 57653 57654 #if defined(INCLUDE_L3) 57655 int 57656 bcm_tomahawk3_tunnel_terminator_create( 57657 int unit, 57658 bcm_tunnel_terminator_t *info) 57659 { 57660 return BCM_E_UNAVAIL; 57661 } 57662 #endif 57663 57664 #if defined(INCLUDE_L3) 57665 #ifdef BCM_TOMAHAWK3_SUPPORT 57666 int 57667 bcm_tomahawk3_tunnel_terminator_delete( 57668 int unit, 57669 bcm_tunnel_terminator_t *info) 57670 { 57671 return bcm_esw_tunnel_terminator_delete(unit, info); 57672 } 57673 #endif 57674 #endif 57675 57676 #if defined(INCLUDE_L3) 57677 #ifdef BCM_TOMAHAWK3_SUPPORT 57678 int 57679 bcm_tomahawk3_tunnel_terminator_get( 57680 int unit, 57681 bcm_tunnel_terminator_t *info) 57682 { 57683 return bcm_esw_tunnel_terminator_get(unit, info); 57684 } 57685 #endif 57686 #endif 57687 57688 #if defined(INCLUDE_L3) 57689 #ifdef BCM_TOMAHAWK3_SUPPORT 57690 int 57691 bcm_tomahawk3_tunnel_terminator_traverse( 57692 int unit, 57693 bcm_tunnel_terminator_traverse_cb cb, 57694 void *user_data) 57695 { 57696 return bcm_esw_tunnel_terminator_traverse(unit, cb, user_data); 57697 } 57698 #endif 57699 #endif 57700 57701 #if defined(INCLUDE_L3) 57702 #ifdef BCM_TOMAHAWK3_SUPPORT 57703 int 57704 bcm_tomahawk3_tunnel_terminator_update( 57705 int unit, 57706 bcm_tunnel_terminator_t *info) 57707 { 57708 return bcm_esw_tunnel_terminator_update(unit, info); 57709 } 57710 #endif 57711 #endif 57712 57713 #if defined(INCLUDE_L3) 57714 #ifdef BCM_TOMAHAWK3_SUPPORT 57715 int 57716 bcm_tomahawk3_tunnel_terminator_vlan_get( 57717 int unit, 57718 bcm_gport_t tunnel, 57719 bcm_vlan_vector_t *vlan_vec) 57720 { 57721 return bcm_esw_tunnel_terminator_vlan_get(unit, tunnel, vlan_vec); 57722 } 57723 #endif 57724 #endif 57725 57726 #if defined(INCLUDE_L3) 57727 #ifdef BCM_TOMAHAWK3_SUPPORT 57728 int 57729 bcm_tomahawk3_tunnel_terminator_vlan_set( 57730 int unit, 57731 bcm_gport_t tunnel, 57732 bcm_vlan_vector_t vlan_vec) 57733 { 57734 return bcm_esw_tunnel_terminator_vlan_set(unit, tunnel, vlan_vec); 57735 } 57736 #endif 57737 #endif 57738 57739 #ifdef BCM_TOMAHAWK3_SUPPORT 57740 int 57741 bcm_tomahawk3_tx( 57742 int unit, 57743 bcm_pkt_t *tx_pkt, 57744 void *cookie) 57745 { 57746 return bcm_esw_tx(unit, tx_pkt, cookie); 57747 } 57748 #endif 57749 57750 #ifdef BCM_TOMAHAWK3_SUPPORT 57751 int 57752 bcm_tomahawk3_tx_array( 57753 int unit, 57754 bcm_pkt_t **pkt, 57755 int count, 57756 bcm_pkt_cb_f all_done_cb, 57757 void *cookie) 57758 { 57759 return bcm_esw_tx_array(unit, pkt, count, all_done_cb, cookie); 57760 } 57761 #endif 57762 57763 #if defined(BROADCOM_DEBUG) 57764 #ifdef BCM_TOMAHAWK3_SUPPORT 57765 int 57766 bcm_tomahawk3_tx_dv_dump( 57767 int unit, 57768 void *dv_p) 57769 { 57770 return bcm_esw_tx_dv_dump(unit, dv_p); 57771 } 57772 #endif 57773 #endif 57774 57775 #ifdef BCM_TOMAHAWK3_SUPPORT 57776 int 57777 bcm_tomahawk3_tx_init( 57778 int unit) 57779 { 57780 return bcm_esw_tx_init(unit); 57781 } 57782 #endif 57783 57784 #ifdef BCM_TOMAHAWK3_SUPPORT 57785 int 57786 bcm_tomahawk3_tx_list( 57787 int unit, 57788 bcm_pkt_t *pkt, 57789 bcm_pkt_cb_f all_done_cb, 57790 void *cookie) 57791 { 57792 return bcm_esw_tx_list(unit, pkt, all_done_cb, cookie); 57793 } 57794 #endif 57795 57796 #ifdef BCM_TOMAHAWK3_SUPPORT 57797 int 57798 bcm_tomahawk3_tx_pkt_l2_map( 57799 int unit, 57800 bcm_pkt_t *pkt, 57801 bcm_mac_t dest_mac, 57802 int vid) 57803 { 57804 return bcm_esw_tx_pkt_l2_map(unit, pkt, dest_mac, vid); 57805 } 57806 #endif 57807 57808 #ifdef BCM_TOMAHAWK3_SUPPORT 57809 int 57810 bcm_tomahawk3_tx_pkt_setup( 57811 int unit, 57812 bcm_pkt_t *tx_pkt) 57813 { 57814 return bcm_esw_tx_pkt_setup(unit, tx_pkt); 57815 } 57816 #endif 57817 57818 #if defined(BROADCOM_DEBUG) 57819 #ifdef BCM_TOMAHAWK3_SUPPORT 57820 int 57821 bcm_tomahawk3_tx_show( 57822 int unit) 57823 { 57824 return bcm_esw_tx_show(unit); 57825 } 57826 #endif 57827 #endif 57828 57829 #ifdef BCM_TOMAHAWK3_SUPPORT 57830 int 57831 bcm_tomahawk3_txbeacon_destroy( 57832 int unit, 57833 bcm_txbeacon_pkt_id_t pkt_id) 57834 { 57835 return bcm_esw_txbeacon_destroy(unit, pkt_id); 57836 } 57837 #endif 57838 57839 #ifdef BCM_TOMAHAWK3_SUPPORT 57840 int 57841 bcm_tomahawk3_txbeacon_init( 57842 int unit, 57843 int uC) 57844 { 57845 return bcm_esw_txbeacon_init(unit, uC); 57846 } 57847 #endif 57848 57849 #ifdef BCM_TOMAHAWK3_SUPPORT 57850 int 57851 bcm_tomahawk3_txbeacon_pkt_get( 57852 int unit, 57853 bcm_txbeacon_t *txbeacon) 57854 { 57855 return bcm_esw_txbeacon_pkt_get(unit, txbeacon); 57856 } 57857 #endif 57858 57859 #ifdef BCM_TOMAHAWK3_SUPPORT 57860 int 57861 bcm_tomahawk3_txbeacon_pkt_setup( 57862 int unit, 57863 bcm_txbeacon_t *txbeacon) 57864 { 57865 return bcm_esw_txbeacon_pkt_setup(unit, txbeacon); 57866 } 57867 #endif 57868 57869 #ifdef BCM_TOMAHAWK3_SUPPORT 57870 int 57871 bcm_tomahawk3_txbeacon_start( 57872 int unit, 57873 bcm_txbeacon_pkt_id_t pkt_id) 57874 { 57875 return bcm_esw_txbeacon_start(unit, pkt_id); 57876 } 57877 #endif 57878 57879 #ifdef BCM_TOMAHAWK3_SUPPORT 57880 int 57881 bcm_tomahawk3_txbeacon_stop( 57882 int unit, 57883 bcm_txbeacon_pkt_id_t pkt_id) 57884 { 57885 return bcm_esw_txbeacon_stop(unit, pkt_id); 57886 } 57887 #endif 57888 57889 #ifdef BCM_TOMAHAWK3_SUPPORT 57890 int 57891 bcm_tomahawk3_txbeacon_traverse( 57892 int unit, 57893 bcm_txbeacon_traverse_cb_t trav_fn, 57894 void *user_data) 57895 { 57896 return bcm_esw_txbeacon_traverse(unit, trav_fn, user_data); 57897 } 57898 #endif 57899 57900 #ifdef BCM_TOMAHAWK3_SUPPORT 57901 int 57902 bcm_tomahawk3_udf_abstract_pkt_format_info_get( 57903 int unit, 57904 bcm_udf_abstract_pkt_format_t abstract_pkt_format, 57905 bcm_udf_abstract_pkt_format_info_t *pkt_format_info) 57906 { 57907 return bcm_esw_udf_abstract_pkt_format_info_get(unit, abstract_pkt_format, pkt_format_info); 57908 } 57909 #endif 57910 57911 #ifdef BCM_TOMAHAWK3_SUPPORT 57912 int 57913 bcm_tomahawk3_udf_abstract_pkt_format_object_list_get( 57914 int unit, 57915 bcm_udf_abstract_pkt_format_t abstract_pkt_format, 57916 int max, 57917 bcm_udf_id_t *udf_id_list, 57918 int *actual) 57919 { 57920 return bcm_esw_udf_abstract_pkt_format_object_list_get(unit, abstract_pkt_format, max, udf_id_list, actual); 57921 } 57922 #endif 57923 57924 #ifdef BCM_TOMAHAWK3_SUPPORT 57925 int 57926 bcm_tomahawk3_udf_chunk_create( 57927 int unit, 57928 bcm_udf_alloc_hints_t *hints, 57929 bcm_udf_chunk_info_t *udf_chunk_info, 57930 bcm_udf_id_t *udf_id) 57931 { 57932 return bcm_esw_udf_chunk_create(unit, hints, udf_chunk_info, udf_id); 57933 } 57934 #endif 57935 57936 #ifdef BCM_TOMAHAWK3_SUPPORT 57937 int 57938 bcm_tomahawk3_udf_chunk_info_get( 57939 int unit, 57940 bcm_udf_id_t udf_id, 57941 bcm_udf_chunk_info_t *udf_chunk_info) 57942 { 57943 return bcm_esw_udf_chunk_info_get(unit, udf_id, udf_chunk_info); 57944 } 57945 #endif 57946 57947 #ifdef BCM_TOMAHAWK3_SUPPORT 57948 int 57949 bcm_tomahawk3_udf_create( 57950 int unit, 57951 bcm_udf_alloc_hints_t *hints, 57952 bcm_udf_t *udf_info, 57953 bcm_udf_id_t *udf_id) 57954 { 57955 return bcm_esw_udf_create(unit, hints, udf_info, udf_id); 57956 } 57957 #endif 57958 57959 #ifdef BCM_TOMAHAWK3_SUPPORT 57960 int 57961 bcm_tomahawk3_udf_destroy( 57962 int unit, 57963 bcm_udf_id_t udf_id) 57964 { 57965 return bcm_esw_udf_destroy(unit, udf_id); 57966 } 57967 #endif 57968 57969 #ifdef BCM_TOMAHAWK3_SUPPORT 57970 int 57971 bcm_tomahawk3_udf_detach( 57972 int unit) 57973 { 57974 return bcm_esw_udf_detach(unit); 57975 } 57976 #endif 57977 57978 #ifdef BCM_TOMAHAWK3_SUPPORT 57979 int 57980 bcm_tomahawk3_udf_flow_based_chunk_arrange_get( 57981 int unit, 57982 bcm_udf_tunnel_term_flow_type_t flow_type, 57983 uint32 *chunk_bmap) 57984 { 57985 return bcm_esw_udf_flow_based_chunk_arrange_get(unit, flow_type, chunk_bmap); 57986 } 57987 #endif 57988 57989 #ifdef BCM_TOMAHAWK3_SUPPORT 57990 int 57991 bcm_tomahawk3_udf_flow_based_chunk_arrange_set( 57992 int unit, 57993 bcm_udf_tunnel_term_flow_type_t flow_type, 57994 uint32 chunk_bmap) 57995 { 57996 return bcm_esw_udf_flow_based_chunk_arrange_set(unit, flow_type, chunk_bmap); 57997 } 57998 #endif 57999 58000 #ifdef BCM_TOMAHAWK3_SUPPORT 58001 int 58002 bcm_tomahawk3_udf_get( 58003 int unit, 58004 bcm_udf_id_t udf_id, 58005 bcm_udf_t *udf_info) 58006 { 58007 return bcm_esw_udf_get(unit, udf_id, udf_info); 58008 } 58009 #endif 58010 58011 #ifdef BCM_TOMAHAWK3_SUPPORT 58012 int 58013 bcm_tomahawk3_udf_get_all( 58014 int unit, 58015 int max, 58016 bcm_udf_id_t *udf_id_list, 58017 int *actual) 58018 { 58019 return bcm_esw_udf_get_all(unit, max, udf_id_list, actual); 58020 } 58021 #endif 58022 58023 #ifdef BCM_TOMAHAWK3_SUPPORT 58024 int 58025 bcm_tomahawk3_udf_hash_config_add( 58026 int unit, 58027 uint32 options, 58028 bcm_udf_hash_config_t *config) 58029 { 58030 return bcm_esw_udf_hash_config_add(unit, options, config); 58031 } 58032 #endif 58033 58034 #ifdef BCM_TOMAHAWK3_SUPPORT 58035 int 58036 bcm_tomahawk3_udf_hash_config_delete( 58037 int unit, 58038 bcm_udf_hash_config_t *config) 58039 { 58040 return bcm_esw_udf_hash_config_delete(unit, config); 58041 } 58042 #endif 58043 58044 #ifdef BCM_TOMAHAWK3_SUPPORT 58045 int 58046 bcm_tomahawk3_udf_hash_config_delete_all( 58047 int unit) 58048 { 58049 return bcm_esw_udf_hash_config_delete_all(unit); 58050 } 58051 #endif 58052 58053 #ifdef BCM_TOMAHAWK3_SUPPORT 58054 int 58055 bcm_tomahawk3_udf_hash_config_get( 58056 int unit, 58057 bcm_udf_hash_config_t *config) 58058 { 58059 return bcm_esw_udf_hash_config_get(unit, config); 58060 } 58061 #endif 58062 58063 #ifdef BCM_TOMAHAWK3_SUPPORT 58064 int 58065 bcm_tomahawk3_udf_hash_config_get_all( 58066 int unit, 58067 int max, 58068 bcm_udf_hash_config_t *config_list, 58069 int *actual) 58070 { 58071 return bcm_esw_udf_hash_config_get_all(unit, max, config_list, actual); 58072 } 58073 #endif 58074 58075 #ifdef BCM_TOMAHAWK3_SUPPORT 58076 int 58077 bcm_tomahawk3_udf_init( 58078 int unit) 58079 { 58080 return bcm_esw_udf_init(unit); 58081 } 58082 #endif 58083 58084 #ifdef BCM_TOMAHAWK3_SUPPORT 58085 int 58086 bcm_tomahawk3_udf_oper_mode_get( 58087 int unit, 58088 bcm_udf_oper_mode_t *mode) 58089 { 58090 return bcm_esw_udf_oper_mode_get(unit, mode); 58091 } 58092 #endif 58093 58094 #ifdef BCM_TOMAHAWK3_SUPPORT 58095 int 58096 bcm_tomahawk3_udf_oper_mode_set( 58097 int unit, 58098 bcm_udf_oper_mode_t mode) 58099 { 58100 return bcm_esw_udf_oper_mode_set(unit, mode); 58101 } 58102 #endif 58103 58104 #ifdef BCM_TOMAHAWK3_SUPPORT 58105 int 58106 bcm_tomahawk3_udf_pkt_format_add( 58107 int unit, 58108 bcm_udf_id_t udf_id, 58109 bcm_udf_pkt_format_id_t pkt_format_id) 58110 { 58111 return bcm_esw_udf_pkt_format_add(unit, udf_id, pkt_format_id); 58112 } 58113 #endif 58114 58115 #ifdef BCM_TOMAHAWK3_SUPPORT 58116 int 58117 bcm_tomahawk3_udf_pkt_format_create( 58118 int unit, 58119 bcm_udf_pkt_format_options_t options, 58120 bcm_udf_pkt_format_info_t *pkt_format, 58121 bcm_udf_pkt_format_id_t *pkt_format_id) 58122 { 58123 return bcm_esw_udf_pkt_format_create(unit, options, pkt_format, pkt_format_id); 58124 } 58125 #endif 58126 58127 #ifdef BCM_TOMAHAWK3_SUPPORT 58128 int 58129 bcm_tomahawk3_udf_pkt_format_delete( 58130 int unit, 58131 bcm_udf_id_t udf_id, 58132 bcm_udf_pkt_format_id_t pkt_format_id) 58133 { 58134 return bcm_esw_udf_pkt_format_delete(unit, udf_id, pkt_format_id); 58135 } 58136 #endif 58137 58138 #ifdef BCM_TOMAHAWK3_SUPPORT 58139 int 58140 bcm_tomahawk3_udf_pkt_format_delete_all( 58141 int unit, 58142 bcm_udf_id_t udf_id) 58143 { 58144 return bcm_esw_udf_pkt_format_delete_all(unit, udf_id); 58145 } 58146 #endif 58147 58148 #ifdef BCM_TOMAHAWK3_SUPPORT 58149 int 58150 bcm_tomahawk3_udf_pkt_format_destroy( 58151 int unit, 58152 bcm_udf_pkt_format_id_t pkt_format_id) 58153 { 58154 return bcm_esw_udf_pkt_format_destroy(unit, pkt_format_id); 58155 } 58156 #endif 58157 58158 #ifdef BCM_TOMAHAWK3_SUPPORT 58159 int 58160 bcm_tomahawk3_udf_pkt_format_get( 58161 int unit, 58162 bcm_udf_pkt_format_id_t pkt_format_id, 58163 int max, 58164 bcm_udf_id_t *udf_id_list, 58165 int *actual) 58166 { 58167 return bcm_esw_udf_pkt_format_get(unit, pkt_format_id, max, udf_id_list, actual); 58168 } 58169 #endif 58170 58171 #ifdef BCM_TOMAHAWK3_SUPPORT 58172 int 58173 bcm_tomahawk3_udf_pkt_format_get_all( 58174 int unit, 58175 bcm_udf_id_t udf_id, 58176 int max, 58177 bcm_udf_pkt_format_id_t *pkt_format_id_list, 58178 int *actual) 58179 { 58180 return bcm_esw_udf_pkt_format_get_all(unit, udf_id, max, pkt_format_id_list, actual); 58181 } 58182 #endif 58183 58184 #ifdef BCM_TOMAHAWK3_SUPPORT 58185 int 58186 bcm_tomahawk3_udf_pkt_format_info_get( 58187 int unit, 58188 bcm_udf_pkt_format_id_t pkt_format_id, 58189 bcm_udf_pkt_format_info_t *pkt_format) 58190 { 58191 return bcm_esw_udf_pkt_format_info_get(unit, pkt_format_id, pkt_format); 58192 } 58193 #endif 58194 58195 #ifdef BCM_TOMAHAWK3_SUPPORT 58196 int 58197 bcm_tomahawk3_udf_range_checker_chunk_info_get( 58198 int unit, 58199 uint8 *num_chunks, 58200 uint32 *chunk_bmap) 58201 { 58202 return bcm_esw_udf_range_checker_chunk_info_get(unit, num_chunks, chunk_bmap); 58203 } 58204 #endif 58205 58206 #ifdef BCM_TOMAHAWK3_SUPPORT 58207 int 58208 bcm_tomahawk3_vlan_block_get( 58209 int unit, 58210 bcm_vlan_t vlan, 58211 bcm_vlan_block_t *vlan_block) 58212 { 58213 return bcm_esw_vlan_block_get(unit, vlan, vlan_block); 58214 } 58215 #endif 58216 58217 #ifdef BCM_TOMAHAWK3_SUPPORT 58218 int 58219 bcm_tomahawk3_vlan_block_set( 58220 int unit, 58221 bcm_vlan_t vlan, 58222 bcm_vlan_block_t *vlan_block) 58223 { 58224 return bcm_esw_vlan_block_set(unit, vlan, vlan_block); 58225 } 58226 #endif 58227 58228 #ifdef BCM_TOMAHAWK3_SUPPORT 58229 int 58230 bcm_tomahawk3_vlan_create( 58231 int unit, 58232 bcm_vlan_t vid) 58233 { 58234 return bcm_esw_vlan_create(unit, vid); 58235 } 58236 #endif 58237 58238 #ifdef BCM_TOMAHAWK3_SUPPORT 58239 int 58240 bcm_tomahawk3_vlan_default_get( 58241 int unit, 58242 bcm_vlan_t *vid_ptr) 58243 { 58244 return bcm_esw_vlan_default_get(unit, vid_ptr); 58245 } 58246 #endif 58247 58248 #ifdef BCM_TOMAHAWK3_SUPPORT 58249 int 58250 bcm_tomahawk3_vlan_default_set( 58251 int unit, 58252 bcm_vlan_t vid) 58253 { 58254 return bcm_esw_vlan_default_set(unit, vid); 58255 } 58256 #endif 58257 58258 #ifdef BCM_TOMAHAWK3_SUPPORT 58259 int 58260 bcm_tomahawk3_vlan_destroy( 58261 int unit, 58262 bcm_vlan_t vid) 58263 { 58264 return bcm_esw_vlan_destroy(unit, vid); 58265 } 58266 #endif 58267 58268 #ifdef BCM_TOMAHAWK3_SUPPORT 58269 int 58270 bcm_tomahawk3_vlan_destroy_all( 58271 int unit) 58272 { 58273 return bcm_esw_vlan_destroy_all(unit); 58274 } 58275 #endif 58276 58277 int 58278 bcm_tomahawk3_vlan_dtag_add( 58279 int unit, 58280 int port, 58281 bcm_vlan_t old_vid, 58282 bcm_vlan_t new_vid, 58283 int prio) 58284 { 58285 return BCM_E_UNAVAIL; 58286 } 58287 58288 int 58289 bcm_tomahawk3_vlan_dtag_delete( 58290 int unit, 58291 int port, 58292 bcm_vlan_t old_vid) 58293 { 58294 return BCM_E_UNAVAIL; 58295 } 58296 58297 int 58298 bcm_tomahawk3_vlan_dtag_delete_all( 58299 int unit) 58300 { 58301 return BCM_E_UNAVAIL; 58302 } 58303 58304 int 58305 bcm_tomahawk3_vlan_dtag_get( 58306 int unit, 58307 int port, 58308 bcm_vlan_t old_vid, 58309 bcm_vlan_t *new_vid, 58310 int *prio) 58311 { 58312 return BCM_E_UNAVAIL; 58313 } 58314 58315 int 58316 bcm_tomahawk3_vlan_dtag_range_add( 58317 int unit, 58318 int port, 58319 bcm_vlan_t old_vid_low, 58320 bcm_vlan_t old_vid_high, 58321 bcm_vlan_t new_vid, 58322 int int_prio) 58323 { 58324 return BCM_E_UNAVAIL; 58325 } 58326 58327 int 58328 bcm_tomahawk3_vlan_dtag_range_delete( 58329 int unit, 58330 int port, 58331 bcm_vlan_t old_vid_low, 58332 bcm_vlan_t old_vid_high) 58333 { 58334 return BCM_E_UNAVAIL; 58335 } 58336 58337 int 58338 bcm_tomahawk3_vlan_dtag_range_delete_all( 58339 int unit) 58340 { 58341 return BCM_E_UNAVAIL; 58342 } 58343 58344 int 58345 bcm_tomahawk3_vlan_dtag_range_get( 58346 int unit, 58347 int port, 58348 bcm_vlan_t old_vid_low, 58349 bcm_vlan_t old_vid_high, 58350 bcm_vlan_t *new_vid, 58351 int *prio) 58352 { 58353 return BCM_E_UNAVAIL; 58354 } 58355 58356 int 58357 bcm_tomahawk3_vlan_dtag_range_traverse( 58358 int unit, 58359 bcm_vlan_dtag_range_traverse_cb cb, 58360 void *user_data) 58361 { 58362 return BCM_E_UNAVAIL; 58363 } 58364 58365 int 58366 bcm_tomahawk3_vlan_dtag_traverse( 58367 int unit, 58368 bcm_vlan_dtag_traverse_cb cb, 58369 void *user_data) 58370 { 58371 return BCM_E_UNAVAIL; 58372 } 58373 58374 int 58375 bcm_tomahawk3_vlan_gport_info_get( 58376 int unit, 58377 bcm_vlan_gport_info_t *vlan_gport_info) 58378 { 58379 return BCM_E_UNAVAIL; 58380 } 58381 58382 int 58383 bcm_tomahawk3_vlan_ip_action_add( 58384 int unit, 58385 bcm_vlan_ip_t *vlan_ip, 58386 bcm_vlan_action_set_t *action) 58387 { 58388 return BCM_E_UNAVAIL; 58389 } 58390 58391 int 58392 bcm_tomahawk3_vlan_ip_action_delete( 58393 int unit, 58394 bcm_vlan_ip_t *vlan_ip) 58395 { 58396 return BCM_E_UNAVAIL; 58397 } 58398 58399 int 58400 bcm_tomahawk3_vlan_ip_action_delete_all( 58401 int unit) 58402 { 58403 return BCM_E_UNAVAIL; 58404 } 58405 58406 int 58407 bcm_tomahawk3_vlan_ip_action_get( 58408 int unit, 58409 bcm_vlan_ip_t *vlan_ip, 58410 bcm_vlan_action_set_t *action) 58411 { 58412 return BCM_E_UNAVAIL; 58413 } 58414 58415 int 58416 bcm_tomahawk3_vlan_ip_action_traverse( 58417 int unit, 58418 bcm_vlan_ip_action_traverse_cb cb, 58419 void *user_data) 58420 { 58421 return BCM_E_UNAVAIL; 58422 } 58423 58424 int 58425 bcm_tomahawk3_vlan_ip_add( 58426 int unit, 58427 bcm_vlan_ip_t *vlan_ip) 58428 { 58429 return BCM_E_UNAVAIL; 58430 } 58431 58432 int 58433 bcm_tomahawk3_vlan_ip_delete( 58434 int unit, 58435 bcm_vlan_ip_t *vlan_ip) 58436 { 58437 return BCM_E_UNAVAIL; 58438 } 58439 58440 int 58441 bcm_tomahawk3_vlan_ip_delete_all( 58442 int unit) 58443 { 58444 return BCM_E_UNAVAIL; 58445 } 58446 58447 #ifdef BCM_TOMAHAWK3_SUPPORT 58448 int 58449 bcm_tomahawk3_vlan_list( 58450 int unit, 58451 bcm_vlan_data_t **listp, 58452 int *countp) 58453 { 58454 return bcm_esw_vlan_list(unit, listp, countp); 58455 } 58456 #endif 58457 58458 #ifdef BCM_TOMAHAWK3_SUPPORT 58459 int 58460 bcm_tomahawk3_vlan_list_by_pbmp( 58461 int unit, 58462 bcm_pbmp_t ports, 58463 bcm_vlan_data_t **listp, 58464 int *countp) 58465 { 58466 return bcm_esw_vlan_list_by_pbmp(unit, ports, listp, countp); 58467 } 58468 #endif 58469 58470 #ifdef BCM_TOMAHAWK3_SUPPORT 58471 int 58472 bcm_tomahawk3_vlan_list_destroy( 58473 int unit, 58474 bcm_vlan_data_t *list, 58475 int count) 58476 { 58477 return bcm_esw_vlan_list_destroy(unit, list, count); 58478 } 58479 #endif 58480 58481 int 58482 bcm_tomahawk3_vlan_mac_action_add( 58483 int unit, 58484 bcm_mac_t mac, 58485 bcm_vlan_action_set_t *action) 58486 { 58487 return BCM_E_UNAVAIL; 58488 } 58489 58490 int 58491 bcm_tomahawk3_vlan_mac_action_delete( 58492 int unit, 58493 bcm_mac_t mac) 58494 { 58495 return BCM_E_UNAVAIL; 58496 } 58497 58498 int 58499 bcm_tomahawk3_vlan_mac_action_delete_all( 58500 int unit) 58501 { 58502 return BCM_E_UNAVAIL; 58503 } 58504 58505 int 58506 bcm_tomahawk3_vlan_mac_action_get( 58507 int unit, 58508 bcm_mac_t mac, 58509 bcm_vlan_action_set_t *action) 58510 { 58511 return BCM_E_UNAVAIL; 58512 } 58513 58514 int 58515 bcm_tomahawk3_vlan_mac_action_traverse( 58516 int unit, 58517 bcm_vlan_mac_action_traverse_cb cb, 58518 void *user_data) 58519 { 58520 return BCM_E_UNAVAIL; 58521 } 58522 58523 int 58524 bcm_tomahawk3_vlan_mac_add( 58525 int unit, 58526 bcm_mac_t mac, 58527 bcm_vlan_t vid, 58528 int prio) 58529 { 58530 return BCM_E_UNAVAIL; 58531 } 58532 58533 int 58534 bcm_tomahawk3_vlan_mac_delete( 58535 int unit, 58536 bcm_mac_t mac) 58537 { 58538 return BCM_E_UNAVAIL; 58539 } 58540 58541 int 58542 bcm_tomahawk3_vlan_mac_delete_all( 58543 int unit) 58544 { 58545 return BCM_E_UNAVAIL; 58546 } 58547 58548 #ifdef BCM_TOMAHAWK3_SUPPORT 58549 int 58550 bcm_tomahawk3_vlan_match_action_add( 58551 int unit, 58552 uint32 options, 58553 bcm_vlan_match_info_t *match_info, 58554 bcm_vlan_action_set_t *action_set) 58555 { 58556 return bcm_esw_vlan_match_action_add(unit, options, match_info, action_set); 58557 } 58558 #endif 58559 58560 #ifdef BCM_TOMAHAWK3_SUPPORT 58561 int 58562 bcm_tomahawk3_vlan_match_action_delete( 58563 int unit, 58564 bcm_vlan_match_info_t *match_info) 58565 { 58566 return bcm_esw_vlan_match_action_delete(unit, match_info); 58567 } 58568 #endif 58569 58570 #ifdef BCM_TOMAHAWK3_SUPPORT 58571 int 58572 bcm_tomahawk3_vlan_match_action_delete_all( 58573 int unit, 58574 bcm_vlan_match_t match) 58575 { 58576 return bcm_esw_vlan_match_action_delete_all(unit, match); 58577 } 58578 #endif 58579 58580 #ifdef BCM_TOMAHAWK3_SUPPORT 58581 int 58582 bcm_tomahawk3_vlan_match_action_get( 58583 int unit, 58584 bcm_vlan_match_info_t *match_info, 58585 bcm_vlan_action_set_t *action_set) 58586 { 58587 return bcm_esw_vlan_match_action_get(unit, match_info, action_set); 58588 } 58589 #endif 58590 58591 #ifdef BCM_TOMAHAWK3_SUPPORT 58592 int 58593 bcm_tomahawk3_vlan_match_action_multi_get( 58594 int unit, 58595 bcm_vlan_match_t match, 58596 int size, 58597 bcm_vlan_match_info_t *match_info_array, 58598 bcm_vlan_action_set_t *action_set_array, 58599 int *count) 58600 { 58601 return bcm_esw_vlan_match_action_multi_get(unit, match, size, match_info_array, action_set_array, count); 58602 } 58603 #endif 58604 58605 #ifdef BCM_TOMAHAWK3_SUPPORT 58606 int 58607 bcm_tomahawk3_vlan_mcast_flood_get( 58608 int unit, 58609 bcm_vlan_t vlan, 58610 bcm_vlan_mcast_flood_t *mode) 58611 { 58612 return bcm_esw_vlan_mcast_flood_get(unit, vlan, mode); 58613 } 58614 #endif 58615 58616 #ifdef BCM_TOMAHAWK3_SUPPORT 58617 int 58618 bcm_tomahawk3_vlan_mcast_flood_set( 58619 int unit, 58620 bcm_vlan_t vlan, 58621 bcm_vlan_mcast_flood_t mode) 58622 { 58623 return bcm_esw_vlan_mcast_flood_set(unit, vlan, mode); 58624 } 58625 #endif 58626 58627 int 58628 bcm_tomahawk3_vlan_policer_get( 58629 int unit, 58630 bcm_vlan_t vlan, 58631 bcm_policer_t *policer_id) 58632 { 58633 return BCM_E_UNAVAIL; 58634 } 58635 58636 int 58637 bcm_tomahawk3_vlan_policer_set( 58638 int unit, 58639 bcm_vlan_t vlan, 58640 bcm_policer_t policer_id) 58641 { 58642 return BCM_E_UNAVAIL; 58643 } 58644 58645 #ifdef BCM_TOMAHAWK3_SUPPORT 58646 int 58647 bcm_tomahawk3_vlan_port_create( 58648 int unit, 58649 bcm_vlan_port_t *vlan_port) 58650 { 58651 return bcm_esw_vlan_port_create(unit, vlan_port); 58652 } 58653 #endif 58654 58655 #ifdef BCM_TOMAHAWK3_SUPPORT 58656 int 58657 bcm_tomahawk3_vlan_port_destroy( 58658 int unit, 58659 bcm_gport_t gport) 58660 { 58661 return bcm_esw_vlan_port_destroy(unit, gport); 58662 } 58663 #endif 58664 58665 #ifdef BCM_TOMAHAWK3_SUPPORT 58666 int 58667 bcm_tomahawk3_vlan_port_find( 58668 int unit, 58669 bcm_vlan_port_t *vlan_port) 58670 { 58671 return bcm_esw_vlan_port_find(unit, vlan_port); 58672 } 58673 #endif 58674 58675 #ifdef BCM_TOMAHAWK3_SUPPORT 58676 int 58677 bcm_tomahawk3_vlan_port_get( 58678 int unit, 58679 bcm_vlan_t vid, 58680 bcm_pbmp_t *pbmp, 58681 bcm_pbmp_t *ubmp) 58682 { 58683 return bcm_esw_vlan_port_get(unit, vid, pbmp, ubmp); 58684 } 58685 #endif 58686 58687 #ifdef BCM_TOMAHAWK3_SUPPORT 58688 int 58689 bcm_tomahawk3_vlan_port_protocol_action_add( 58690 int unit, 58691 bcm_port_t port, 58692 bcm_port_frametype_t frame, 58693 bcm_port_ethertype_t ether, 58694 bcm_vlan_action_set_t *action) 58695 { 58696 return bcm_esw_vlan_port_protocol_action_add(unit, port, frame, ether, action); 58697 } 58698 #endif 58699 58700 #ifdef BCM_TOMAHAWK3_SUPPORT 58701 int 58702 bcm_tomahawk3_vlan_port_protocol_action_delete( 58703 int unit, 58704 bcm_port_t port, 58705 bcm_port_frametype_t frame, 58706 bcm_port_ethertype_t ether) 58707 { 58708 return bcm_esw_vlan_port_protocol_action_delete(unit, port, frame, ether); 58709 } 58710 #endif 58711 58712 #ifdef BCM_TOMAHAWK3_SUPPORT 58713 int 58714 bcm_tomahawk3_vlan_port_protocol_action_delete_all( 58715 int unit, 58716 bcm_port_t port) 58717 { 58718 return bcm_esw_vlan_port_protocol_action_delete_all(unit, port); 58719 } 58720 #endif 58721 58722 #ifdef BCM_TOMAHAWK3_SUPPORT 58723 int 58724 bcm_tomahawk3_vlan_port_protocol_action_get( 58725 int unit, 58726 bcm_port_t port, 58727 bcm_port_frametype_t frame, 58728 bcm_port_ethertype_t ether, 58729 bcm_vlan_action_set_t *action) 58730 { 58731 return bcm_esw_vlan_port_protocol_action_get(unit, port, frame, ether, action); 58732 } 58733 #endif 58734 58735 #ifdef BCM_TOMAHAWK3_SUPPORT 58736 int 58737 bcm_tomahawk3_vlan_port_protocol_action_traverse( 58738 int unit, 58739 bcm_vlan_port_protocol_action_traverse_cb cb, 58740 void *user_data) 58741 { 58742 return bcm_esw_vlan_port_protocol_action_traverse(unit, cb, user_data); 58743 } 58744 #endif 58745 58746 int 58747 bcm_tomahawk3_vlan_port_stat_multi_get( 58748 int unit, 58749 bcm_vlan_t vlan, 58750 bcm_port_t port, 58751 bcm_cos_t cos, 58752 int nstat, 58753 bcm_vlan_stat_t *stat_arr, 58754 uint64 *value_arr) 58755 { 58756 return BCM_E_UNAVAIL; 58757 } 58758 58759 int 58760 bcm_tomahawk3_vlan_port_stat_multi_get32( 58761 int unit, 58762 bcm_vlan_t vlan, 58763 bcm_port_t port, 58764 bcm_cos_t cos, 58765 int nstat, 58766 bcm_vlan_stat_t *stat_arr, 58767 uint32 *value_arr) 58768 { 58769 return BCM_E_UNAVAIL; 58770 } 58771 58772 int 58773 bcm_tomahawk3_vlan_port_stat_multi_set( 58774 int unit, 58775 bcm_vlan_t vlan, 58776 bcm_port_t port, 58777 bcm_cos_t cos, 58778 int nstat, 58779 bcm_vlan_stat_t *stat_arr, 58780 uint64 *value_arr) 58781 { 58782 return BCM_E_UNAVAIL; 58783 } 58784 58785 int 58786 bcm_tomahawk3_vlan_port_stat_multi_set32( 58787 int unit, 58788 bcm_vlan_t vlan, 58789 bcm_port_t port, 58790 bcm_cos_t cos, 58791 int nstat, 58792 bcm_vlan_stat_t *stat_arr, 58793 uint32 *value_arr) 58794 { 58795 return BCM_E_UNAVAIL; 58796 } 58797 58798 int 58799 bcm_tomahawk3_vlan_port_translation_get( 58800 int unit, 58801 bcm_vlan_port_translation_t *vlan_port_translation) 58802 { 58803 return BCM_E_UNAVAIL; 58804 } 58805 58806 int 58807 bcm_tomahawk3_vlan_port_translation_set( 58808 int unit, 58809 bcm_vlan_port_translation_t *vlan_port_translation) 58810 { 58811 return BCM_E_UNAVAIL; 58812 } 58813 58814 #ifdef BCM_TOMAHAWK3_SUPPORT 58815 int 58816 bcm_tomahawk3_vlan_port_traverse( 58817 int unit, 58818 bcm_vlan_port_traverse_info_t *additional_info, 58819 bcm_vlan_port_traverse_cb trav_fn, 58820 void *user_data) 58821 { 58822 return bcm_esw_vlan_port_traverse(unit, additional_info, trav_fn, user_data); 58823 } 58824 #endif 58825 58826 int 58827 bcm_tomahawk3_vlan_queue_map_attach( 58828 int unit, 58829 bcm_vlan_t vlan, 58830 int qmid) 58831 { 58832 return BCM_E_UNAVAIL; 58833 } 58834 58835 int 58836 bcm_tomahawk3_vlan_queue_map_attach_get( 58837 int unit, 58838 bcm_vlan_t vlan, 58839 int *qmid) 58840 { 58841 return BCM_E_UNAVAIL; 58842 } 58843 58844 int 58845 bcm_tomahawk3_vlan_queue_map_create( 58846 int unit, 58847 uint32 flags, 58848 int *qmid) 58849 { 58850 return BCM_E_UNAVAIL; 58851 } 58852 58853 int 58854 bcm_tomahawk3_vlan_queue_map_destroy( 58855 int unit, 58856 int qmid) 58857 { 58858 return BCM_E_UNAVAIL; 58859 } 58860 58861 int 58862 bcm_tomahawk3_vlan_queue_map_destroy_all( 58863 int unit) 58864 { 58865 return BCM_E_UNAVAIL; 58866 } 58867 58868 int 58869 bcm_tomahawk3_vlan_queue_map_detach( 58870 int unit, 58871 bcm_vlan_t vlan) 58872 { 58873 return BCM_E_UNAVAIL; 58874 } 58875 58876 int 58877 bcm_tomahawk3_vlan_queue_map_detach_all( 58878 int unit) 58879 { 58880 return BCM_E_UNAVAIL; 58881 } 58882 58883 int 58884 bcm_tomahawk3_vlan_queue_map_get( 58885 int unit, 58886 int qmid, 58887 int pkt_pri, 58888 int cfi, 58889 int *queue, 58890 int *color) 58891 { 58892 return BCM_E_UNAVAIL; 58893 } 58894 58895 int 58896 bcm_tomahawk3_vlan_queue_map_set( 58897 int unit, 58898 int qmid, 58899 int pkt_pri, 58900 int cfi, 58901 int queue, 58902 int color) 58903 { 58904 return BCM_E_UNAVAIL; 58905 } 58906 58907 #ifdef BCM_TOMAHAWK3_SUPPORT 58908 int 58909 bcm_tomahawk3_vlan_stat_attach( 58910 int unit, 58911 bcm_vlan_t vlan, 58912 uint32 stat_counter_id) 58913 { 58914 return bcm_esw_vlan_stat_attach(unit, vlan, stat_counter_id); 58915 } 58916 #endif 58917 58918 #ifdef BCM_TOMAHAWK3_SUPPORT 58919 int 58920 bcm_tomahawk3_vlan_stat_counter_get( 58921 int unit, 58922 bcm_vlan_t vlan, 58923 bcm_vlan_stat_t stat, 58924 uint32 num_entries, 58925 uint32 *counter_indexes, 58926 bcm_stat_value_t *counter_values) 58927 { 58928 return bcm_esw_vlan_stat_counter_get(unit, vlan, stat, num_entries, counter_indexes, counter_values); 58929 } 58930 #endif 58931 58932 #ifdef BCM_TOMAHAWK3_SUPPORT 58933 int 58934 bcm_tomahawk3_vlan_stat_counter_set( 58935 int unit, 58936 bcm_vlan_t vlan, 58937 bcm_vlan_stat_t stat, 58938 uint32 num_entries, 58939 uint32 *counter_indexes, 58940 bcm_stat_value_t *counter_values) 58941 { 58942 return bcm_esw_vlan_stat_counter_set(unit, vlan, stat, num_entries, counter_indexes, counter_values); 58943 } 58944 #endif 58945 58946 #ifdef BCM_TOMAHAWK3_SUPPORT 58947 int 58948 bcm_tomahawk3_vlan_stat_counter_sync_get( 58949 int unit, 58950 bcm_vlan_t vlan, 58951 bcm_vlan_stat_t stat, 58952 uint32 num_entries, 58953 uint32 *counter_indexes, 58954 bcm_stat_value_t *counter_values) 58955 { 58956 return bcm_esw_vlan_stat_counter_sync_get(unit, vlan, stat, num_entries, counter_indexes, counter_values); 58957 } 58958 #endif 58959 58960 #ifdef BCM_TOMAHAWK3_SUPPORT 58961 int 58962 bcm_tomahawk3_vlan_stat_detach( 58963 int unit, 58964 bcm_vlan_t vlan) 58965 { 58966 return bcm_esw_vlan_stat_detach(unit, vlan); 58967 } 58968 #endif 58969 58970 #ifdef BCM_TOMAHAWK3_SUPPORT 58971 int 58972 bcm_tomahawk3_vlan_stat_detach_with_id( 58973 int unit, 58974 bcm_vlan_t vlan, 58975 uint32 stat_counter_id) 58976 { 58977 return bcm_esw_vlan_stat_detach_with_id(unit, vlan, stat_counter_id); 58978 } 58979 #endif 58980 58981 #ifdef BCM_TOMAHAWK3_SUPPORT 58982 int 58983 bcm_tomahawk3_vlan_stat_enable_set( 58984 int unit, 58985 bcm_vlan_t vlan, 58986 int enable) 58987 { 58988 return bcm_esw_vlan_stat_enable_set(unit, vlan, enable); 58989 } 58990 #endif 58991 58992 #ifdef BCM_TOMAHAWK3_SUPPORT 58993 int 58994 bcm_tomahawk3_vlan_stat_get( 58995 int unit, 58996 bcm_vlan_t vlan, 58997 bcm_cos_t cos, 58998 bcm_vlan_stat_t stat, 58999 uint64 *val) 59000 { 59001 return bcm_esw_vlan_stat_get(unit, vlan, cos, stat, val); 59002 } 59003 #endif 59004 59005 #ifdef BCM_TOMAHAWK3_SUPPORT 59006 int 59007 bcm_tomahawk3_vlan_stat_get32( 59008 int unit, 59009 bcm_vlan_t vlan, 59010 bcm_cos_t cos, 59011 bcm_vlan_stat_t stat, 59012 uint32 *val) 59013 { 59014 return bcm_esw_vlan_stat_get32(unit, vlan, cos, stat, val); 59015 } 59016 #endif 59017 59018 #ifdef BCM_TOMAHAWK3_SUPPORT 59019 int 59020 bcm_tomahawk3_vlan_stat_id_get( 59021 int unit, 59022 bcm_vlan_t vlan, 59023 bcm_vlan_stat_t stat, 59024 uint32 *stat_counter_id) 59025 { 59026 return bcm_esw_vlan_stat_id_get(unit, vlan, stat, stat_counter_id); 59027 } 59028 #endif 59029 59030 #ifdef BCM_TOMAHAWK3_SUPPORT 59031 int 59032 bcm_tomahawk3_vlan_stat_multi_get( 59033 int unit, 59034 bcm_vlan_t vlan, 59035 bcm_cos_t cos, 59036 int nstat, 59037 bcm_vlan_stat_t *stat_arr, 59038 uint64 *value_arr) 59039 { 59040 return bcm_esw_vlan_stat_multi_get(unit, vlan, cos, nstat, stat_arr, value_arr); 59041 } 59042 #endif 59043 59044 #ifdef BCM_TOMAHAWK3_SUPPORT 59045 int 59046 bcm_tomahawk3_vlan_stat_multi_get32( 59047 int unit, 59048 bcm_vlan_t vlan, 59049 bcm_cos_t cos, 59050 int nstat, 59051 bcm_vlan_stat_t *stat_arr, 59052 uint32 *value_arr) 59053 { 59054 return bcm_esw_vlan_stat_multi_get32(unit, vlan, cos, nstat, stat_arr, value_arr); 59055 } 59056 #endif 59057 59058 #ifdef BCM_TOMAHAWK3_SUPPORT 59059 int 59060 bcm_tomahawk3_vlan_stat_multi_set( 59061 int unit, 59062 bcm_vlan_t vlan, 59063 bcm_cos_t cos, 59064 int nstat, 59065 bcm_vlan_stat_t *stat_arr, 59066 uint64 *value_arr) 59067 { 59068 return bcm_esw_vlan_stat_multi_set(unit, vlan, cos, nstat, stat_arr, value_arr); 59069 } 59070 #endif 59071 59072 #ifdef BCM_TOMAHAWK3_SUPPORT 59073 int 59074 bcm_tomahawk3_vlan_stat_multi_set32( 59075 int unit, 59076 bcm_vlan_t vlan, 59077 bcm_cos_t cos, 59078 int nstat, 59079 bcm_vlan_stat_t *stat_arr, 59080 uint32 *value_arr) 59081 { 59082 return bcm_esw_vlan_stat_multi_set32(unit, vlan, cos, nstat, stat_arr, value_arr); 59083 } 59084 #endif 59085 59086 #ifdef BCM_TOMAHAWK3_SUPPORT 59087 int 59088 bcm_tomahawk3_vlan_stat_set( 59089 int unit, 59090 bcm_vlan_t vlan, 59091 bcm_cos_t cos, 59092 bcm_vlan_stat_t stat, 59093 uint64 val) 59094 { 59095 return bcm_esw_vlan_stat_set(unit, vlan, cos, stat, val); 59096 } 59097 #endif 59098 59099 #ifdef BCM_TOMAHAWK3_SUPPORT 59100 int 59101 bcm_tomahawk3_vlan_stat_set32( 59102 int unit, 59103 bcm_vlan_t vlan, 59104 bcm_cos_t cos, 59105 bcm_vlan_stat_t stat, 59106 uint32 val) 59107 { 59108 return bcm_esw_vlan_stat_set32(unit, vlan, cos, stat, val); 59109 } 59110 #endif 59111 59112 #ifdef BCM_TOMAHAWK3_SUPPORT 59113 int 59114 bcm_tomahawk3_vlan_stat_sync_get( 59115 int unit, 59116 bcm_vlan_t vlan, 59117 bcm_cos_t cos, 59118 bcm_vlan_stat_t stat, 59119 uint64 *val) 59120 { 59121 return bcm_esw_vlan_stat_sync_get(unit, vlan, cos, stat, val); 59122 } 59123 #endif 59124 59125 #ifdef BCM_TOMAHAWK3_SUPPORT 59126 int 59127 bcm_tomahawk3_vlan_stat_sync_get32( 59128 int unit, 59129 bcm_vlan_t vlan, 59130 bcm_cos_t cos, 59131 bcm_vlan_stat_t stat, 59132 uint32 *val) 59133 { 59134 return bcm_esw_vlan_stat_sync_get32(unit, vlan, cos, stat, val); 59135 } 59136 #endif 59137 59138 #ifdef BCM_TOMAHAWK3_SUPPORT 59139 int 59140 bcm_tomahawk3_vlan_stg_get( 59141 int unit, 59142 bcm_vlan_t vid, 59143 bcm_stg_t *stg_ptr) 59144 { 59145 return bcm_esw_vlan_stg_get(unit, vid, stg_ptr); 59146 } 59147 #endif 59148 59149 #ifdef BCM_TOMAHAWK3_SUPPORT 59150 int 59151 bcm_tomahawk3_vlan_stg_set( 59152 int unit, 59153 bcm_vlan_t vid, 59154 bcm_stg_t stg) 59155 { 59156 return bcm_esw_vlan_stg_set(unit, vid, stg); 59157 } 59158 #endif 59159 59160 #ifdef BCM_TOMAHAWK3_SUPPORT 59161 int 59162 bcm_tomahawk3_vlan_stp_get( 59163 int unit, 59164 bcm_vlan_t vid, 59165 bcm_port_t port, 59166 int *stp_state) 59167 { 59168 return bcm_esw_vlan_stp_get(unit, vid, port, stp_state); 59169 } 59170 #endif 59171 59172 #ifdef BCM_TOMAHAWK3_SUPPORT 59173 int 59174 bcm_tomahawk3_vlan_stp_set( 59175 int unit, 59176 bcm_vlan_t vid, 59177 bcm_port_t port, 59178 int stp_state) 59179 { 59180 return bcm_esw_vlan_stp_set(unit, vid, port, stp_state); 59181 } 59182 #endif 59183 59184 int 59185 bcm_tomahawk3_vlan_translate_action_add( 59186 int unit, 59187 bcm_gport_t port, 59188 bcm_vlan_translate_key_t key_type, 59189 bcm_vlan_t outer_vlan, 59190 bcm_vlan_t inner_vlan, 59191 bcm_vlan_action_set_t *action) 59192 { 59193 return BCM_E_UNAVAIL; 59194 } 59195 59196 int 59197 bcm_tomahawk3_vlan_translate_action_class_get( 59198 int unit, 59199 bcm_vlan_translate_action_class_t *action_class) 59200 { 59201 return BCM_E_UNAVAIL; 59202 } 59203 59204 int 59205 bcm_tomahawk3_vlan_translate_action_class_set( 59206 int unit, 59207 bcm_vlan_translate_action_class_t *action_class) 59208 { 59209 return BCM_E_UNAVAIL; 59210 } 59211 59212 int 59213 bcm_tomahawk3_vlan_translate_action_create( 59214 int unit, 59215 bcm_gport_t port, 59216 bcm_vlan_translate_key_t key_type, 59217 bcm_vlan_t outer_vlan, 59218 bcm_vlan_t inner_vlan, 59219 bcm_vlan_action_set_t *action) 59220 { 59221 return BCM_E_UNAVAIL; 59222 } 59223 59224 int 59225 bcm_tomahawk3_vlan_translate_action_delete( 59226 int unit, 59227 bcm_gport_t port, 59228 bcm_vlan_translate_key_t key_type, 59229 bcm_vlan_t outer_vlan, 59230 bcm_vlan_t inner_vlan) 59231 { 59232 return BCM_E_UNAVAIL; 59233 } 59234 59235 int 59236 bcm_tomahawk3_vlan_translate_action_get( 59237 int unit, 59238 bcm_gport_t port, 59239 bcm_vlan_translate_key_t key_type, 59240 bcm_vlan_t outer_vlan, 59241 bcm_vlan_t inner_vlan, 59242 bcm_vlan_action_set_t *action) 59243 { 59244 return BCM_E_UNAVAIL; 59245 } 59246 59247 int 59248 bcm_tomahawk3_vlan_translate_action_id_create( 59249 int unit, 59250 uint32 flags, 59251 int *action_id) 59252 { 59253 return BCM_E_UNAVAIL; 59254 } 59255 59256 int 59257 bcm_tomahawk3_vlan_translate_action_id_destroy( 59258 int unit, 59259 uint32 flags, 59260 int action_id) 59261 { 59262 return BCM_E_UNAVAIL; 59263 } 59264 59265 int 59266 bcm_tomahawk3_vlan_translate_action_id_destroy_all( 59267 int unit, 59268 uint32 flags) 59269 { 59270 return BCM_E_UNAVAIL; 59271 } 59272 59273 int 59274 bcm_tomahawk3_vlan_translate_action_id_get( 59275 int unit, 59276 uint32 flags, 59277 int action_id, 59278 bcm_vlan_action_set_t *action) 59279 { 59280 return BCM_E_UNAVAIL; 59281 } 59282 59283 int 59284 bcm_tomahawk3_vlan_translate_action_id_set( 59285 int unit, 59286 uint32 flags, 59287 int action_id, 59288 bcm_vlan_action_set_t *action) 59289 { 59290 return BCM_E_UNAVAIL; 59291 } 59292 59293 int 59294 bcm_tomahawk3_vlan_translate_action_range_add( 59295 int unit, 59296 bcm_gport_t port, 59297 bcm_vlan_t outer_vlan_low, 59298 bcm_vlan_t outer_vlan_high, 59299 bcm_vlan_t inner_vlan_low, 59300 bcm_vlan_t inner_vlan_high, 59301 bcm_vlan_action_set_t *action) 59302 { 59303 return BCM_E_UNAVAIL; 59304 } 59305 59306 int 59307 bcm_tomahawk3_vlan_translate_action_range_delete( 59308 int unit, 59309 bcm_gport_t port, 59310 bcm_vlan_t outer_vlan_low, 59311 bcm_vlan_t outer_vlan_high, 59312 bcm_vlan_t inner_vlan_low, 59313 bcm_vlan_t inner_vlan_high) 59314 { 59315 return BCM_E_UNAVAIL; 59316 } 59317 59318 int 59319 bcm_tomahawk3_vlan_translate_action_range_delete_all( 59320 int unit) 59321 { 59322 return BCM_E_UNAVAIL; 59323 } 59324 59325 int 59326 bcm_tomahawk3_vlan_translate_action_range_get( 59327 int unit, 59328 bcm_gport_t port, 59329 bcm_vlan_t outer_vlan_low, 59330 bcm_vlan_t outer_vlan_high, 59331 bcm_vlan_t inner_vlan_low, 59332 bcm_vlan_t inner_vlan_high, 59333 bcm_vlan_action_set_t *action) 59334 { 59335 return BCM_E_UNAVAIL; 59336 } 59337 59338 int 59339 bcm_tomahawk3_vlan_translate_action_range_traverse( 59340 int unit, 59341 bcm_vlan_translate_action_range_traverse_cb cb, 59342 void *user_data) 59343 { 59344 return BCM_E_UNAVAIL; 59345 } 59346 59347 int 59348 bcm_tomahawk3_vlan_translate_action_traverse( 59349 int unit, 59350 bcm_vlan_translate_action_traverse_cb cb, 59351 void *user_data) 59352 { 59353 return BCM_E_UNAVAIL; 59354 } 59355 59356 int 59357 bcm_tomahawk3_vlan_translate_add( 59358 int unit, 59359 int port, 59360 bcm_vlan_t old_vid, 59361 bcm_vlan_t new_vid, 59362 int prio) 59363 { 59364 return BCM_E_UNAVAIL; 59365 } 59366 59367 int 59368 bcm_tomahawk3_vlan_translate_delete( 59369 int unit, 59370 int port, 59371 bcm_vlan_t old_vid) 59372 { 59373 return BCM_E_UNAVAIL; 59374 } 59375 59376 int 59377 bcm_tomahawk3_vlan_translate_delete_all( 59378 int unit) 59379 { 59380 return BCM_E_UNAVAIL; 59381 } 59382 59383 int 59384 bcm_tomahawk3_vlan_translate_egress_action_add( 59385 int unit, 59386 int port_class, 59387 bcm_vlan_t outer_vlan, 59388 bcm_vlan_t inner_vlan, 59389 bcm_vlan_action_set_t *action) 59390 { 59391 return BCM_E_UNAVAIL; 59392 } 59393 59394 int 59395 bcm_tomahawk3_vlan_translate_egress_action_delete( 59396 int unit, 59397 int port_class, 59398 bcm_vlan_t outer_vlan, 59399 bcm_vlan_t inner_vlan) 59400 { 59401 return BCM_E_UNAVAIL; 59402 } 59403 59404 int 59405 bcm_tomahawk3_vlan_translate_egress_action_get( 59406 int unit, 59407 int port_class, 59408 bcm_vlan_t outer_vlan, 59409 bcm_vlan_t inner_vlan, 59410 bcm_vlan_action_set_t *action) 59411 { 59412 return BCM_E_UNAVAIL; 59413 } 59414 59415 int 59416 bcm_tomahawk3_vlan_translate_egress_action_traverse( 59417 int unit, 59418 bcm_vlan_translate_egress_action_traverse_cb cb, 59419 void *user_data) 59420 { 59421 return BCM_E_UNAVAIL; 59422 } 59423 59424 int 59425 bcm_tomahawk3_vlan_translate_egress_add( 59426 int unit, 59427 int port, 59428 bcm_vlan_t old_vid, 59429 bcm_vlan_t new_vid, 59430 int prio) 59431 { 59432 return BCM_E_UNAVAIL; 59433 } 59434 59435 int 59436 bcm_tomahawk3_vlan_translate_egress_delete( 59437 int unit, 59438 int port, 59439 bcm_vlan_t old_vid) 59440 { 59441 return BCM_E_UNAVAIL; 59442 } 59443 59444 int 59445 bcm_tomahawk3_vlan_translate_egress_delete_all( 59446 int unit) 59447 { 59448 return BCM_E_UNAVAIL; 59449 } 59450 59451 int 59452 bcm_tomahawk3_vlan_translate_egress_get( 59453 int unit, 59454 int port, 59455 bcm_vlan_t old_vid, 59456 bcm_vlan_t *new_vid, 59457 int *prio) 59458 { 59459 return BCM_E_UNAVAIL; 59460 } 59461 59462 int 59463 bcm_tomahawk3_vlan_translate_egress_gport_action_add( 59464 int unit, 59465 bcm_gport_t port, 59466 bcm_vlan_t outer_vlan, 59467 bcm_vlan_t inner_vlan, 59468 bcm_vlan_action_set_t *action) 59469 { 59470 return BCM_E_UNAVAIL; 59471 } 59472 59473 int 59474 bcm_tomahawk3_vlan_translate_egress_gport_action_delete( 59475 int unit, 59476 bcm_gport_t port, 59477 bcm_vlan_t outer_vlan, 59478 bcm_vlan_t inner_vlan) 59479 { 59480 return BCM_E_UNAVAIL; 59481 } 59482 59483 int 59484 bcm_tomahawk3_vlan_translate_egress_gport_action_get( 59485 int unit, 59486 bcm_gport_t port, 59487 bcm_vlan_t outer_vlan, 59488 bcm_vlan_t inner_vlan, 59489 bcm_vlan_action_set_t *action) 59490 { 59491 return BCM_E_UNAVAIL; 59492 } 59493 59494 int 59495 bcm_tomahawk3_vlan_translate_egress_stat_attach( 59496 int unit, 59497 int port_class, 59498 bcm_vlan_t outer_vlan, 59499 bcm_vlan_t inner_vlan, 59500 uint32 stat_counter_id) 59501 { 59502 return BCM_E_UNAVAIL; 59503 } 59504 59505 int 59506 bcm_tomahawk3_vlan_translate_egress_stat_counter_get( 59507 int unit, 59508 int port_class, 59509 bcm_vlan_t outer_vlan, 59510 bcm_vlan_t inner_vlan, 59511 bcm_vlan_stat_t stat, 59512 uint32 num_entries, 59513 uint32 *counter_indexes, 59514 bcm_stat_value_t *counter_values) 59515 { 59516 return BCM_E_UNAVAIL; 59517 } 59518 59519 int 59520 bcm_tomahawk3_vlan_translate_egress_stat_counter_set( 59521 int unit, 59522 int port_class, 59523 bcm_vlan_t outer_vlan, 59524 bcm_vlan_t inner_vlan, 59525 bcm_vlan_stat_t stat, 59526 uint32 num_entries, 59527 uint32 *counter_indexes, 59528 bcm_stat_value_t *counter_values) 59529 { 59530 return BCM_E_UNAVAIL; 59531 } 59532 59533 int 59534 bcm_tomahawk3_vlan_translate_egress_stat_counter_sync_get( 59535 int unit, 59536 int port_class, 59537 bcm_vlan_t outer_vlan, 59538 bcm_vlan_t inner_vlan, 59539 bcm_vlan_stat_t stat, 59540 uint32 num_entries, 59541 uint32 *counter_indexes, 59542 bcm_stat_value_t *counter_values) 59543 { 59544 return BCM_E_UNAVAIL; 59545 } 59546 59547 int 59548 bcm_tomahawk3_vlan_translate_egress_stat_detach( 59549 int unit, 59550 int port_class, 59551 bcm_vlan_t outer_vlan, 59552 bcm_vlan_t inner_vlan) 59553 { 59554 return BCM_E_UNAVAIL; 59555 } 59556 59557 int 59558 bcm_tomahawk3_vlan_translate_egress_stat_enable_set( 59559 int unit, 59560 int port_class, 59561 bcm_vlan_t outer_vlan, 59562 bcm_vlan_t inner_vlan, 59563 int enable) 59564 { 59565 return BCM_E_UNAVAIL; 59566 } 59567 59568 int 59569 bcm_tomahawk3_vlan_translate_egress_stat_get( 59570 int unit, 59571 int port_class, 59572 bcm_vlan_t outer_vlan, 59573 bcm_vlan_t inner_vlan, 59574 bcm_vlan_stat_t stat, 59575 uint64 *val) 59576 { 59577 return BCM_E_UNAVAIL; 59578 } 59579 59580 int 59581 bcm_tomahawk3_vlan_translate_egress_stat_get32( 59582 int unit, 59583 int port_class, 59584 bcm_vlan_t outer_vlan, 59585 bcm_vlan_t inner_vlan, 59586 bcm_vlan_stat_t stat, 59587 uint32 *val) 59588 { 59589 return BCM_E_UNAVAIL; 59590 } 59591 59592 int 59593 bcm_tomahawk3_vlan_translate_egress_stat_id_get( 59594 int unit, 59595 int port_class, 59596 bcm_vlan_t outer_vlan, 59597 bcm_vlan_t inner_vlan, 59598 bcm_vlan_stat_t stat, 59599 uint32 *stat_counter_id) 59600 { 59601 return BCM_E_UNAVAIL; 59602 } 59603 59604 int 59605 bcm_tomahawk3_vlan_translate_egress_stat_multi_get( 59606 int unit, 59607 int port_class, 59608 bcm_vlan_t outer_vlan, 59609 bcm_vlan_t inner_vlan, 59610 int nstat, 59611 bcm_vlan_stat_t *stat_arr, 59612 uint64 *value_arr) 59613 { 59614 return BCM_E_UNAVAIL; 59615 } 59616 59617 int 59618 bcm_tomahawk3_vlan_translate_egress_stat_multi_get32( 59619 int unit, 59620 int port_class, 59621 bcm_vlan_t outer_vlan, 59622 bcm_vlan_t inner_vlan, 59623 int nstat, 59624 bcm_vlan_stat_t *stat_arr, 59625 uint32 *value_arr) 59626 { 59627 return BCM_E_UNAVAIL; 59628 } 59629 59630 int 59631 bcm_tomahawk3_vlan_translate_egress_stat_multi_set( 59632 int unit, 59633 int port_class, 59634 bcm_vlan_t outer_vlan, 59635 bcm_vlan_t inner_vlan, 59636 int nstat, 59637 bcm_vlan_stat_t *stat_arr, 59638 uint64 *value_arr) 59639 { 59640 return BCM_E_UNAVAIL; 59641 } 59642 59643 int 59644 bcm_tomahawk3_vlan_translate_egress_stat_multi_set32( 59645 int unit, 59646 int port_class, 59647 bcm_vlan_t outer_vlan, 59648 bcm_vlan_t inner_vlan, 59649 int nstat, 59650 bcm_vlan_stat_t *stat_arr, 59651 uint32 *value_arr) 59652 { 59653 return BCM_E_UNAVAIL; 59654 } 59655 59656 int 59657 bcm_tomahawk3_vlan_translate_egress_stat_set( 59658 int unit, 59659 int port_class, 59660 bcm_vlan_t outer_vlan, 59661 bcm_vlan_t inner_vlan, 59662 bcm_vlan_stat_t stat, 59663 uint64 val) 59664 { 59665 return BCM_E_UNAVAIL; 59666 } 59667 59668 int 59669 bcm_tomahawk3_vlan_translate_egress_stat_set32( 59670 int unit, 59671 int port_class, 59672 bcm_vlan_t outer_vlan, 59673 bcm_vlan_t inner_vlan, 59674 bcm_vlan_stat_t stat, 59675 uint32 val) 59676 { 59677 return BCM_E_UNAVAIL; 59678 } 59679 59680 int 59681 bcm_tomahawk3_vlan_translate_egress_stat_sync_get( 59682 int unit, 59683 int port_class, 59684 bcm_vlan_t outer_vlan, 59685 bcm_vlan_t inner_vlan, 59686 bcm_vlan_stat_t stat, 59687 uint64 *val) 59688 { 59689 return BCM_E_UNAVAIL; 59690 } 59691 59692 int 59693 bcm_tomahawk3_vlan_translate_egress_stat_sync_get32( 59694 int unit, 59695 int port_class, 59696 bcm_vlan_t outer_vlan, 59697 bcm_vlan_t inner_vlan, 59698 bcm_vlan_stat_t stat, 59699 uint32 *val) 59700 { 59701 return BCM_E_UNAVAIL; 59702 } 59703 59704 int 59705 bcm_tomahawk3_vlan_translate_egress_traverse( 59706 int unit, 59707 bcm_vlan_translate_egress_traverse_cb cb, 59708 void *user_data) 59709 { 59710 return BCM_E_UNAVAIL; 59711 } 59712 59713 int 59714 bcm_tomahawk3_vlan_translate_get( 59715 int unit, 59716 int port, 59717 bcm_vlan_t old_vid, 59718 bcm_vlan_t *new_vid, 59719 int *prio) 59720 { 59721 return BCM_E_UNAVAIL; 59722 } 59723 59724 int 59725 bcm_tomahawk3_vlan_translate_range_add( 59726 int unit, 59727 int port, 59728 bcm_vlan_t old_vid_low, 59729 bcm_vlan_t old_vid_high, 59730 bcm_vlan_t new_vid, 59731 int int_prio) 59732 { 59733 return BCM_E_UNAVAIL; 59734 } 59735 59736 int 59737 bcm_tomahawk3_vlan_translate_range_delete( 59738 int unit, 59739 int port, 59740 bcm_vlan_t old_vid_low, 59741 bcm_vlan_t old_vid_high) 59742 { 59743 return BCM_E_UNAVAIL; 59744 } 59745 59746 int 59747 bcm_tomahawk3_vlan_translate_range_delete_all( 59748 int unit) 59749 { 59750 return BCM_E_UNAVAIL; 59751 } 59752 59753 int 59754 bcm_tomahawk3_vlan_translate_range_get( 59755 int unit, 59756 int port, 59757 bcm_vlan_t old_vid_low, 59758 bcm_vlan_t old_vid_high, 59759 bcm_vlan_t *new_vid, 59760 int *int_prio) 59761 { 59762 return BCM_E_UNAVAIL; 59763 } 59764 59765 int 59766 bcm_tomahawk3_vlan_translate_range_traverse( 59767 int unit, 59768 bcm_vlan_translate_range_traverse_cb cb, 59769 void *user_data) 59770 { 59771 return BCM_E_UNAVAIL; 59772 } 59773 59774 int 59775 bcm_tomahawk3_vlan_translate_stat_attach( 59776 int unit, 59777 bcm_gport_t port, 59778 bcm_vlan_translate_key_t key_type, 59779 bcm_vlan_t outer_vlan, 59780 bcm_vlan_t inner_vlan, 59781 uint32 stat_counter_id) 59782 { 59783 return BCM_E_UNAVAIL; 59784 } 59785 59786 int 59787 bcm_tomahawk3_vlan_translate_stat_counter_get( 59788 int unit, 59789 bcm_gport_t port, 59790 bcm_vlan_translate_key_t key_type, 59791 bcm_vlan_t outer_vlan, 59792 bcm_vlan_t inner_vlan, 59793 bcm_vlan_stat_t stat, 59794 uint32 num_entries, 59795 uint32 *counter_indexes, 59796 bcm_stat_value_t *counter_values) 59797 { 59798 return BCM_E_UNAVAIL; 59799 } 59800 59801 int 59802 bcm_tomahawk3_vlan_translate_stat_counter_set( 59803 int unit, 59804 bcm_gport_t port, 59805 bcm_vlan_translate_key_t key_type, 59806 bcm_vlan_t outer_vlan, 59807 bcm_vlan_t inner_vlan, 59808 bcm_vlan_stat_t stat, 59809 uint32 num_entries, 59810 uint32 *counter_indexes, 59811 bcm_stat_value_t *counter_values) 59812 { 59813 return BCM_E_UNAVAIL; 59814 } 59815 59816 int 59817 bcm_tomahawk3_vlan_translate_stat_counter_sync_get( 59818 int unit, 59819 bcm_gport_t port, 59820 bcm_vlan_translate_key_t key_type, 59821 bcm_vlan_t outer_vlan, 59822 bcm_vlan_t inner_vlan, 59823 bcm_vlan_stat_t stat, 59824 uint32 num_entries, 59825 uint32 *counter_indexes, 59826 bcm_stat_value_t *counter_values) 59827 { 59828 return BCM_E_UNAVAIL; 59829 } 59830 59831 int 59832 bcm_tomahawk3_vlan_translate_stat_detach( 59833 int unit, 59834 bcm_gport_t port, 59835 bcm_vlan_translate_key_t key_type, 59836 bcm_vlan_t outer_vlan, 59837 bcm_vlan_t inner_vlan) 59838 { 59839 return BCM_E_UNAVAIL; 59840 } 59841 59842 int 59843 bcm_tomahawk3_vlan_translate_stat_enable_set( 59844 int unit, 59845 bcm_gport_t port, 59846 bcm_vlan_translate_key_t key_type, 59847 bcm_vlan_t outer_vlan, 59848 bcm_vlan_t inner_vlan, 59849 int enable) 59850 { 59851 return BCM_E_UNAVAIL; 59852 } 59853 59854 int 59855 bcm_tomahawk3_vlan_translate_stat_get( 59856 int unit, 59857 bcm_gport_t port, 59858 bcm_vlan_translate_key_t key_type, 59859 bcm_vlan_t outer_vlan, 59860 bcm_vlan_t inner_vlan, 59861 bcm_vlan_stat_t stat, 59862 uint64 *val) 59863 { 59864 return BCM_E_UNAVAIL; 59865 } 59866 59867 int 59868 bcm_tomahawk3_vlan_translate_stat_get32( 59869 int unit, 59870 bcm_gport_t port, 59871 bcm_vlan_translate_key_t key_type, 59872 bcm_vlan_t outer_vlan, 59873 bcm_vlan_t inner_vlan, 59874 bcm_vlan_stat_t stat, 59875 uint32 *val) 59876 { 59877 return BCM_E_UNAVAIL; 59878 } 59879 59880 int 59881 bcm_tomahawk3_vlan_translate_stat_id_get( 59882 int unit, 59883 bcm_gport_t port, 59884 bcm_vlan_translate_key_t key_type, 59885 bcm_vlan_t outer_vlan, 59886 bcm_vlan_t inner_vlan, 59887 bcm_vlan_stat_t stat, 59888 uint32 *stat_counter_id) 59889 { 59890 return BCM_E_UNAVAIL; 59891 } 59892 59893 int 59894 bcm_tomahawk3_vlan_translate_stat_multi_get( 59895 int unit, 59896 bcm_gport_t port, 59897 bcm_vlan_translate_key_t key_type, 59898 bcm_vlan_t outer_vlan, 59899 bcm_vlan_t inner_vlan, 59900 int nstat, 59901 bcm_vlan_stat_t *stat_arr, 59902 uint64 *value_arr) 59903 { 59904 return BCM_E_UNAVAIL; 59905 } 59906 59907 int 59908 bcm_tomahawk3_vlan_translate_stat_multi_get32( 59909 int unit, 59910 bcm_gport_t port, 59911 bcm_vlan_translate_key_t key_type, 59912 bcm_vlan_t outer_vlan, 59913 bcm_vlan_t inner_vlan, 59914 int nstat, 59915 bcm_vlan_stat_t *stat_arr, 59916 uint32 *value_arr) 59917 { 59918 return BCM_E_UNAVAIL; 59919 } 59920 59921 int 59922 bcm_tomahawk3_vlan_translate_stat_multi_set( 59923 int unit, 59924 bcm_gport_t port, 59925 bcm_vlan_translate_key_t key_type, 59926 bcm_vlan_t outer_vlan, 59927 bcm_vlan_t inner_vlan, 59928 int nstat, 59929 bcm_vlan_stat_t *stat_arr, 59930 uint64 *value_arr) 59931 { 59932 return BCM_E_UNAVAIL; 59933 } 59934 59935 int 59936 bcm_tomahawk3_vlan_translate_stat_multi_set32( 59937 int unit, 59938 bcm_gport_t port, 59939 bcm_vlan_translate_key_t key_type, 59940 bcm_vlan_t outer_vlan, 59941 bcm_vlan_t inner_vlan, 59942 int nstat, 59943 bcm_vlan_stat_t *stat_arr, 59944 uint32 *value_arr) 59945 { 59946 return BCM_E_UNAVAIL; 59947 } 59948 59949 int 59950 bcm_tomahawk3_vlan_translate_stat_set( 59951 int unit, 59952 bcm_gport_t port, 59953 bcm_vlan_translate_key_t key_type, 59954 bcm_vlan_t outer_vlan, 59955 bcm_vlan_t inner_vlan, 59956 bcm_vlan_stat_t stat, 59957 uint64 val) 59958 { 59959 return BCM_E_UNAVAIL; 59960 } 59961 59962 int 59963 bcm_tomahawk3_vlan_translate_stat_set32( 59964 int unit, 59965 bcm_gport_t port, 59966 bcm_vlan_translate_key_t key_type, 59967 bcm_vlan_t outer_vlan, 59968 bcm_vlan_t inner_vlan, 59969 bcm_vlan_stat_t stat, 59970 uint32 val) 59971 { 59972 return BCM_E_UNAVAIL; 59973 } 59974 59975 int 59976 bcm_tomahawk3_vlan_translate_stat_sync_get( 59977 int unit, 59978 bcm_gport_t port, 59979 bcm_vlan_translate_key_t key_type, 59980 bcm_vlan_t outer_vlan, 59981 bcm_vlan_t inner_vlan, 59982 bcm_vlan_stat_t stat, 59983 uint64 *val) 59984 { 59985 return BCM_E_UNAVAIL; 59986 } 59987 59988 int 59989 bcm_tomahawk3_vlan_translate_stat_sync_get32( 59990 int unit, 59991 bcm_gport_t port, 59992 bcm_vlan_translate_key_t key_type, 59993 bcm_vlan_t outer_vlan, 59994 bcm_vlan_t inner_vlan, 59995 bcm_vlan_stat_t stat, 59996 uint32 *val) 59997 { 59998 return BCM_E_UNAVAIL; 59999 } 60000 60001 int 60002 bcm_tomahawk3_vlan_translate_traverse( 60003 int unit, 60004 bcm_vlan_translate_traverse_cb cb, 60005 void *user_data) 60006 { 60007 return BCM_E_UNAVAIL; 60008 } 60009 60010 int 60011 bcm_tomahawk3_vlan_vector_stp_set( 60012 int unit, 60013 bcm_vlan_vector_t vlan_vector, 60014 bcm_port_t port, 60015 int stp_state) 60016 { 60017 return BCM_E_UNAVAIL; 60018 } 60019 60020 #if defined(INCLUDE_L3) 60021 int 60022 bcm_tomahawk3_vlan_vpn_create( 60023 int unit, 60024 bcm_vlan_vpn_config_t *info) 60025 { 60026 return BCM_E_UNAVAIL; 60027 } 60028 #endif 60029 60030 #if defined(INCLUDE_L3) 60031 int 60032 bcm_tomahawk3_vlan_vpn_destroy( 60033 int unit, 60034 bcm_vpn_t vpn) 60035 { 60036 return BCM_E_UNAVAIL; 60037 } 60038 #endif 60039 60040 #if defined(INCLUDE_L3) 60041 int 60042 bcm_tomahawk3_vlan_vpn_destroy_all( 60043 int unit) 60044 { 60045 return BCM_E_UNAVAIL; 60046 } 60047 #endif 60048 60049 #if defined(INCLUDE_L3) 60050 int 60051 bcm_tomahawk3_vlan_vpn_get( 60052 int unit, 60053 bcm_vpn_t vpn, 60054 bcm_vlan_vpn_config_t *info) 60055 { 60056 return BCM_E_UNAVAIL; 60057 } 60058 #endif 60059 60060 #if defined(INCLUDE_L3) 60061 int 60062 bcm_tomahawk3_vlan_vpn_traverse( 60063 int unit, 60064 bcm_vlan_vpn_traverse_cb cb, 60065 void *user_data) 60066 { 60067 return BCM_E_UNAVAIL; 60068 } 60069 #endif 60070 60071 int 60072 bcm_tomahawk3_vswitch_create( 60073 int unit, 60074 bcm_vlan_t *vsi) 60075 { 60076 return BCM_E_UNAVAIL; 60077 } 60078 60079 int 60080 bcm_tomahawk3_vswitch_create_with_id( 60081 int unit, 60082 bcm_vlan_t vsi) 60083 { 60084 return BCM_E_UNAVAIL; 60085 } 60086 60087 int 60088 bcm_tomahawk3_vswitch_cross_connect_add( 60089 int unit, 60090 bcm_vswitch_cross_connect_t *gports) 60091 { 60092 return BCM_E_UNAVAIL; 60093 } 60094 60095 int 60096 bcm_tomahawk3_vswitch_cross_connect_delete( 60097 int unit, 60098 bcm_vswitch_cross_connect_t *gports) 60099 { 60100 return BCM_E_UNAVAIL; 60101 } 60102 60103 int 60104 bcm_tomahawk3_vswitch_cross_connect_delete_all( 60105 int unit) 60106 { 60107 return BCM_E_UNAVAIL; 60108 } 60109 60110 int 60111 bcm_tomahawk3_vswitch_cross_connect_get( 60112 int unit, 60113 bcm_vswitch_cross_connect_t *gports) 60114 { 60115 return BCM_E_UNAVAIL; 60116 } 60117 60118 int 60119 bcm_tomahawk3_vswitch_cross_connect_traverse( 60120 int unit, 60121 bcm_vswitch_cross_connect_traverse_cb cb, 60122 void *user_data) 60123 { 60124 return BCM_E_UNAVAIL; 60125 } 60126 60127 int 60128 bcm_tomahawk3_vswitch_destroy( 60129 int unit, 60130 bcm_vlan_t vsi) 60131 { 60132 return BCM_E_UNAVAIL; 60133 } 60134 60135 int 60136 bcm_tomahawk3_vswitch_destroy_all( 60137 int unit) 60138 { 60139 return BCM_E_UNAVAIL; 60140 } 60141 60142 int 60143 bcm_tomahawk3_vswitch_detach( 60144 int unit) 60145 { 60146 return BCM_E_UNAVAIL; 60147 } 60148 60149 int 60150 bcm_tomahawk3_vswitch_flexible_connect_add( 60151 int unit, 60152 uint32 flags, 60153 bcm_vswitch_flexible_connect_match_t *port_match, 60154 bcm_vswitch_flexible_connect_fwd_t *port_fwd) 60155 { 60156 return BCM_E_UNAVAIL; 60157 } 60158 60159 int 60160 bcm_tomahawk3_vswitch_flexible_connect_delete( 60161 int unit, 60162 bcm_vswitch_flexible_connect_match_t *port_match) 60163 { 60164 return BCM_E_UNAVAIL; 60165 } 60166 60167 int 60168 bcm_tomahawk3_vswitch_flexible_connect_get( 60169 int unit, 60170 uint32 flags, 60171 bcm_vswitch_flexible_connect_match_t *port_match, 60172 bcm_vswitch_flexible_connect_fwd_t *port_fwd) 60173 { 60174 return BCM_E_UNAVAIL; 60175 } 60176 60177 int 60178 bcm_tomahawk3_vswitch_init( 60179 int unit) 60180 { 60181 return BCM_E_UNAVAIL; 60182 } 60183 60184 int 60185 bcm_tomahawk3_vswitch_port_add( 60186 int unit, 60187 bcm_vlan_t vsi, 60188 bcm_gport_t port) 60189 { 60190 return BCM_E_UNAVAIL; 60191 } 60192 60193 int 60194 bcm_tomahawk3_vswitch_port_delete( 60195 int unit, 60196 bcm_vlan_t vsi, 60197 bcm_gport_t port) 60198 { 60199 return BCM_E_UNAVAIL; 60200 } 60201 60202 int 60203 bcm_tomahawk3_vswitch_port_delete_all( 60204 int unit, 60205 bcm_vlan_t vsi) 60206 { 60207 return BCM_E_UNAVAIL; 60208 } 60209 60210 int 60211 bcm_tomahawk3_vswitch_port_get( 60212 int unit, 60213 bcm_gport_t port, 60214 bcm_vlan_t *vsi) 60215 { 60216 return BCM_E_UNAVAIL; 60217 } 60218 60219 int 60220 bcm_tomahawk3_vswitch_port_traverse( 60221 int unit, 60222 bcm_vlan_t vsi, 60223 bcm_vswitch_port_traverse_cb cb, 60224 void *user_data) 60225 { 60226 return BCM_E_UNAVAIL; 60227 } 60228 60229 #if defined(INCLUDE_L3) 60230 #if defined(INCLUDE_L3) 60231 #ifdef BCM_TOMAHAWK3_SUPPORT 60232 int 60233 bcm_tomahawk3_vxlan_cleanup( 60234 int unit) 60235 { 60236 return bcm_esw_vxlan_cleanup(unit); 60237 } 60238 #endif 60239 #endif 60240 #endif 60241 60242 #if defined(INCLUDE_L3) 60243 #ifdef BCM_TOMAHAWK3_SUPPORT 60244 int 60245 bcm_tomahawk3_vxlan_dip_stat_attach( 60246 int unit, 60247 bcm_ip_t vxlan_dip, 60248 uint32 stat_counter_id) 60249 { 60250 return bcm_esw_vxlan_dip_stat_attach(unit, vxlan_dip, stat_counter_id); 60251 } 60252 #endif 60253 #endif 60254 60255 #if defined(INCLUDE_L3) 60256 #ifdef BCM_TOMAHAWK3_SUPPORT 60257 int 60258 bcm_tomahawk3_vxlan_dip_stat_counter_get( 60259 int unit, 60260 bcm_ip_t vxlan_dip, 60261 bcm_vxlan_dip_stat_t stat, 60262 uint32 num_entries, 60263 uint32 *counter_indexes, 60264 bcm_stat_value_t *counter_values) 60265 { 60266 return bcm_esw_vxlan_dip_stat_counter_get(unit, vxlan_dip, stat, num_entries, counter_indexes, counter_values); 60267 } 60268 #endif 60269 #endif 60270 60271 #if defined(INCLUDE_L3) 60272 #ifdef BCM_TOMAHAWK3_SUPPORT 60273 int 60274 bcm_tomahawk3_vxlan_dip_stat_counter_set( 60275 int unit, 60276 bcm_ip_t vxlan_dip, 60277 bcm_vxlan_dip_stat_t stat, 60278 uint32 num_entries, 60279 uint32 *counter_indexes, 60280 bcm_stat_value_t *counter_values) 60281 { 60282 return bcm_esw_vxlan_dip_stat_counter_set(unit, vxlan_dip, stat, num_entries, counter_indexes, counter_values); 60283 } 60284 #endif 60285 #endif 60286 60287 #if defined(INCLUDE_L3) 60288 #ifdef BCM_TOMAHAWK3_SUPPORT 60289 int 60290 bcm_tomahawk3_vxlan_dip_stat_detach( 60291 int unit, 60292 bcm_ip_t vxlan_dip) 60293 { 60294 return bcm_esw_vxlan_dip_stat_detach(unit, vxlan_dip); 60295 } 60296 #endif 60297 #endif 60298 60299 #if defined(INCLUDE_L3) 60300 #ifdef BCM_TOMAHAWK3_SUPPORT 60301 int 60302 bcm_tomahawk3_vxlan_dip_stat_id_get( 60303 int unit, 60304 bcm_ip_t vxlan_dip, 60305 bcm_vxlan_dip_stat_t stat, 60306 uint32 *stat_counter_id) 60307 { 60308 return bcm_esw_vxlan_dip_stat_id_get(unit, vxlan_dip, stat, stat_counter_id); 60309 } 60310 #endif 60311 #endif 60312 60313 #if defined(INCLUDE_L3) 60314 #ifdef BCM_TOMAHAWK3_SUPPORT 60315 int 60316 bcm_tomahawk3_vxlan_dip_stat_multi_get( 60317 int unit, 60318 bcm_ip_t vxlan_dip, 60319 int nstat, 60320 bcm_vxlan_dip_stat_t *stat_arr, 60321 uint64 *value_arr) 60322 { 60323 return bcm_esw_vxlan_dip_stat_multi_get(unit, vxlan_dip, nstat, stat_arr, value_arr); 60324 } 60325 #endif 60326 #endif 60327 60328 #if defined(INCLUDE_L3) 60329 #ifdef BCM_TOMAHAWK3_SUPPORT 60330 int 60331 bcm_tomahawk3_vxlan_dip_stat_multi_get32( 60332 int unit, 60333 bcm_ip_t vxlan_dip, 60334 int nstat, 60335 bcm_vxlan_dip_stat_t *stat_arr, 60336 uint32 *value_arr) 60337 { 60338 return bcm_esw_vxlan_dip_stat_multi_get32(unit, vxlan_dip, nstat, stat_arr, value_arr); 60339 } 60340 #endif 60341 #endif 60342 60343 #if defined(INCLUDE_L3) 60344 #ifdef BCM_TOMAHAWK3_SUPPORT 60345 int 60346 bcm_tomahawk3_vxlan_dip_stat_multi_set( 60347 int unit, 60348 bcm_ip_t vxlan_dip, 60349 int nstat, 60350 bcm_vxlan_dip_stat_t *stat_arr, 60351 uint64 *value_arr) 60352 { 60353 return bcm_esw_vxlan_dip_stat_multi_set(unit, vxlan_dip, nstat, stat_arr, value_arr); 60354 } 60355 #endif 60356 #endif 60357 60358 #if defined(INCLUDE_L3) 60359 #ifdef BCM_TOMAHAWK3_SUPPORT 60360 int 60361 bcm_tomahawk3_vxlan_dip_stat_multi_set32( 60362 int unit, 60363 bcm_ip_t vxlan_dip, 60364 int nstat, 60365 bcm_vxlan_dip_stat_t *stat_arr, 60366 uint32 *value_arr) 60367 { 60368 return bcm_esw_vxlan_dip_stat_multi_set32(unit, vxlan_dip, nstat, stat_arr, value_arr); 60369 } 60370 #endif 60371 #endif 60372 60373 #if defined(INCLUDE_L3) 60374 #if defined(INCLUDE_L3) 60375 #ifdef BCM_TOMAHAWK3_SUPPORT 60376 int 60377 bcm_tomahawk3_vxlan_init( 60378 int unit) 60379 { 60380 return bcm_esw_vxlan_init(unit); 60381 } 60382 #endif 60383 #endif 60384 #endif 60385 60386 #if defined(INCLUDE_L3) 60387 #if defined(INCLUDE_L3) 60388 #ifdef BCM_TOMAHAWK3_SUPPORT 60389 int 60390 bcm_tomahawk3_vxlan_network_domain_config_add( 60391 int unit, 60392 bcm_vxlan_network_domain_config_t *config) 60393 { 60394 return bcm_esw_vxlan_network_domain_config_add(unit, config); 60395 } 60396 #endif 60397 #endif 60398 #endif 60399 60400 #if defined(INCLUDE_L3) 60401 #if defined(INCLUDE_L3) 60402 #ifdef BCM_TOMAHAWK3_SUPPORT 60403 int 60404 bcm_tomahawk3_vxlan_network_domain_config_get( 60405 int unit, 60406 bcm_vxlan_network_domain_config_t *config) 60407 { 60408 return bcm_esw_vxlan_network_domain_config_get(unit, config); 60409 } 60410 #endif 60411 #endif 60412 #endif 60413 60414 #if defined(INCLUDE_L3) 60415 #if defined(INCLUDE_L3) 60416 #ifdef BCM_TOMAHAWK3_SUPPORT 60417 int 60418 bcm_tomahawk3_vxlan_network_domain_config_remove( 60419 int unit, 60420 bcm_vxlan_network_domain_config_t *config) 60421 { 60422 return bcm_esw_vxlan_network_domain_config_remove(unit, config); 60423 } 60424 #endif 60425 #endif 60426 #endif 60427 60428 #if defined(INCLUDE_L3) 60429 #if defined(INCLUDE_L3) 60430 #ifdef BCM_TOMAHAWK3_SUPPORT 60431 int 60432 bcm_tomahawk3_vxlan_network_domain_config_traverse( 60433 int unit, 60434 bcm_vxlan_network_domain_config_additional_info_t *additional_info, 60435 bcm_vxlan_network_domain_config_traverse_cb cb, 60436 void *user_data) 60437 { 60438 return bcm_esw_vxlan_network_domain_config_traverse(unit, additional_info, cb, user_data); 60439 } 60440 #endif 60441 #endif 60442 #endif 60443 60444 #if defined(INCLUDE_L3) 60445 #if defined(INCLUDE_L3) 60446 #ifdef BCM_TOMAHAWK3_SUPPORT 60447 int 60448 bcm_tomahawk3_vxlan_port_add( 60449 int unit, 60450 bcm_vpn_t l2vpn, 60451 bcm_vxlan_port_t *vxlan_port) 60452 { 60453 return bcm_esw_vxlan_port_add(unit, l2vpn, vxlan_port); 60454 } 60455 #endif 60456 #endif 60457 #endif 60458 60459 #if defined(INCLUDE_L3) 60460 #if defined(INCLUDE_L3) 60461 #ifdef BCM_TOMAHAWK3_SUPPORT 60462 int 60463 bcm_tomahawk3_vxlan_port_delete( 60464 int unit, 60465 bcm_vpn_t l2vpn, 60466 bcm_gport_t vxlan_port_id) 60467 { 60468 return bcm_esw_vxlan_port_delete(unit, l2vpn, vxlan_port_id); 60469 } 60470 #endif 60471 #endif 60472 #endif 60473 60474 #if defined(INCLUDE_L3) 60475 #if defined(INCLUDE_L3) 60476 #ifdef BCM_TOMAHAWK3_SUPPORT 60477 int 60478 bcm_tomahawk3_vxlan_port_delete_all( 60479 int unit, 60480 bcm_vpn_t l2vpn) 60481 { 60482 return bcm_esw_vxlan_port_delete_all(unit, l2vpn); 60483 } 60484 #endif 60485 #endif 60486 #endif 60487 60488 #if defined(INCLUDE_L3) 60489 #if defined(INCLUDE_L3) 60490 #ifdef BCM_TOMAHAWK3_SUPPORT 60491 int 60492 bcm_tomahawk3_vxlan_port_get( 60493 int unit, 60494 bcm_vpn_t l2vpn, 60495 bcm_vxlan_port_t *vxlan_port) 60496 { 60497 return bcm_esw_vxlan_port_get(unit, l2vpn, vxlan_port); 60498 } 60499 #endif 60500 #endif 60501 #endif 60502 60503 #if defined(INCLUDE_L3) 60504 #if defined(INCLUDE_L3) 60505 #ifdef BCM_TOMAHAWK3_SUPPORT 60506 int 60507 bcm_tomahawk3_vxlan_port_get_all( 60508 int unit, 60509 bcm_vpn_t l2vpn, 60510 int port_max, 60511 bcm_vxlan_port_t *port_array, 60512 int *port_count) 60513 { 60514 return bcm_esw_vxlan_port_get_all(unit, l2vpn, port_max, port_array, port_count); 60515 } 60516 #endif 60517 #endif 60518 #endif 60519 60520 #if defined(INCLUDE_L3) 60521 #if defined(INCLUDE_L3) 60522 #ifdef BCM_TOMAHAWK3_SUPPORT 60523 int 60524 bcm_tomahawk3_vxlan_port_traverse( 60525 int unit, 60526 bcm_vxlan_port_traverse_cb cb, 60527 void *user_data) 60528 { 60529 return bcm_esw_vxlan_port_traverse(unit, cb, user_data); 60530 } 60531 #endif 60532 #endif 60533 #endif 60534 60535 #if defined(INCLUDE_L3) 60536 #ifdef BCM_TOMAHAWK3_SUPPORT 60537 int 60538 bcm_tomahawk3_vxlan_stat_attach( 60539 int unit, 60540 bcm_gport_t port, 60541 bcm_vpn_t vpn, 60542 uint32 stat_counter_id) 60543 { 60544 return bcm_esw_vxlan_stat_attach(unit, port, vpn, stat_counter_id); 60545 } 60546 #endif 60547 #endif 60548 60549 #if defined(INCLUDE_L3) 60550 #ifdef BCM_TOMAHAWK3_SUPPORT 60551 int 60552 bcm_tomahawk3_vxlan_stat_counter_get( 60553 int unit, 60554 bcm_gport_t port, 60555 bcm_vpn_t vpn, 60556 bcm_vxlan_stat_t stat, 60557 uint32 num_entries, 60558 uint32 *counter_indexes, 60559 bcm_stat_value_t *counter_values) 60560 { 60561 return bcm_esw_vxlan_stat_counter_get(unit, port, vpn, stat, num_entries, counter_indexes, counter_values); 60562 } 60563 #endif 60564 #endif 60565 60566 #if defined(INCLUDE_L3) 60567 #ifdef BCM_TOMAHAWK3_SUPPORT 60568 int 60569 bcm_tomahawk3_vxlan_stat_counter_set( 60570 int unit, 60571 bcm_gport_t port, 60572 bcm_vpn_t vpn, 60573 bcm_vxlan_stat_t stat, 60574 uint32 num_entries, 60575 uint32 *counter_indexes, 60576 bcm_stat_value_t *counter_values) 60577 { 60578 return bcm_esw_vxlan_stat_counter_set(unit, port, vpn, stat, num_entries, counter_indexes, counter_values); 60579 } 60580 #endif 60581 #endif 60582 60583 #if defined(INCLUDE_L3) 60584 #ifdef BCM_TOMAHAWK3_SUPPORT 60585 int 60586 bcm_tomahawk3_vxlan_stat_counter_sync_get( 60587 int unit, 60588 bcm_gport_t port, 60589 bcm_vpn_t vpn, 60590 bcm_vxlan_stat_t stat, 60591 uint32 num_entries, 60592 uint32 *counter_indexes, 60593 bcm_stat_value_t *counter_values) 60594 { 60595 return bcm_esw_vxlan_stat_counter_sync_get(unit, port, vpn, stat, num_entries, counter_indexes, counter_values); 60596 } 60597 #endif 60598 #endif 60599 60600 #if defined(INCLUDE_L3) 60601 #ifdef BCM_TOMAHAWK3_SUPPORT 60602 int 60603 bcm_tomahawk3_vxlan_stat_detach( 60604 int unit, 60605 bcm_gport_t port, 60606 bcm_vpn_t vpn) 60607 { 60608 return bcm_esw_vxlan_stat_detach(unit, port, vpn); 60609 } 60610 #endif 60611 #endif 60612 60613 #if defined(INCLUDE_L3) 60614 #ifdef BCM_TOMAHAWK3_SUPPORT 60615 int 60616 bcm_tomahawk3_vxlan_stat_enable_set( 60617 int unit, 60618 bcm_gport_t port, 60619 bcm_vpn_t vpn, 60620 int enable) 60621 { 60622 return bcm_esw_vxlan_stat_enable_set(unit, port, vpn, enable); 60623 } 60624 #endif 60625 #endif 60626 60627 #if defined(INCLUDE_L3) 60628 #ifdef BCM_TOMAHAWK3_SUPPORT 60629 int 60630 bcm_tomahawk3_vxlan_stat_id_get( 60631 int unit, 60632 bcm_gport_t port, 60633 bcm_vpn_t vpn, 60634 bcm_vxlan_stat_t stat, 60635 uint32 *stat_counter_id) 60636 { 60637 return bcm_esw_vxlan_stat_id_get(unit, port, vpn, stat, stat_counter_id); 60638 } 60639 #endif 60640 #endif 60641 60642 #if defined(INCLUDE_L3) 60643 #ifdef BCM_TOMAHAWK3_SUPPORT 60644 int 60645 bcm_tomahawk3_vxlan_stat_multi_get( 60646 int unit, 60647 bcm_gport_t port, 60648 bcm_vpn_t vpn, 60649 int nstat, 60650 bcm_vxlan_stat_t *stat_arr, 60651 uint64 *value_arr) 60652 { 60653 return bcm_esw_vxlan_stat_multi_get(unit, port, vpn, nstat, stat_arr, value_arr); 60654 } 60655 #endif 60656 #endif 60657 60658 #if defined(INCLUDE_L3) 60659 #ifdef BCM_TOMAHAWK3_SUPPORT 60660 int 60661 bcm_tomahawk3_vxlan_stat_multi_get32( 60662 int unit, 60663 bcm_gport_t port, 60664 bcm_vpn_t vpn, 60665 int nstat, 60666 bcm_vxlan_stat_t *stat_arr, 60667 uint32 *value_arr) 60668 { 60669 return bcm_esw_vxlan_stat_multi_get32(unit, port, vpn, nstat, stat_arr, value_arr); 60670 } 60671 #endif 60672 #endif 60673 60674 #if defined(INCLUDE_L3) 60675 #ifdef BCM_TOMAHAWK3_SUPPORT 60676 int 60677 bcm_tomahawk3_vxlan_stat_multi_set( 60678 int unit, 60679 bcm_gport_t port, 60680 bcm_vpn_t vpn, 60681 int nstat, 60682 bcm_vxlan_stat_t *stat_arr, 60683 uint64 *value_arr) 60684 { 60685 return bcm_esw_vxlan_stat_multi_set(unit, port, vpn, nstat, stat_arr, value_arr); 60686 } 60687 #endif 60688 #endif 60689 60690 #if defined(INCLUDE_L3) 60691 #ifdef BCM_TOMAHAWK3_SUPPORT 60692 int 60693 bcm_tomahawk3_vxlan_stat_multi_set32( 60694 int unit, 60695 bcm_gport_t port, 60696 bcm_vpn_t vpn, 60697 int nstat, 60698 bcm_vxlan_stat_t *stat_arr, 60699 uint32 *value_arr) 60700 { 60701 return bcm_esw_vxlan_stat_multi_set32(unit, port, vpn, nstat, stat_arr, value_arr); 60702 } 60703 #endif 60704 #endif 60705 60706 #if defined(INCLUDE_L3) 60707 #if defined(INCLUDE_L3) 60708 #ifdef BCM_TOMAHAWK3_SUPPORT 60709 int 60710 bcm_tomahawk3_vxlan_tunnel_initiator_create( 60711 int unit, 60712 bcm_tunnel_initiator_t *info) 60713 { 60714 return bcm_esw_vxlan_tunnel_initiator_create(unit, info); 60715 } 60716 #endif 60717 #endif 60718 #endif 60719 60720 #if defined(INCLUDE_L3) 60721 #if defined(INCLUDE_L3) 60722 #ifdef BCM_TOMAHAWK3_SUPPORT 60723 int 60724 bcm_tomahawk3_vxlan_tunnel_initiator_destroy( 60725 int unit, 60726 bcm_gport_t vxlan_tunnel_id) 60727 { 60728 return bcm_esw_vxlan_tunnel_initiator_destroy(unit, vxlan_tunnel_id); 60729 } 60730 #endif 60731 #endif 60732 #endif 60733 60734 #if defined(INCLUDE_L3) 60735 #if defined(INCLUDE_L3) 60736 #ifdef BCM_TOMAHAWK3_SUPPORT 60737 int 60738 bcm_tomahawk3_vxlan_tunnel_initiator_destroy_all( 60739 int unit) 60740 { 60741 return bcm_esw_vxlan_tunnel_initiator_destroy_all(unit); 60742 } 60743 #endif 60744 #endif 60745 #endif 60746 60747 #if defined(INCLUDE_L3) 60748 #if defined(INCLUDE_L3) 60749 #ifdef BCM_TOMAHAWK3_SUPPORT 60750 int 60751 bcm_tomahawk3_vxlan_tunnel_initiator_get( 60752 int unit, 60753 bcm_tunnel_initiator_t *info) 60754 { 60755 return bcm_esw_vxlan_tunnel_initiator_get(unit, info); 60756 } 60757 #endif 60758 #endif 60759 #endif 60760 60761 #if defined(INCLUDE_L3) 60762 #if defined(INCLUDE_L3) 60763 #ifdef BCM_TOMAHAWK3_SUPPORT 60764 int 60765 bcm_tomahawk3_vxlan_tunnel_initiator_traverse( 60766 int unit, 60767 bcm_tunnel_initiator_traverse_cb cb, 60768 void *user_data) 60769 { 60770 return bcm_esw_vxlan_tunnel_initiator_traverse(unit, cb, user_data); 60771 } 60772 #endif 60773 #endif 60774 #endif 60775 60776 #if defined(INCLUDE_L3) 60777 #if defined(INCLUDE_L3) 60778 #ifdef BCM_TOMAHAWK3_SUPPORT 60779 int 60780 bcm_tomahawk3_vxlan_tunnel_terminator_create( 60781 int unit, 60782 bcm_tunnel_terminator_t *info) 60783 { 60784 return bcm_esw_vxlan_tunnel_terminator_create(unit, info); 60785 } 60786 #endif 60787 #endif 60788 #endif 60789 60790 #if defined(INCLUDE_L3) 60791 #if defined(INCLUDE_L3) 60792 #ifdef BCM_TOMAHAWK3_SUPPORT 60793 int 60794 bcm_tomahawk3_vxlan_tunnel_terminator_destroy( 60795 int unit, 60796 bcm_gport_t vxlan_tunnel_id) 60797 { 60798 return bcm_esw_vxlan_tunnel_terminator_destroy(unit, vxlan_tunnel_id); 60799 } 60800 #endif 60801 #endif 60802 #endif 60803 60804 #if defined(INCLUDE_L3) 60805 #if defined(INCLUDE_L3) 60806 #ifdef BCM_TOMAHAWK3_SUPPORT 60807 int 60808 bcm_tomahawk3_vxlan_tunnel_terminator_destroy_all( 60809 int unit) 60810 { 60811 return bcm_esw_vxlan_tunnel_terminator_destroy_all(unit); 60812 } 60813 #endif 60814 #endif 60815 #endif 60816 60817 #if defined(INCLUDE_L3) 60818 #if defined(INCLUDE_L3) 60819 #ifdef BCM_TOMAHAWK3_SUPPORT 60820 int 60821 bcm_tomahawk3_vxlan_tunnel_terminator_get( 60822 int unit, 60823 bcm_tunnel_terminator_t *info) 60824 { 60825 return bcm_esw_vxlan_tunnel_terminator_get(unit, info); 60826 } 60827 #endif 60828 #endif 60829 #endif 60830 60831 #if defined(INCLUDE_L3) 60832 #if defined(INCLUDE_L3) 60833 #ifdef BCM_TOMAHAWK3_SUPPORT 60834 int 60835 bcm_tomahawk3_vxlan_tunnel_terminator_traverse( 60836 int unit, 60837 bcm_tunnel_terminator_traverse_cb cb, 60838 void *user_data) 60839 { 60840 return bcm_esw_vxlan_tunnel_terminator_traverse(unit, cb, user_data); 60841 } 60842 #endif 60843 #endif 60844 #endif 60845 60846 #if defined(INCLUDE_L3) 60847 #if defined(INCLUDE_L3) 60848 #ifdef BCM_TOMAHAWK3_SUPPORT 60849 int 60850 bcm_tomahawk3_vxlan_tunnel_terminator_update( 60851 int unit, 60852 bcm_tunnel_terminator_t *info) 60853 { 60854 return bcm_esw_vxlan_tunnel_terminator_update(unit, info); 60855 } 60856 #endif 60857 #endif 60858 #endif 60859 60860 #if defined(INCLUDE_L3) 60861 #if defined(INCLUDE_L3) 60862 #ifdef BCM_TOMAHAWK3_SUPPORT 60863 int 60864 bcm_tomahawk3_vxlan_vpn_create( 60865 int unit, 60866 bcm_vxlan_vpn_config_t *info) 60867 { 60868 return bcm_esw_vxlan_vpn_create(unit, info); 60869 } 60870 #endif 60871 #endif 60872 #endif 60873 60874 #if defined(INCLUDE_L3) 60875 #if defined(INCLUDE_L3) 60876 #ifdef BCM_TOMAHAWK3_SUPPORT 60877 int 60878 bcm_tomahawk3_vxlan_vpn_destroy( 60879 int unit, 60880 bcm_vpn_t l2vpn) 60881 { 60882 return bcm_esw_vxlan_vpn_destroy(unit, l2vpn); 60883 } 60884 #endif 60885 #endif 60886 #endif 60887 60888 #if defined(INCLUDE_L3) 60889 #if defined(INCLUDE_L3) 60890 #ifdef BCM_TOMAHAWK3_SUPPORT 60891 int 60892 bcm_tomahawk3_vxlan_vpn_destroy_all( 60893 int unit) 60894 { 60895 return bcm_esw_vxlan_vpn_destroy_all(unit); 60896 } 60897 #endif 60898 #endif 60899 #endif 60900 60901 #if defined(INCLUDE_L3) 60902 #if defined(INCLUDE_L3) 60903 #ifdef BCM_TOMAHAWK3_SUPPORT 60904 int 60905 bcm_tomahawk3_vxlan_vpn_get( 60906 int unit, 60907 bcm_vpn_t l2vpn, 60908 bcm_vxlan_vpn_config_t *info) 60909 { 60910 return bcm_esw_vxlan_vpn_get(unit, l2vpn, info); 60911 } 60912 #endif 60913 #endif 60914 #endif 60915 60916 #if defined(INCLUDE_L3) 60917 #if defined(INCLUDE_L3) 60918 #ifdef BCM_TOMAHAWK3_SUPPORT 60919 int 60920 bcm_tomahawk3_vxlan_vpn_traverse( 60921 int unit, 60922 bcm_vxlan_vpn_traverse_cb cb, 60923 void *user_data) 60924 { 60925 return bcm_esw_vxlan_vpn_traverse(unit, cb, user_data); 60926 } 60927 #endif 60928 #endif 60929 #endif 60930 60931 #if defined(INCLUDE_L3) 60932 #ifdef BCM_TOMAHAWK3_SUPPORT 60933 int 60934 bcm_tomahawk3_wlan_client_add( 60935 int unit, 60936 bcm_wlan_client_t *info) 60937 { 60938 return bcm_esw_wlan_client_add(unit, info); 60939 } 60940 #endif 60941 #endif 60942 60943 #if defined(INCLUDE_L3) 60944 #ifdef BCM_TOMAHAWK3_SUPPORT 60945 int 60946 bcm_tomahawk3_wlan_client_delete( 60947 int unit, 60948 bcm_mac_t mac) 60949 { 60950 return bcm_esw_wlan_client_delete(unit, mac); 60951 } 60952 #endif 60953 #endif 60954 60955 #if defined(INCLUDE_L3) 60956 #ifdef BCM_TOMAHAWK3_SUPPORT 60957 int 60958 bcm_tomahawk3_wlan_client_delete_all( 60959 int unit) 60960 { 60961 return bcm_esw_wlan_client_delete_all(unit); 60962 } 60963 #endif 60964 #endif 60965 60966 #if defined(INCLUDE_L3) 60967 #ifdef BCM_TOMAHAWK3_SUPPORT 60968 int 60969 bcm_tomahawk3_wlan_client_get( 60970 int unit, 60971 bcm_mac_t mac, 60972 bcm_wlan_client_t *info) 60973 { 60974 return bcm_esw_wlan_client_get(unit, mac, info); 60975 } 60976 #endif 60977 #endif 60978 60979 #if defined(INCLUDE_L3) 60980 #ifdef BCM_TOMAHAWK3_SUPPORT 60981 int 60982 bcm_tomahawk3_wlan_client_traverse( 60983 int unit, 60984 bcm_wlan_client_traverse_cb cb, 60985 void *user_data) 60986 { 60987 return bcm_esw_wlan_client_traverse(unit, cb, user_data); 60988 } 60989 #endif 60990 #endif 60991 60992 #if defined(INCLUDE_L3) 60993 #ifdef BCM_TOMAHAWK3_SUPPORT 60994 int 60995 bcm_tomahawk3_wlan_detach( 60996 int unit) 60997 { 60998 return bcm_esw_wlan_detach(unit); 60999 } 61000 #endif 61001 #endif 61002 61003 #if defined(INCLUDE_L3) 61004 #ifdef BCM_TOMAHAWK3_SUPPORT 61005 int 61006 bcm_tomahawk3_wlan_init( 61007 int unit) 61008 { 61009 return bcm_esw_wlan_init(unit); 61010 } 61011 #endif 61012 #endif 61013 61014 #if defined(INCLUDE_L3) 61015 #ifdef BCM_TOMAHAWK3_SUPPORT 61016 int 61017 bcm_tomahawk3_wlan_port_add( 61018 int unit, 61019 bcm_wlan_port_t *info) 61020 { 61021 return bcm_esw_wlan_port_add(unit, info); 61022 } 61023 #endif 61024 #endif 61025 61026 #if defined(INCLUDE_L3) 61027 #ifdef BCM_TOMAHAWK3_SUPPORT 61028 int 61029 bcm_tomahawk3_wlan_port_delete( 61030 int unit, 61031 bcm_gport_t wlan_port_id) 61032 { 61033 return bcm_esw_wlan_port_delete(unit, wlan_port_id); 61034 } 61035 #endif 61036 #endif 61037 61038 #if defined(INCLUDE_L3) 61039 #ifdef BCM_TOMAHAWK3_SUPPORT 61040 int 61041 bcm_tomahawk3_wlan_port_delete_all( 61042 int unit) 61043 { 61044 return bcm_esw_wlan_port_delete_all(unit); 61045 } 61046 #endif 61047 #endif 61048 61049 #if defined(INCLUDE_L3) 61050 #ifdef BCM_TOMAHAWK3_SUPPORT 61051 int 61052 bcm_tomahawk3_wlan_port_get( 61053 int unit, 61054 bcm_gport_t wlan_port_id, 61055 bcm_wlan_port_t *info) 61056 { 61057 return bcm_esw_wlan_port_get(unit, wlan_port_id, info); 61058 } 61059 #endif 61060 #endif 61061 61062 #if defined(INCLUDE_L3) 61063 #ifdef BCM_TOMAHAWK3_SUPPORT 61064 int 61065 bcm_tomahawk3_wlan_port_traverse( 61066 int unit, 61067 bcm_wlan_port_traverse_cb cb, 61068 void *user_data) 61069 { 61070 return bcm_esw_wlan_port_traverse(unit, cb, user_data); 61071 } 61072 #endif 61073 #endif 61074 61075 #if defined(INCLUDE_L3) 61076 #ifdef BCM_TOMAHAWK3_SUPPORT 61077 int 61078 bcm_tomahawk3_wlan_tunnel_initiator_create( 61079 int unit, 61080 bcm_tunnel_initiator_t *info) 61081 { 61082 return bcm_esw_wlan_tunnel_initiator_create(unit, info); 61083 } 61084 #endif 61085 #endif 61086 61087 #if defined(INCLUDE_L3) 61088 #ifdef BCM_TOMAHAWK3_SUPPORT 61089 int 61090 bcm_tomahawk3_wlan_tunnel_initiator_destroy( 61091 int unit, 61092 bcm_gport_t wlan_tunnel_id) 61093 { 61094 return bcm_esw_wlan_tunnel_initiator_destroy(unit, wlan_tunnel_id); 61095 } 61096 #endif 61097 #endif 61098 61099 #if defined(INCLUDE_L3) 61100 #ifdef BCM_TOMAHAWK3_SUPPORT 61101 int 61102 bcm_tomahawk3_wlan_tunnel_initiator_get( 61103 int unit, 61104 bcm_tunnel_initiator_t *info) 61105 { 61106 return bcm_esw_wlan_tunnel_initiator_get(unit, info); 61107 } 61108 #endif 61109 #endif 61110 61111 #if defined(INCLUDE_XFLOW_MACSEC) 61112 #ifdef BCM_TOMAHAWK3_SUPPORT 61113 int 61114 bcm_tomahawk3_xflow_macsec_control_get( 61115 int unit, 61116 uint32 flags, 61117 bcm_xflow_macsec_instance_id_t instance_id, 61118 bcm_xflow_macsec_control_t type, 61119 uint64 *value) 61120 { 61121 return bcm_esw_xflow_macsec_control_get(unit, flags, instance_id, type, value); 61122 } 61123 #endif 61124 #endif 61125 61126 #if defined(INCLUDE_XFLOW_MACSEC) 61127 #ifdef BCM_TOMAHAWK3_SUPPORT 61128 int 61129 bcm_tomahawk3_xflow_macsec_control_set( 61130 int unit, 61131 uint32 flags, 61132 bcm_xflow_macsec_instance_id_t instance_id, 61133 bcm_xflow_macsec_control_t type, 61134 uint64 value) 61135 { 61136 return bcm_esw_xflow_macsec_control_set(unit, flags, instance_id, type, value); 61137 } 61138 #endif 61139 #endif 61140 61141 #if defined(INCLUDE_XFLOW_MACSEC) 61142 #ifdef BCM_TOMAHAWK3_SUPPORT 61143 int 61144 bcm_tomahawk3_xflow_macsec_decrypt_flow_create( 61145 int unit, 61146 uint32 flags, 61147 bcm_xflow_macsec_instance_id_t instance_id, 61148 bcm_xflow_macsec_decrypt_flow_info_t *flow_info, 61149 int priority, 61150 bcm_xflow_macsec_flow_id_t *flow_id) 61151 { 61152 return bcm_esw_xflow_macsec_decrypt_flow_create(unit, flags, instance_id, flow_info, priority, flow_id); 61153 } 61154 #endif 61155 #endif 61156 61157 #if defined(INCLUDE_XFLOW_MACSEC) 61158 #ifdef BCM_TOMAHAWK3_SUPPORT 61159 int 61160 bcm_tomahawk3_xflow_macsec_decrypt_flow_destroy( 61161 int unit, 61162 bcm_xflow_macsec_flow_id_t flow_id) 61163 { 61164 return bcm_esw_xflow_macsec_decrypt_flow_destroy(unit, flow_id); 61165 } 61166 #endif 61167 #endif 61168 61169 #if defined(INCLUDE_XFLOW_MACSEC) 61170 #ifdef BCM_TOMAHAWK3_SUPPORT 61171 int 61172 bcm_tomahawk3_xflow_macsec_decrypt_flow_enable_get( 61173 int unit, 61174 bcm_xflow_macsec_flow_id_t flow_id, 61175 int *enable) 61176 { 61177 return bcm_esw_xflow_macsec_decrypt_flow_enable_get(unit, flow_id, enable); 61178 } 61179 #endif 61180 #endif 61181 61182 #if defined(INCLUDE_XFLOW_MACSEC) 61183 #ifdef BCM_TOMAHAWK3_SUPPORT 61184 int 61185 bcm_tomahawk3_xflow_macsec_decrypt_flow_enable_set( 61186 int unit, 61187 bcm_xflow_macsec_flow_id_t flow_id, 61188 int enable) 61189 { 61190 return bcm_esw_xflow_macsec_decrypt_flow_enable_set(unit, flow_id, enable); 61191 } 61192 #endif 61193 #endif 61194 61195 #if defined(INCLUDE_XFLOW_MACSEC) 61196 #ifdef BCM_TOMAHAWK3_SUPPORT 61197 int 61198 bcm_tomahawk3_xflow_macsec_decrypt_flow_get( 61199 int unit, 61200 bcm_xflow_macsec_flow_id_t flow_id, 61201 bcm_xflow_macsec_decrypt_flow_info_t *flow_info, 61202 int *priority) 61203 { 61204 return bcm_esw_xflow_macsec_decrypt_flow_get(unit, flow_id, flow_info, priority); 61205 } 61206 #endif 61207 #endif 61208 61209 #if defined(INCLUDE_XFLOW_MACSEC) 61210 #ifdef BCM_TOMAHAWK3_SUPPORT 61211 int 61212 bcm_tomahawk3_xflow_macsec_decrypt_flow_set( 61213 int unit, 61214 bcm_xflow_macsec_flow_id_t flow_id, 61215 bcm_xflow_macsec_decrypt_flow_info_t *flow_info, 61216 int priority) 61217 { 61218 return bcm_esw_xflow_macsec_decrypt_flow_set(unit, flow_id, flow_info, priority); 61219 } 61220 #endif 61221 #endif 61222 61223 #if defined(INCLUDE_XFLOW_MACSEC) 61224 #ifdef BCM_TOMAHAWK3_SUPPORT 61225 int 61226 bcm_tomahawk3_xflow_macsec_decrypt_policy_create( 61227 int unit, 61228 uint32 flags, 61229 bcm_xflow_macsec_instance_id_t instance_id, 61230 bcm_xflow_macsec_decrypt_policy_info_t *policy_info, 61231 bcm_xflow_macsec_policy_id_t *policy_id) 61232 { 61233 return bcm_esw_xflow_macsec_decrypt_policy_create(unit, flags, instance_id, policy_info, policy_id); 61234 } 61235 #endif 61236 #endif 61237 61238 #if defined(INCLUDE_XFLOW_MACSEC) 61239 #ifdef BCM_TOMAHAWK3_SUPPORT 61240 int 61241 bcm_tomahawk3_xflow_macsec_decrypt_policy_destroy( 61242 int unit, 61243 bcm_xflow_macsec_policy_id_t policy_id) 61244 { 61245 return bcm_esw_xflow_macsec_decrypt_policy_destroy(unit, policy_id); 61246 } 61247 #endif 61248 #endif 61249 61250 #if defined(INCLUDE_XFLOW_MACSEC) 61251 #ifdef BCM_TOMAHAWK3_SUPPORT 61252 int 61253 bcm_tomahawk3_xflow_macsec_decrypt_policy_get( 61254 int unit, 61255 bcm_xflow_macsec_policy_id_t policy_id, 61256 bcm_xflow_macsec_decrypt_policy_info_t *policy_info) 61257 { 61258 return bcm_esw_xflow_macsec_decrypt_policy_get(unit, policy_id, policy_info); 61259 } 61260 #endif 61261 #endif 61262 61263 #if defined(INCLUDE_XFLOW_MACSEC) 61264 #ifdef BCM_TOMAHAWK3_SUPPORT 61265 int 61266 bcm_tomahawk3_xflow_macsec_decrypt_policy_set( 61267 int unit, 61268 bcm_xflow_macsec_policy_id_t policy_id, 61269 bcm_xflow_macsec_decrypt_policy_info_t *policy_info) 61270 { 61271 return bcm_esw_xflow_macsec_decrypt_policy_set(unit, policy_id, policy_info); 61272 } 61273 #endif 61274 #endif 61275 61276 #if defined(INCLUDE_XFLOW_MACSEC) 61277 #ifdef BCM_TOMAHAWK3_SUPPORT 61278 int 61279 bcm_tomahawk3_xflow_macsec_event_deregister( 61280 int unit, 61281 bcm_xflow_macsec_event_cb cb) 61282 { 61283 return bcm_esw_xflow_macsec_event_deregister(unit, cb); 61284 } 61285 #endif 61286 #endif 61287 61288 #if defined(INCLUDE_XFLOW_MACSEC) 61289 #ifdef BCM_TOMAHAWK3_SUPPORT 61290 int 61291 bcm_tomahawk3_xflow_macsec_event_register( 61292 int unit, 61293 bcm_xflow_macsec_event_cb cb, 61294 void *user_data) 61295 { 61296 return bcm_esw_xflow_macsec_event_register(unit, cb, user_data); 61297 } 61298 #endif 61299 #endif 61300 61301 #if defined(INCLUDE_XFLOW_MACSEC) 61302 #ifdef BCM_TOMAHAWK3_SUPPORT 61303 int 61304 bcm_tomahawk3_xflow_macsec_mac_addr_control_get( 61305 int unit, 61306 uint32 flags, 61307 bcm_xflow_macsec_instance_id_t instance_id, 61308 bcm_xflow_macsec_mac_addr_control_t control_type, 61309 bcm_xflow_macsec_mac_addr_info_t *control_info) 61310 { 61311 return bcm_esw_xflow_macsec_mac_addr_control_get(unit, flags, instance_id, control_type, control_info); 61312 } 61313 #endif 61314 #endif 61315 61316 #if defined(INCLUDE_XFLOW_MACSEC) 61317 #ifdef BCM_TOMAHAWK3_SUPPORT 61318 int 61319 bcm_tomahawk3_xflow_macsec_mac_addr_control_set( 61320 int unit, 61321 uint32 flags, 61322 bcm_xflow_macsec_instance_id_t instance_id, 61323 bcm_xflow_macsec_mac_addr_control_t control_type, 61324 bcm_xflow_macsec_mac_addr_info_t *control_info) 61325 { 61326 return bcm_esw_xflow_macsec_mac_addr_control_set(unit, flags, instance_id, control_type, control_info); 61327 } 61328 #endif 61329 #endif 61330 61331 #if defined(INCLUDE_XFLOW_MACSEC) 61332 #ifdef BCM_TOMAHAWK3_SUPPORT 61333 int 61334 bcm_tomahawk3_xflow_macsec_mtu_get( 61335 int unit, 61336 int flags, 61337 bcm_xflow_macsec_instance_id_t instance_id, 61338 bcm_xflow_macsec_mtu_t mtu_sel, 61339 uint32 *mtu) 61340 { 61341 return bcm_esw_xflow_macsec_mtu_get(unit, flags, instance_id, mtu_sel, mtu); 61342 } 61343 #endif 61344 #endif 61345 61346 #if defined(INCLUDE_XFLOW_MACSEC) 61347 #ifdef BCM_TOMAHAWK3_SUPPORT 61348 int 61349 bcm_tomahawk3_xflow_macsec_mtu_set( 61350 int unit, 61351 int flags, 61352 bcm_xflow_macsec_instance_id_t instance_id, 61353 uint32 mtu, 61354 bcm_xflow_macsec_mtu_t *mtu_sel) 61355 { 61356 return bcm_esw_xflow_macsec_mtu_set(unit, flags, instance_id, mtu, mtu_sel); 61357 } 61358 #endif 61359 #endif 61360 61361 #if defined(INCLUDE_XFLOW_MACSEC) 61362 #ifdef BCM_TOMAHAWK3_SUPPORT 61363 int 61364 bcm_tomahawk3_xflow_macsec_sectag_etype_get( 61365 int unit, 61366 bcm_xflow_macsec_instance_id_t instance_id, 61367 bcm_xflow_macsec_sectag_ethertype_t sectag_etype_sel, 61368 uint32 *sectag_etype) 61369 { 61370 return bcm_esw_xflow_macsec_sectag_etype_get(unit, instance_id, sectag_etype_sel, sectag_etype); 61371 } 61372 #endif 61373 #endif 61374 61375 #if defined(INCLUDE_XFLOW_MACSEC) 61376 #ifdef BCM_TOMAHAWK3_SUPPORT 61377 int 61378 bcm_tomahawk3_xflow_macsec_sectag_etype_set( 61379 int unit, 61380 int flags, 61381 bcm_xflow_macsec_instance_id_t instance_id, 61382 uint32 sectag_etype, 61383 bcm_xflow_macsec_sectag_ethertype_t *sectag_etype_sel) 61384 { 61385 return bcm_esw_xflow_macsec_sectag_etype_set(unit, flags, instance_id, sectag_etype, sectag_etype_sel); 61386 } 61387 #endif 61388 #endif 61389 61390 #if defined(INCLUDE_XFLOW_MACSEC) 61391 #ifdef BCM_TOMAHAWK3_SUPPORT 61392 int 61393 bcm_tomahawk3_xflow_macsec_secure_assoc_create( 61394 int unit, 61395 uint32 flags, 61396 bcm_xflow_macsec_secure_chan_id_t chan_id, 61397 bcm_xflow_macsec_secure_assoc_info_t *assoc_info, 61398 bcm_xflow_macsec_secure_assoc_id_t *assoc_id) 61399 { 61400 return bcm_esw_xflow_macsec_secure_assoc_create(unit, flags, chan_id, assoc_info, assoc_id); 61401 } 61402 #endif 61403 #endif 61404 61405 #if defined(INCLUDE_XFLOW_MACSEC) 61406 #ifdef BCM_TOMAHAWK3_SUPPORT 61407 int 61408 bcm_tomahawk3_xflow_macsec_secure_assoc_destroy( 61409 int unit, 61410 bcm_xflow_macsec_secure_assoc_id_t assoc_id) 61411 { 61412 return bcm_esw_xflow_macsec_secure_assoc_destroy(unit, assoc_id); 61413 } 61414 #endif 61415 #endif 61416 61417 #if defined(INCLUDE_XFLOW_MACSEC) 61418 #ifdef BCM_TOMAHAWK3_SUPPORT 61419 int 61420 bcm_tomahawk3_xflow_macsec_secure_assoc_get( 61421 int unit, 61422 bcm_xflow_macsec_secure_assoc_id_t assoc_id, 61423 bcm_xflow_macsec_secure_assoc_info_t *assoc_info, 61424 bcm_xflow_macsec_secure_chan_id_t *chan_id) 61425 { 61426 return bcm_esw_xflow_macsec_secure_assoc_get(unit, assoc_id, assoc_info, chan_id); 61427 } 61428 #endif 61429 #endif 61430 61431 #if defined(INCLUDE_XFLOW_MACSEC) 61432 #ifdef BCM_TOMAHAWK3_SUPPORT 61433 int 61434 bcm_tomahawk3_xflow_macsec_secure_assoc_set( 61435 int unit, 61436 bcm_xflow_macsec_secure_assoc_id_t assoc_id, 61437 bcm_xflow_macsec_secure_assoc_info_t *assoc_info) 61438 { 61439 return bcm_esw_xflow_macsec_secure_assoc_set(unit, assoc_id, assoc_info); 61440 } 61441 #endif 61442 #endif 61443 61444 #if defined(INCLUDE_XFLOW_MACSEC) 61445 #ifdef BCM_TOMAHAWK3_SUPPORT 61446 int 61447 bcm_tomahawk3_xflow_macsec_secure_assoc_traverse( 61448 int unit, 61449 bcm_xflow_macsec_secure_chan_id_t chan_id, 61450 bcm_xflow_macsec_secure_assoc_traverse_cb callback, 61451 void *user_data) 61452 { 61453 return bcm_esw_xflow_macsec_secure_assoc_traverse(unit, chan_id, callback, user_data); 61454 } 61455 #endif 61456 #endif 61457 61458 #if defined(INCLUDE_XFLOW_MACSEC) 61459 #ifdef BCM_TOMAHAWK3_SUPPORT 61460 int 61461 bcm_tomahawk3_xflow_macsec_secure_chan_create( 61462 int unit, 61463 uint32 flags, 61464 bcm_xflow_macsec_instance_id_t instance_id, 61465 bcm_xflow_macsec_secure_chan_info_t *chan_info, 61466 int priority, 61467 bcm_xflow_macsec_secure_chan_id_t *chan_id) 61468 { 61469 return bcm_esw_xflow_macsec_secure_chan_create(unit, flags, instance_id, chan_info, priority, chan_id); 61470 } 61471 #endif 61472 #endif 61473 61474 #if defined(INCLUDE_XFLOW_MACSEC) 61475 #ifdef BCM_TOMAHAWK3_SUPPORT 61476 int 61477 bcm_tomahawk3_xflow_macsec_secure_chan_destroy( 61478 int unit, 61479 bcm_xflow_macsec_secure_chan_id_t chan_id) 61480 { 61481 return bcm_esw_xflow_macsec_secure_chan_destroy(unit, chan_id); 61482 } 61483 #endif 61484 #endif 61485 61486 #if defined(INCLUDE_XFLOW_MACSEC) 61487 #ifdef BCM_TOMAHAWK3_SUPPORT 61488 int 61489 bcm_tomahawk3_xflow_macsec_secure_chan_enable_get( 61490 int unit, 61491 bcm_xflow_macsec_secure_chan_id_t chan_id, 61492 int *enable) 61493 { 61494 return bcm_esw_xflow_macsec_secure_chan_enable_get(unit, chan_id, enable); 61495 } 61496 #endif 61497 #endif 61498 61499 #if defined(INCLUDE_XFLOW_MACSEC) 61500 #ifdef BCM_TOMAHAWK3_SUPPORT 61501 int 61502 bcm_tomahawk3_xflow_macsec_secure_chan_enable_set( 61503 int unit, 61504 bcm_xflow_macsec_secure_chan_id_t chan_id, 61505 int enable) 61506 { 61507 return bcm_esw_xflow_macsec_secure_chan_enable_set(unit, chan_id, enable); 61508 } 61509 #endif 61510 #endif 61511 61512 #if defined(INCLUDE_XFLOW_MACSEC) 61513 #ifdef BCM_TOMAHAWK3_SUPPORT 61514 int 61515 bcm_tomahawk3_xflow_macsec_secure_chan_get( 61516 int unit, 61517 bcm_xflow_macsec_secure_chan_id_t chan_id, 61518 bcm_xflow_macsec_secure_chan_info_t *chan_info, 61519 int *priority) 61520 { 61521 return bcm_esw_xflow_macsec_secure_chan_get(unit, chan_id, chan_info, priority); 61522 } 61523 #endif 61524 #endif 61525 61526 #if defined(INCLUDE_XFLOW_MACSEC) 61527 #ifdef BCM_TOMAHAWK3_SUPPORT 61528 int 61529 bcm_tomahawk3_xflow_macsec_secure_chan_info_traverse( 61530 int unit, 61531 uint32 flags, 61532 bcm_xflow_macsec_instance_id_t instance_id, 61533 bcm_xflow_macsec_chan_traverse_cb callback, 61534 void *user_data) 61535 { 61536 return bcm_esw_xflow_macsec_secure_chan_info_traverse(unit, flags, instance_id, callback, user_data); 61537 } 61538 #endif 61539 #endif 61540 61541 #if defined(INCLUDE_XFLOW_MACSEC) 61542 #ifdef BCM_TOMAHAWK3_SUPPORT 61543 int 61544 bcm_tomahawk3_xflow_macsec_secure_chan_set( 61545 int unit, 61546 uint32 flags, 61547 bcm_xflow_macsec_secure_chan_id_t chan_id, 61548 bcm_xflow_macsec_secure_chan_info_t *chan_info, 61549 int priority) 61550 { 61551 return bcm_esw_xflow_macsec_secure_chan_set(unit, flags, chan_id, chan_info, priority); 61552 } 61553 #endif 61554 #endif 61555 61556 #if defined(INCLUDE_XFLOW_MACSEC) 61557 #ifdef BCM_TOMAHAWK3_SUPPORT 61558 int 61559 bcm_tomahawk3_xflow_macsec_stat_get( 61560 int unit, 61561 uint32 flags, 61562 bcm_xflow_macsec_id_t id, 61563 bcm_xflow_macsec_stat_type_t stat_type, 61564 uint64 *value) 61565 { 61566 return bcm_esw_xflow_macsec_stat_get(unit, flags, id, stat_type, value); 61567 } 61568 #endif 61569 #endif 61570 61571 #if defined(INCLUDE_XFLOW_MACSEC) 61572 #ifdef BCM_TOMAHAWK3_SUPPORT 61573 int 61574 bcm_tomahawk3_xflow_macsec_stat_multi_get( 61575 int unit, 61576 uint32 flags, 61577 bcm_xflow_macsec_id_t id, 61578 uint32 num_stats, 61579 bcm_xflow_macsec_stat_type_t *stat_type_array, 61580 uint64 *value_array) 61581 { 61582 return bcm_esw_xflow_macsec_stat_multi_get(unit, flags, id, num_stats, stat_type_array, value_array); 61583 } 61584 #endif 61585 #endif 61586 61587 #if defined(INCLUDE_XFLOW_MACSEC) 61588 #ifdef BCM_TOMAHAWK3_SUPPORT 61589 int 61590 bcm_tomahawk3_xflow_macsec_stat_multi_set( 61591 int unit, 61592 uint32 flags, 61593 bcm_xflow_macsec_id_t id, 61594 uint32 num_stats, 61595 bcm_xflow_macsec_stat_type_t *stat_type_array, 61596 uint64 *value_array) 61597 { 61598 return bcm_esw_xflow_macsec_stat_multi_set(unit, flags, id, num_stats, stat_type_array, value_array); 61599 } 61600 #endif 61601 #endif 61602 61603 #if defined(INCLUDE_XFLOW_MACSEC) 61604 #ifdef BCM_TOMAHAWK3_SUPPORT 61605 int 61606 bcm_tomahawk3_xflow_macsec_stat_set( 61607 int unit, 61608 uint32 flags, 61609 bcm_xflow_macsec_id_t id, 61610 bcm_xflow_macsec_stat_type_t stat_type, 61611 uint64 value) 61612 { 61613 return bcm_esw_xflow_macsec_stat_set(unit, flags, id, stat_type, value); 61614 } 61615 #endif 61616 #endif 61617 61618 #if defined(INCLUDE_XFLOW_MACSEC) 61619 #ifdef BCM_TOMAHAWK3_SUPPORT 61620 int 61621 bcm_tomahawk3_xflow_macsec_subport_id_get( 61622 int unit, 61623 bcm_xflow_macsec_id_t id, 61624 bcm_xflow_macsec_subport_id_t *macsec_subport_id) 61625 { 61626 return bcm_esw_xflow_macsec_subport_id_get(unit, id, macsec_subport_id); 61627 } 61628 #endif 61629 #endif 61630 61631 #if defined(INCLUDE_XFLOW_MACSEC) 61632 #ifdef BCM_TOMAHAWK3_SUPPORT 61633 int 61634 bcm_tomahawk3_xflow_macsec_vlan_tpid_array_get( 61635 int unit, 61636 bcm_xflow_macsec_instance_id_t instance_id, 61637 bcm_xflow_macsec_vlan_tpid_t *vlan_tpid) 61638 { 61639 return bcm_esw_xflow_macsec_vlan_tpid_array_get(unit, instance_id, vlan_tpid); 61640 } 61641 #endif 61642 #endif 61643 61644 #if defined(INCLUDE_XFLOW_MACSEC) 61645 #ifdef BCM_TOMAHAWK3_SUPPORT 61646 int 61647 bcm_tomahawk3_xflow_macsec_vlan_tpid_array_index_get( 61648 int unit, 61649 bcm_xflow_macsec_instance_id_t instance_id, 61650 uint32 vlan_tpid, 61651 uint8 *tpid_index_sel) 61652 { 61653 return bcm_esw_xflow_macsec_vlan_tpid_array_index_get(unit, instance_id, vlan_tpid, tpid_index_sel); 61654 } 61655 #endif 61656 #endif 61657 61658 #if defined(INCLUDE_XFLOW_MACSEC) 61659 #ifdef BCM_TOMAHAWK3_SUPPORT 61660 int 61661 bcm_tomahawk3_xflow_macsec_vlan_tpid_array_set( 61662 int unit, 61663 bcm_xflow_macsec_instance_id_t instance_id, 61664 bcm_xflow_macsec_vlan_tpid_t *vlan_tpid) 61665 { 61666 return bcm_esw_xflow_macsec_vlan_tpid_array_set(unit, instance_id, vlan_tpid); 61667 } 61668 #endif 61669 #endif 61670