An electronic device comprising: a network connection device; at least one processor; and a memory operatively connected to the at least one processor, wherein the memory stores instructions that, when executed, enable the at least one processor to: receive a data packet from the network connection device; add the data packet to a packet list corresponding to the data packet; and if a number of data packets included in the packet list is less than a threshold value, flush the data packets to a network stack based on a flush time value for controlling a packet merge function, and wherein the flush time value is determined based on a network throughput, wherein the network throughput is determined based on a number of packets processed per unit time in a network layer, characterized in that the instructions enable the at least one processor to: obtain the network throughput periodically; update the flush time value based on the obtained network throughput; if the obtained network throughput falls within a predetermined range, generate a notification in order to update the flush time value indicating that the obtained network throughput falls within the predetermined range; provide the generated notification to a network device driver of the electronic device; and update the flush time value via the network device driver, and wherein the network device driver is configured to determine a flush time value for updating based on the notification. a network connection device; at least one processor; and a memory operatively connected to the at least one processor, wherein the memory stores instructions that, when executed, enable the at least one processor to: receive a data packet from the network connection device; add the data packet to a packet list corresponding to the data packet; and if a number of data packets included in the packet list is less than a threshold value, flush the data packets to a network stack based on a flush time value for controlling a packet merge function, and wherein the flush time value is determined based on a network throughput, wherein the network throughput is determined based on a number of packets processed per unit time in a network layer, characterized in that the instructions enable the at least one processor to: obtain the network throughput periodically; update the flush time value based on the obtained network throughput; if the obtained network throughput falls within a predetermined range, generate a notification in order to update the flush time value indicating that the obtained network throughput falls within the predetermined range; provide the generated notification to a network device driver of the electronic device; and update the flush time value via the network device driver, and wherein the network device driver is configured to determine a flush time value for updating based on the notification. receive a data packet from the network connection device; add the data packet to a packet list corresponding to the data packet; and if a number of data packets included in the packet list is less than a threshold value, flush the data packets to a network stack based on a flush time value for controlling a packet merge function, and wherein the flush time value is determined based on a network throughput, wherein the network throughput is determined based on a number of packets processed per unit time in a network layer, characterized in that the instructions enable the at least one processor to: obtain the network throughput periodically; update the flush time value based on the obtained network throughput; if the obtained network throughput falls within a predetermined range, generate a notification in order to update the flush time value indicating that the obtained network throughput falls within the predetermined range; provide the generated notification to a network device driver of the electronic device; and update the flush time value via the network device driver, and wherein the network device driver is configured to determine a flush time value for updating based on the notification. obtain the network throughput periodically; update the flush time value based on the obtained network throughput; if the obtained network throughput falls within a predetermined range, generate a notification in order to update the flush time value indicating that the obtained network throughput falls within the predetermined range; provide the generated notification to a network device driver of the electronic device; and update the flush time value via the network device driver, and wherein the network device driver is configured to determine a flush time value for updating based on the notification.