Files
@ bd21c8aa7237
Branch filter:
Location: vmkdrivers/vmkdrivers/src_9/drivers/net/igb/igb_procfs.c - annotation
bd21c8aa7237
25.5 KiB
text/x-csrc
ESXi-6.0.0b
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 | 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 95e39e5412bd 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 95e39e5412bd 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 95e39e5412bd 95e39e5412bd 95e39e5412bd 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 95e39e5412bd 95e39e5412bd 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 95e39e5412bd 95e39e5412bd 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 95e39e5412bd 95e39e5412bd 95e39e5412bd 95e39e5412bd 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 89a4bb14d085 | /*******************************************************************************
Intel(R) Gigabit Ethernet Linux driver
Copyright(c) 2007-2013 Intel Corporation.
This program is free software; you can redistribute it and/or modify it
under the terms and conditions of the GNU General Public License,
version 2, as published by the Free Software Foundation.
This program is distributed in the hope it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
The full GNU General Public License is included in this distribution in
the file called "COPYING".
Contact Information:
e1000-devel Mailing List <e1000-devel@lists.sourceforge.net>
Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
*******************************************************************************/
#include "igb.h"
#include "e1000_82575.h"
#include "e1000_hw.h"
#ifndef IGB_HWMON
#include <linux/module.h>
#include <linux/types.h>
#include <linux/proc_fs.h>
#include <linux/device.h>
#include <linux/netdevice.h>
static struct proc_dir_entry *igb_top_dir = NULL;
#ifdef __VMKLNX__
static struct net_device_stats *procfs_get_stats(struct net_device *netdev)
{
#ifndef HAVE_NETDEV_STATS_IN_NETDEV
struct igb_adapter *adapter;
#endif
if (netdev == NULL)
return NULL;
#ifdef HAVE_NETDEV_STATS_IN_NETDEV
/* only return the current stats */
return &netdev->stats;
#else
adapter = netdev_priv(netdev);
/* only return the current stats */
return &adapter->net_stats;
#endif /* HAVE_NETDEV_STATS_IN_NETDEV */
}
#endif /* __VMKLNX__ */
bool igb_thermal_present(struct igb_adapter *adapter)
{
s32 status;
struct e1000_hw *hw;
if (adapter == NULL)
return false;
hw = &adapter->hw;
/*
* Only set I2C bit-bang mode if an external thermal sensor is
* supported on this device.
*/
if (adapter->ets) {
status = e1000_set_i2c_bb(hw);
if (status != E1000_SUCCESS)
return false;
}
status = hw->mac.ops.init_thermal_sensor_thresh(hw);
if (status != E1000_SUCCESS)
return false;
return true;
}
#ifdef __VMKLNX__
static int igb_fwbanner(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
return snprintf(page, count, "0x%08x\n", adapter->etrack_id);
}
static int igb_portspeed(char *page, char **start, off_t off,
int count, int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
int speed = 0;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
switch (adapter->link_speed) {
case E1000_STATUS_SPEED_10:
speed = 10;
break;
case E1000_STATUS_SPEED_100:
speed = 100;
break;
case E1000_STATUS_SPEED_1000:
speed = 1000;
break;
}
return snprintf(page, count, "%d\n", speed);
}
static int igb_wqlflag(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
return snprintf(page, count, "%d\n", adapter->wol);
}
static int igb_xflowctl(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct e1000_hw *hw;
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
hw = &adapter->hw;
if (hw == NULL)
return snprintf(page, count, "error: no hw data\n");
return snprintf(page, count, "%d\n", hw->fc.current_mode);
}
static int igb_rxdrops(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
struct net_device_stats *net_stats;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
net_stats = procfs_get_stats(adapter->netdev);
if (net_stats == NULL)
return snprintf(page, count, "error: no net stats\n");
return snprintf(page, count, "%lu\n",
net_stats->rx_dropped);
}
static int igb_rxerrors(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
struct net_device_stats *net_stats;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
net_stats = procfs_get_stats(adapter->netdev);
if (net_stats == NULL)
return snprintf(page, count, "error: no net stats\n");
return snprintf(page, count, "%lu\n", net_stats->rx_errors);
}
static int igb_rxupacks(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct e1000_hw *hw;
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
hw = &adapter->hw;
if (hw == NULL)
return snprintf(page, count, "error: no hw data\n");
return snprintf(page, count, "%d\n", E1000_READ_REG(hw, E1000_TPR));
}
static int igb_rxmpacks(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct e1000_hw *hw;
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
hw = &adapter->hw;
if (hw == NULL)
return snprintf(page, count, "error: no hw data\n");
return snprintf(page, count, "%d\n",
E1000_READ_REG(hw, E1000_MPRC));
}
static int igb_rxbpacks(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct e1000_hw *hw;
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
hw = &adapter->hw;
if (hw == NULL)
return snprintf(page, count, "error: no hw data\n");
return snprintf(page, count, "%d\n",
E1000_READ_REG(hw, E1000_BPRC));
}
static int igb_txupacks(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct e1000_hw *hw;
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
hw = &adapter->hw;
if (hw == NULL)
return snprintf(page, count, "error: no hw data\n");
return snprintf(page, count, "%d\n", E1000_READ_REG(hw, E1000_TPT));
}
static int igb_txmpacks(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct e1000_hw *hw;
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
hw = &adapter->hw;
if (hw == NULL)
return snprintf(page, count, "error: no hw data\n");
return snprintf(page, count, "%d\n",
E1000_READ_REG(hw, E1000_MPTC));
}
static int igb_txbpacks(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct e1000_hw *hw;
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
hw = &adapter->hw;
if (hw == NULL)
return snprintf(page, count, "error: no hw data\n");
return snprintf(page, count, "%d\n",
E1000_READ_REG(hw, E1000_BPTC));
}
static int igb_txerrors(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
struct net_device_stats *net_stats;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
net_stats = procfs_get_stats(adapter->netdev);
if (net_stats == NULL)
return snprintf(page, count, "error: no net stats\n");
return snprintf(page, count, "%lu\n",
net_stats->tx_errors);
}
static int igb_txdrops(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
struct net_device_stats *net_stats;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
net_stats = procfs_get_stats(adapter->netdev);
if (net_stats == NULL)
return snprintf(page, count, "error: no net stats\n");
return snprintf(page, count, "%lu\n",
net_stats->tx_dropped);
}
static int igb_rxframes(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
struct net_device_stats *net_stats;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
net_stats = procfs_get_stats(adapter->netdev);
if (net_stats == NULL)
return snprintf(page, count, "error: no net stats\n");
return snprintf(page, count, "%lu\n",
net_stats->rx_packets);
}
static int igb_rxbytes(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
struct net_device_stats *net_stats;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
net_stats = procfs_get_stats(adapter->netdev);
if (net_stats == NULL)
return snprintf(page, count, "error: no net stats\n");
return snprintf(page, count, "%lu\n",
net_stats->rx_bytes);
}
static int igb_txframes(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
struct net_device_stats *net_stats;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
net_stats = procfs_get_stats(adapter->netdev);
if (net_stats == NULL)
return snprintf(page, count, "error: no net stats\n");
return snprintf(page, count, "%lu\n",
net_stats->tx_packets);
}
static int igb_txbytes(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
struct net_device_stats *net_stats;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
net_stats = procfs_get_stats(adapter->netdev);
if (net_stats == NULL)
return snprintf(page, count, "error: no net stats\n");
return snprintf(page, count, "%lu\n",
net_stats->tx_bytes);
}
static int igb_linkstat(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
int bitmask = 0;
struct e1000_hw *hw;
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
hw = &adapter->hw;
if (hw == NULL)
return snprintf(page, count, "error: no hw data\n");
if (!test_bit(__IGB_DOWN, &adapter->state))
bitmask |= 1;
if (igb_has_link(adapter))
bitmask |= 2;
if (adapter->old_lsc != hw->mac.get_link_status) {
bitmask |= 4;
adapter->old_lsc = hw->mac.get_link_status;
}
return snprintf(page, count, "0x%X\n", bitmask);
}
static int igb_funcid(char *page, char **start, off_t off,
int count, int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
struct net_device* netdev;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
netdev = adapter->netdev;
if (netdev == NULL)
return snprintf(page, count, "error: no net device\n");
return snprintf(page, count, "0x%lX\n", netdev->base_addr);
}
static int igb_funcvers(char *page, char **start, off_t off,
int count, int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
struct net_device* netdev;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
netdev = adapter->netdev;
if (netdev == NULL)
return snprintf(page, count, "error: no net device\n");
return snprintf(page, count, "%s\n", igb_driver_version);
}
static int igb_maclla1(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct e1000_hw *hw;
u16 eeprom_buff[6];
int first_word = 0x37;
int word_count = 6;
int rc;
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
hw = &adapter->hw;
if (hw == NULL)
return snprintf(page, count, "error: no hw data\n");
rc = e1000_read_nvm(hw, first_word, word_count,
eeprom_buff);
if (rc != E1000_SUCCESS)
return 0;
switch (hw->bus.func) {
case 0:
return snprintf(page, count, "0x%04X%04X%04X\n",
eeprom_buff[0],
eeprom_buff[1],
eeprom_buff[2]);
case 1:
return snprintf(page, count, "0x%04X%04X%04X\n",
eeprom_buff[3],
eeprom_buff[4],
eeprom_buff[5]);
}
return snprintf(page, count, "unexpected port %d\n", hw->bus.func);
}
static int igb_mtusize(char *page, char **start, off_t off,
int count, int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
struct net_device* netdev;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
netdev = adapter->netdev;
if (netdev == NULL)
return snprintf(page, count, "error: no net device\n");
return snprintf(page, count, "%d\n", netdev->mtu);
}
static int igb_featflag(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
int bitmask = 0;
#ifndef HAVE_NDO_SET_FEATURES
struct igb_ring *ring;
#endif
struct igb_adapter *adapter = (struct igb_adapter *)data;
struct net_device *netdev;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
netdev = adapter->netdev;
if (netdev == NULL)
return snprintf(page, count, "error: no net device\n");
#ifndef HAVE_NDO_SET_FEATURES
/* igb_get_rx_csum(netdev) doesn't compile so hard code */
ring = adapter->rx_ring[0];
bitmask = test_bit(IGB_RING_FLAG_RX_CSUM, &ring->flags);
return snprintf(page, count, "%d\n", bitmask);
#else
if (netdev->features & NETIF_F_RXCSUM)
bitmask |= 1;
return snprintf(page, count, "%d\n", bitmask);
#endif
}
static int igb_lsominct(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
return snprintf(page, count, "%d\n", 1);
}
static int igb_prommode(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
struct net_device *netdev;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
netdev = adapter->netdev;
if (netdev == NULL)
return snprintf(page, count, "error: no net device\n");
return snprintf(page, count, "%d\n",
netdev->flags & IFF_PROMISC);
}
static int igb_txdscqsz(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
return snprintf(page, count, "%d\n", adapter->tx_ring[0]->count);
}
static int igb_rxdscqsz(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
return snprintf(page, count, "%d\n", adapter->rx_ring[0]->count);
}
static int igb_rxqavg(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
int index;
int totaldiff = 0;
u16 ntc;
u16 ntu;
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
if (adapter->num_rx_queues <= 0)
return snprintf(page, count,
"can't calculate, number of queues %d\n",
adapter->num_rx_queues);
for (index = 0; index < adapter->num_rx_queues; index++) {
ntc = adapter->rx_ring[index]->next_to_clean;
ntu = adapter->rx_ring[index]->next_to_use;
if (ntc >= ntu)
totaldiff += (ntc - ntu);
else
totaldiff += (adapter->rx_ring[index]->count
- ntu + ntc);
}
if (adapter->num_rx_queues <= 0)
return snprintf(page, count,
"can't calculate, number of queues %d\n",
adapter->num_rx_queues);
return snprintf(page, count, "%d\n", totaldiff/adapter->num_rx_queues);
}
static int igb_txqavg(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
int index;
int totaldiff = 0;
u16 ntc;
u16 ntu;
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
if (adapter->num_tx_queues <= 0)
return snprintf(page, count,
"can't calculate, number of queues %d\n",
adapter->num_tx_queues);
for (index = 0; index < adapter->num_tx_queues; index++) {
ntc = adapter->tx_ring[index]->next_to_clean;
ntu = adapter->tx_ring[index]->next_to_use;
if (ntc >= ntu)
totaldiff += (ntc - ntu);
else
totaldiff += (adapter->tx_ring[index]->count
- ntu + ntc);
}
if (adapter->num_tx_queues <= 0)
return snprintf(page, count,
"can't calculate, number of queues %d\n",
adapter->num_tx_queues);
return snprintf(page, count, "%d\n",
totaldiff/adapter->num_tx_queues);
}
static int igb_iovotype(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
return snprintf(page, count, "2\n");
}
static int igb_funcnbr(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
return snprintf(page, count, "%d\n", adapter->vfs_allocated_count);
}
#endif /* __VMKLNX__ */
static int igb_macburn(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct e1000_hw *hw;
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
hw = &adapter->hw;
if (hw == NULL)
return snprintf(page, count, "error: no hw data\n");
return snprintf(page, count, "0x%02X%02X%02X%02X%02X%02X\n",
(unsigned int)hw->mac.perm_addr[0],
(unsigned int)hw->mac.perm_addr[1],
(unsigned int)hw->mac.perm_addr[2],
(unsigned int)hw->mac.perm_addr[3],
(unsigned int)hw->mac.perm_addr[4],
(unsigned int)hw->mac.perm_addr[5]);
}
static int igb_macadmn(char *page, char **start, off_t off,
int count, int *eof, void *data)
{
struct e1000_hw *hw;
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
hw = &adapter->hw;
if (hw == NULL)
return snprintf(page, count, "error: no hw data\n");
return snprintf(page, count, "0x%02X%02X%02X%02X%02X%02X\n",
(unsigned int)hw->mac.addr[0],
(unsigned int)hw->mac.addr[1],
(unsigned int)hw->mac.addr[2],
(unsigned int)hw->mac.addr[3],
(unsigned int)hw->mac.addr[4],
(unsigned int)hw->mac.addr[5]);
}
static int igb_numeports(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct e1000_hw *hw;
int ports;
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
hw = &adapter->hw;
if (hw == NULL)
return snprintf(page, count, "error: no hw data\n");
ports = 4;
return snprintf(page, count, "%d\n", ports);
}
static int igb_porttype(char *page, char **start, off_t off, int count,
int *eof, void *data)
{
struct igb_adapter *adapter = (struct igb_adapter *)data;
if (adapter == NULL)
return snprintf(page, count, "error: no adapter\n");
return snprintf(page, count, "%d\n",
test_bit(__IGB_DOWN, &adapter->state));
}
static int igb_therm_location(char *page, char **start, off_t off,
int count, int *eof, void *data)
{
struct igb_therm_proc_data *therm_data =
(struct igb_therm_proc_data *)data;
if (therm_data == NULL)
return snprintf(page, count, "error: no therm_data\n");
return snprintf(page, count, "%d\n", therm_data->sensor_data->location);
}
static int igb_therm_maxopthresh(char *page, char **start, off_t off,
int count, int *eof, void *data)
{
struct igb_therm_proc_data *therm_data =
(struct igb_therm_proc_data *)data;
if (therm_data == NULL)
return snprintf(page, count, "error: no therm_data\n");
return snprintf(page, count, "%d\n",
therm_data->sensor_data->max_op_thresh);
}
static int igb_therm_cautionthresh(char *page, char **start, off_t off,
int count, int *eof, void *data)
{
struct igb_therm_proc_data *therm_data =
(struct igb_therm_proc_data *)data;
if (therm_data == NULL)
return snprintf(page, count, "error: no therm_data\n");
return snprintf(page, count, "%d\n",
therm_data->sensor_data->caution_thresh);
}
static int igb_therm_temp(char *page, char **start, off_t off,
int count, int *eof, void *data)
{
s32 status;
struct igb_therm_proc_data *therm_data =
(struct igb_therm_proc_data *)data;
if (therm_data == NULL)
return snprintf(page, count, "error: no therm_data\n");
status = e1000_get_thermal_sensor_data(therm_data->hw);
if (status != E1000_SUCCESS)
snprintf(page, count, "error: status %d returned\n", status);
return snprintf(page, count, "%d\n", therm_data->sensor_data->temp);
}
struct igb_proc_type{
char name[32];
int (*read)(char*, char**, off_t, int, int*, void*);
};
struct igb_proc_type igb_proc_entries[] = {
{"numeports", &igb_numeports},
{"porttype", &igb_porttype},
{"macburn", &igb_macburn},
{"macadmn", &igb_macadmn},
#ifdef __VMKLNX__
{"fwbanner", &igb_fwbanner},
{"portspeed", &igb_portspeed},
{"wqlflag", &igb_wqlflag},
{"xflowctl", &igb_xflowctl},
{"rxdrops", &igb_rxdrops},
{"rxerrors", &igb_rxerrors},
{"rxupacks", &igb_rxupacks},
{"rxmpacks", &igb_rxmpacks},
{"rxbpacks", &igb_rxbpacks},
{"txdrops", &igb_txdrops},
{"txerrors", &igb_txerrors},
{"txupacks", &igb_txupacks},
{"txmpacks", &igb_txmpacks},
{"txbpacks", &igb_txbpacks},
{"rxframes", &igb_rxframes},
{"rxbytes", &igb_rxbytes},
{"txframes", &igb_txframes},
{"txbytes", &igb_txbytes},
{"linkstat", &igb_linkstat},
{"funcid", &igb_funcid},
{"funcvers", &igb_funcvers},
{"maclla1", &igb_maclla1},
{"mtusize", &igb_mtusize},
{"featflag", &igb_featflag},
{"lsominct", &igb_lsominct},
{"prommode", &igb_prommode},
{"txdscqsz", &igb_txdscqsz},
{"rxdscqsz", &igb_rxdscqsz},
{"txqavg", &igb_txqavg},
{"rxqavg", &igb_rxqavg},
{"iovotype", &igb_iovotype},
{"funcnbr", &igb_funcnbr},
#endif /* __VMKLNX__ */
{"", NULL}
};
struct igb_proc_type igb_internal_entries[] = {
{"location", &igb_therm_location},
{"temp", &igb_therm_temp},
{"cautionthresh", &igb_therm_cautionthresh},
{"maxopthresh", &igb_therm_maxopthresh},
{"", NULL}
};
void igb_del_proc_entries(struct igb_adapter *adapter)
{
int index, i;
char buf[16]; /* much larger than the sensor number will ever be */
if (igb_top_dir == NULL)
return;
for (i = 0; i < E1000_MAX_SENSORS; i++) {
if (adapter->therm_dir[i] == NULL)
continue;
for (index = 0; ; index++) {
if (igb_internal_entries[index].read == NULL)
break;
remove_proc_entry(igb_internal_entries[index].name,
adapter->therm_dir[i]);
}
snprintf(buf, sizeof(buf), "sensor_%d", i);
remove_proc_entry(buf, adapter->info_dir);
}
if (adapter->info_dir != NULL) {
for (index = 0; ; index++) {
if (igb_proc_entries[index].read == NULL)
break;
remove_proc_entry(igb_proc_entries[index].name,
adapter->info_dir);
}
remove_proc_entry("info", adapter->eth_dir);
}
if (adapter->eth_dir != NULL)
remove_proc_entry(pci_name(adapter->pdev), igb_top_dir);
}
/* called from igb_main.c */
void igb_procfs_exit(struct igb_adapter *adapter)
{
igb_del_proc_entries(adapter);
}
int igb_procfs_topdir_init(void)
{
#ifdef __VMKLNX__
igb_top_dir = proc_mkdir("driver/igb", NULL);
#else
igb_top_dir = proc_mkdir("driver/igb", NULL);
#endif /* __VMKLNX__ */
if (igb_top_dir == NULL)
return (-ENOMEM);
return 0;
}
void igb_procfs_topdir_exit(void)
{
#ifdef __VMKLNX__
remove_proc_entry("driver/igb", NULL);
#else
remove_proc_entry("driver/igb", NULL);
#endif /* __VMKLNX__ */
}
/* called from igb_main.c */
int igb_procfs_init(struct igb_adapter *adapter)
{
int rc = 0;
int i;
int index;
char buf[16]; /* much larger than the sensor number will ever be */
adapter->eth_dir = NULL;
adapter->info_dir = NULL;
for (i = 0; i < E1000_MAX_SENSORS; i++)
adapter->therm_dir[i] = NULL;
if ( igb_top_dir == NULL ) {
rc = -ENOMEM;
goto fail;
}
adapter->eth_dir = proc_mkdir(pci_name(adapter->pdev), igb_top_dir);
if (adapter->eth_dir == NULL) {
rc = -ENOMEM;
goto fail;
}
adapter->info_dir = proc_mkdir("info", adapter->eth_dir);
if (adapter->info_dir == NULL) {
rc = -ENOMEM;
goto fail;
}
for (index = 0; ; index++) {
if (igb_proc_entries[index].read == NULL) {
break;
}
if (!(create_proc_read_entry(igb_proc_entries[index].name,
0444,
adapter->info_dir,
igb_proc_entries[index].read,
adapter))) {
rc = -ENOMEM;
goto fail;
}
}
if (igb_thermal_present(adapter) == false)
goto exit;
for (i = 0; i < E1000_MAX_SENSORS; i++) {
if (adapter->hw.mac.thermal_sensor_data.sensor[i].location== 0)
continue;
snprintf(buf, sizeof(buf), "sensor_%d", i);
adapter->therm_dir[i] = proc_mkdir(buf, adapter->info_dir);
if (adapter->therm_dir[i] == NULL) {
rc = -ENOMEM;
goto fail;
}
for (index = 0; ; index++) {
if (igb_internal_entries[index].read == NULL)
break;
/*
* therm_data struct contains pointer the read func
* will be needing
*/
adapter->therm_data[i].hw = &adapter->hw;
adapter->therm_data[i].sensor_data =
&adapter->hw.mac.thermal_sensor_data.sensor[i];
if (!(create_proc_read_entry(
igb_internal_entries[index].name,
0444,
adapter->therm_dir[i],
igb_internal_entries[index].read,
&adapter->therm_data[i]))) {
rc = -ENOMEM;
goto fail;
}
}
}
goto exit;
fail:
igb_del_proc_entries(adapter);
exit:
return rc;
}
#endif /* !IGB_HWMON */
|