3838#define GVE_DEFAULT_RX_COPYBREAK (256)
3939
4040#define DEFAULT_MSG_LEVEL (NETIF_MSG_DRV | NETIF_MSG_LINK)
41- #define GVE_VERSION "1.4.5-0--b95625d -oot"
41+ #define GVE_VERSION "1.4.5.1 -0-d3ec7a0-d3ec7a0 -oot"
4242#define GVE_VERSION_PREFIX "GVE-"
4343
4444// Minimum amount of time between queue kicks in msec (10 seconds)
@@ -151,7 +151,7 @@ static void gve_get_stats(struct net_device *dev, struct rtnl_link_stats64 *s)
151151}
152152#if (LINUX_VERSION_CODE < KERNEL_VERSION (4 ,11 ,0 )) && (RHEL_RELEASE_CODE <= RHEL_RELEASE_VERSION (7 ,6 ))
153153static struct rtnl_link_stats64 *
154- backport_gve_get_stats (struct net_device * dev , struct rtnl_link_stats64 * s ){
154+ backport_gve_get_stats (struct net_device * dev , struct rtnl_link_stats64 * s ) {
155155 gve_get_stats (dev , s );
156156 return s ;
157157}
@@ -270,7 +270,7 @@ static void gve_stats_report_schedule(struct gve_priv *priv)
270270}
271271
272272#if LINUX_VERSION_CODE < KERNEL_VERSION (4 ,15 ,0 )
273- static void gve_stats_report_timer (unsigned long data ){
273+ static void gve_stats_report_timer (unsigned long data ) {
274274 struct gve_priv * priv = (struct gve_priv * )data ;
275275 mod_timer (& priv -> stats_report_timer ,
276276 round_jiffies (jiffies + msecs_to_jiffies (priv -> stats_report_timer_period )));
@@ -1480,7 +1480,7 @@ static void gve_drain_page_cache(struct gve_priv *priv)
14801480#endif /* LINUX_VERSION_CODE < KERNEL_VERSION(6,9,0) || RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(10,0) */
14811481 int i ;
14821482#if LINUX_VERSION_CODE < KERNEL_VERSION (6 ,9 ,0 ) || RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION (10 ,0 )
1483- for (i = 0 ; i < priv -> rx_cfg .num_queues ; i ++ ) {
1483+ for (i = 0 ;i < priv -> rx_cfg .num_queues ;i ++ ) {
14841484 nc = & priv -> rx [i ].page_cache ;
14851485 if (nc -> va ) {
14861486 __page_frag_cache_drain (virt_to_page (nc -> va ),
@@ -2279,7 +2279,7 @@ static void gve_tx_timeout(struct net_device *dev, unsigned int txqueue)
22792279}
22802280#else /* (LINUX_VERSION_CODE >= KERNEL_VERSION(5,6,0) || RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 3) || UBUNTU_VERSION_CODE >= UBUNTU_VERSION(5,4,0,1071) || defined(KUNIT_KERNEL)) */
22812281static void
2282- backport_gve_tx_timeout (struct net_device * dev ){
2282+ backport_gve_tx_timeout (struct net_device * dev ) {
22832283 struct gve_priv * priv = netdev_priv (dev );
22842284 gve_schedule_reset (priv );
22852285 priv -> tx_timeo_cnt ++ ;
@@ -2288,13 +2288,9 @@ backport_gve_tx_timeout(struct net_device *dev){
22882288
22892289#if (LINUX_VERSION_CODE < KERNEL_VERSION (6 ,8 ,0 ))
22902290int gve_set_buffer_size_config (struct gve_priv * priv , bool enable_hdr_split ,
2291- int new_pkt_buf_size ){
2292- struct gve_tx_alloc_rings_cfg tx_alloc_cfg = {
2293- 0
2294- };
2295- struct gve_rx_alloc_rings_cfg rx_alloc_cfg = {
2296- 0
2297- };
2291+ int new_pkt_buf_size ) {
2292+ struct gve_tx_alloc_rings_cfg tx_alloc_cfg = { 0 };
2293+ struct gve_rx_alloc_rings_cfg rx_alloc_cfg = { 0 };
22982294 int err = 0 ;
22992295
23002296 gve_get_curr_alloc_cfgs (priv , & tx_alloc_cfg , & rx_alloc_cfg );
@@ -2391,7 +2387,7 @@ static int gve_set_features(struct net_device *netdev,
23912387}
23922388
23932389#if (LINUX_VERSION_CODE < KERNEL_VERSION (4 ,10 ,0 ))
2394- int gve_change_mtu (struct net_device * dev , int new_mtu ){
2390+ int gve_change_mtu (struct net_device * dev , int new_mtu ) {
23952391 struct gve_priv * priv = netdev_priv (dev );
23962392
23972393 if (new_mtu < ETH_MIN_MTU || new_mtu > priv -> max_mtu )
0 commit comments