Applied on 2618.
 
Thanks
Tzachi

________________________________

        From: [email protected]
[mailto:[email protected]] On Behalf Of Tzachi Dar
        Sent: Wednesday, December 02, 2009 6:12 PM
        To: [email protected]
        Subject: [ofw] patch: Fix for vlan handling.
        
        
        signed off by:galina
        Index: port.c
        
===================================================================
        --- port.c (revision 5159)
        +++ port.c (revision 5160)
        @@ -60,6 +60,10 @@
           table->refs[i] = 0;
          }
          table->max = 1 << dev->caps.log_num_vlans;
        + if(table->max > MLX4_MAX_VLAN_NUM)
        + {
        +  table->max = MLX4_MAX_VLAN_NUM;
        + }
          table->total = 0;
         }
         
        @@ -112,7 +116,7 @@
          }
          mlx4_dbg(dev, "Free mac index is %d\n", free);
         
        - if (table->total == table->max) {
        + if (table->total == table->max || free < 0) {
           /* No free mac entries */
           err = -ENOSPC;
           goto out;
        @@ -207,7 +211,7 @@
           }
          }
         
        - if (table->total == table->max) {
        + if (table->total == table->max || free < 0) {
           /* No free vlan entries */
           err = -ENOSPC;
           goto out;
        

_______________________________________________
ofw mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/ofw

Reply via email to