title: Can the Rx/Tx Packet Buffer size be changed dynamically on a Linux NIC driver?
body: <p>At the moment, the transmit and receive packet size is defined by a macro</p>
  
  <pre><code>#define PKT_BUF_SZ          (VLAN_ETH_FRAME_LEN + NET_IP_ALIGN + 4)
  </code></pre>
  
  <p>So PKT_BUF_SZ comes to around 1524 bytes. So the NIC I am having can handle incoming packets from the network which are &lt;= 1524. Anything bigger than that causes the system to crash or worse reboot.  Using Linux kernel 2.6.32 and RHEL 6.0, and a custom FPGA NIC. </p>
  
  <p>Is there a way to change the PKY_BUF_SZ dynamically by getting the size of the incoming packet from the NIC? Will it add to the overhead? Should the hardware drop the packets before it reaches the driver ?</p>
  
  <p>Any help/suggestion will be much appreciated.  </p>